Re: [PHP] Slash Problems When Using PHP and POST.

2001-07-18 Thread Dave Stewart
I had this problem last week You need to add the stripslashes function to the string that contains the uploaded text. print stripslashes($file) or print stripslashes($contents) I think should do it. Dave - Original Message - From: Corin Rathbone [EMAIL PROTECTED] To: [EMAIL

[PHP] Apostrophe's

2001-07-10 Thread Dave Stewart
Hi, I have a script that let's me update news on my site but recently whenever I use ' apostrphe's or speechmarks I end up with a slash i.e Jack's becomes Jack\'s From reading here and in the archives it appears I have to edit the script with the stripslashes function. I was wondering if

Re: [PHP] Page Cannot Be Displayed

2001-07-02 Thread Dave Stewart
Fixed it. Seems I had to copy a file php4ts.dll to c:\windows\system. Found the answer here; http://www.faqts.com/knowledge_base/view.phtml/aid/5495/fid/336 Cheers, Dave - Original Message - From: Dave Stewart [EMAIL PROTECTED] To: PHP (General) [EMAIL PROTECTED] Sent: Monday, July

[PHP] Page Cannot Be Displayed

2001-07-01 Thread Dave Stewart
Hi, I have PHP 4 installed on Win98 with PWS 4. I am getting 'Page cannot be displayed' on pages with .php extentions. If I change the extensions to .php3 everything is fine. I used the installer to set PHP up and I have checked my registry to ensure that .php .php3 and .phtml pages are set

[PHP] CGI and PHP

2001-01-25 Thread Dave Stewart
Hi, I have this line in my shtml pages... !--#exec cgi=\"../../cgi-bin/ads.cgi" -- How do I write this as a function to include in my .php files. (I've looked up virtual () in the manual but can't make head nor tail of it). Many thanks, Dave Stewart -- PHP General Mailing

[PHP] Hyperlink using thumnail

2001-01-23 Thread Dave Stewart
Hi again, How do I link this image file so that when users click on it they get the bigger version (which is named 01.jpg). ? $photo = file_exists("th_01.jpg") ? "IMG SRC=\"th_01.jpg\"" : "No Photo Yetbr\n"; echo "$photo"; ? Here is the html version of what I am

[PHP] Sub Newbie Question On Error Message

2001-01-17 Thread Dave Stewart
e.co.nz/results/race01.html", "r"); $rf = fread($file, 20); $grab = eregi("tr bgcolor=\"#CCFF99\"(.*)/html", $rf, $printing); fclose($file); echo "tabletr"; echo $printing[1]; ? Thanks in advance. Dave Stewart -- PHP General Mailing List (h

Re: [PHP] Sub Newbie Question On Error Message

2001-01-17 Thread Dave Stewart
Yep, that worked a treat thanks. All those danged those brackets are what keep tripping me up. The fog is lifting :-) I'll now go back to lurking and see what else I can learn. Regards, Dave - Original Message - From: Toby Butzon [EMAIL PROTECTED] To: Dave Stewart [EMAIL PROTECTED