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"...
...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, transferring some data but not all. I have figured the script doesn't complete...
...OR zip" form, then the zip code proximity search could come into play.
Also I have worked up this code, which works in test mode, though the final *else* clauses could possibly be consolidated:
<?php
$input = $_GET['input'];
$instring = trim(preg_replace("/\s+/"," ",$input));
if...
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...
...the default value could be nothing or null, as long as it is defined and does not cause a notice later.
I have recently moved to a new box, and I **think** on the previous box zend optimizer was obscuring this cpu/memory demand. However for some conflict I have not gotten it to install on...
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...
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.
...on the site.
The problem is that sometimes it starts at 2. Each page is linked from the index page, which does not set a cookie. When I use *http live headers* it shows the cookie value setting at 1. But when I view cookies in firefox, some of them are 1 and some are 2. There is no...
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.