Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. mwpclark

    php inside html inside php display issue

    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.
  2. mwpclark

    php inside html inside php display issue

    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"...
  3. mwpclark

    Net:::FTP interrupted

    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...
  4. mwpclark

    user-friendly city and state search logic

    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...
  5. mwpclark

    user-friendly city and state search logic

    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...
  6. mwpclark

    function isnumeric : to submit or not submit form?

    Works like a champ. Muchisimas Gracias
  7. mwpclark

    function isnumeric : to submit or not submit form?

    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...
  8. mwpclark

    include_path

    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...
  9. mwpclark

    reducing cpu &amp; memory usage

    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...
  10. mwpclark

    reducing cpu &amp; memory usage

    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 =...
  11. mwpclark

    php api include simplexml timeout

    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...
  12. mwpclark

    php api include simplexml timeout

    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...
  13. mwpclark

    php parse variables

    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
  14. mwpclark

    php parse variables

    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...
  15. mwpclark

    php, oracle, oci_connect, if no results found

    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...
  16. mwpclark

    php, oracle, oci_connect, if no results found

    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...
  17. mwpclark

    cookie incrementing

    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.
  18. mwpclark

    cookie incrementing

    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...
  19. mwpclark

    controlling loading of external feeds

    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...
  20. mwpclark

    controlling loading of external feeds

    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...

Part and Inventory Search

Back
Top