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 Wanet Telecoms Ltd 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

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

    user-friendly city and state search logic

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

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

    ...'//localhost/XE')) { $err = oci_error(); trigger_error('Could not establish a connection: ' . $err['message'], E_USER_ERROR); } $query = "select * from NPI_DATA_$state where NPI = '$in_npi'"; $stmt = oci_parse($conn, $query); oci_define_by_name($stmt, "NPI", $NPI); <snip DEFINE VARIABLES>...
  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

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