Thanks Chris, but I managed to answer my own question
In php 5.3 and earlier, the short_open_tag has to be On.
In php 5.4 short codes are recognized by default.
Hello
I am configuring a pre-made script from php-login-script.com, and so far, so good, except...
A php script opens and closes <?php ... ?>, then inserts plain html without using "echo" or "print".
Then it calls php values within an html form like this:
<textarea name="address" cols="40"...
Hello
I have been using Net::FTP in a script to backup server data with a cron run at night. It was working, then I bumped my head and ran out of allocated space on the backup server. I contracted for additional space but it *seems* like the process *may* still be hanging..... that is...
Interesting suggestions. I am currently working on an ajax city search based on
http://www.w3schools.com/php/php_ajax_livesearch.asp
I am thinking about a "location OR zip" form, then the zip code proximity search could come into play.
Also I have worked up this code, which works in test...
Hello
I have been writing searchable directories for years, and generally I have used a form that has a dropdown/select field for states, including an option for "all states", and a separate text field for city. The raw data being searched is always broken down into separate city and state...
Hello
I am using a form to search by zip code. If the visitor does not enter a 5-digit zip code, an alert is generated. So far, so good. Search works, alert works.
However if it returns false, when the OK is clicked on the alert, the form submits anyway. I am seeking a method that will...
Hello
I am in the process of migrating domain accounts from one linux server to another, and it has a different php version setup in a different location.
I had been getting a number of include_path errors, and this is the syntax for php.ini that seems to be working, allowing me to include...
Thank you jpadie, your explanation of ternary operators is very clear. What I am looking at is high httpd load, a lot of which is php calling either sql or oracle or both, as well as interpreting xml from third party api's.
The latest google update seems to have sent me more traffic and this...
Hello
I am seeking suggestions to reduce cpu and memory usage for a couple of code snippets. I have been adding @ because of a large number of undefined variable notices. However I am coming to realize that this is expensive on a busy server.
The first is for an incoming variable:
$state =...
Thanks barryna, we did this for a while, but on conferring with the the api provider, learned they put time codes and session id's into individual links, so they must be grabbed in real-time in order to credit us for the traffic. This is a jobs display program that is paying fairly well, so we...
I am looking for architecture suggestions. I have many different domains that use php to include an api call to a third party server. The results are xml and I use simplexml to parse the results.
Generally the third party api is very good. Sometimes, however, it is slow and causes pages not...
Thanks jpadie
I found the answer -- to set variables first then include with full path -- some includes seem to work using a relative path -- but not this one.
Cheers
Mike
Hi
I use php includes all the time, and I'm looking for a way to do something that **may** not be possible.
Often I include a file using the server path:
include ('path/file.php');
If I have identified variables in the parent script, they are passed to the included script, and the included...
Seems to work, thanks a bunch!
I am reading data from an oracle database, and printing to a web page. The data record is identified by the NPI column. If that record does not exist, I need the 404 header for google.
This is a huge db, the NPI Registry, 3 million lines with 314 columns, which...
Hi
I am stumped with a script that works quite well to display data from an oracle db using oci_connect, oci_parse and oci_fetch.
When the script does not find a result matching the query parameters, I want to send a header 400 not found message.
I have tried lots of tests and I can't get it...
The server access log count agrees with how many times I viewed the page. If I viewed once it appears once from my IP. But with firefox show cookies, some pages show a cookie value of 2 and others show 1.
Hi
This may not be the forum for cookies, but a search brought up several different forums, so since it is written in php here is my question:
if ($catid != "index") {
$oldCookieValue = $_COOKIE[$catid];
if ($oldCookieValue == "") {$oldCookieValue = 0;}
$cookieValue = $oldCookieValue + 1...
I *think* I answered my own question using the getimgsize function:
$imgsize = getimagesize($galleryURL);
echo '<a href="'.$viewItemURL.'" target="_blank"><img src="'.$galleryURL.'" '.$imgsize[3].' alt="'.$title.'" align="left" style="padding-right:10px;border:0px;" /></a><a...
Thanks, you are probably right about the images being the issue. Unfortunately there is no image size data provided with the xml feed, they vary.
However while this is not the forum for it, I remain unconvinced that tables should be completely deprecated, they still do some things easily that...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.