Jump to content

Ikeni

Members
  • Posts

    7
  • Joined

  • Last visited

Ikeni's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Hi- I tried using the set_time (see below) still have a problem. I am new to this so bear with me. Am I using it in the correctly? mssql_min_message_severity(17); set_time_limit(600); $res = mssql_query($sql,$dbhandle); if ($res === TRUE) { echo $ml_num . "record has been inserted." . $item . "</br>"; } else { printf("Could not insert record: %s\n", " ML=", $ml_num , mssql_get_last_message() , "</br>")} Thanks
  2. HiI have a php script which runs each morning on a cron job. The script reads a csv file and uploads approximately 30,000 records to a ms sql database. Some days it runs to completion but, most days it will get about 90% done and produces the following error - Resolving xxxxxx.com... x0.x3.250.43Connecting to xxxxxx.com|x0.x3.250.43|:80... connected.HTTP request sent, awaiting response... 500 Internal Server Error2013-04-11 02:01:33 ERROR 500: Internal Server Error. I can get the job complete after a few tries. It looks like the script timesout. Is there some code to increase the time the script will wait before erroring out?
  3. Many thanks! I used the str_replace to add the extra single quote and it worked perfectly. Unfortunately, the documentation on this is terrible and misleading. I am so glad you guys (& gals) are there for us !
  4. I am using the mssql not mysql does it make a difference.
  5. I am having an issue with mssql_query when a single quote is included a query field. I receive an error 17 indicating a problem and the query fails to complete. I tried using a varch nvchar and text as field designations. I tried utf-8 and cp1252, the addslashes(), and using the str function to add the backslash I even tried str_replace to add the escape backslash. The only way it works is when I completely remove the character . I am using php v5.2 On a goddady windows server runrunning ii7. Any help would be appreciated.
  6. Hi, I need to display a picture on a web page. The picture is located on a third party's server. If the picture does not exist on the other server I need to display an alternate picture located in my directory. I am able to do this with a php script by using the get_header function and if I get a 200 ok returned I place the external url in the image tag and if I don't get the 200ok code I place the local path and file name in the image tag. I am a novice with asp.net and could use any help pointing me in the right direction to accomplish this. Thanks....
×
×
  • Create New...