Search found 8 matches

by sandrol76
Sun Nov 06, 2005 7:44 am
Forum: PHP - Code
Topic: Submitting a POST to a web site and getting the response.
Replies: 1
Views: 122

Submitting a POST to a web site and getting the response.

Hi all,
This is the problem:
I want to set a post variable and then submit it to a web site. Then I want to get the response of this web site in a string. Any suggestion?
by sandrol76
Sat Nov 05, 2005 5:38 pm
Forum: PHP - Code
Topic: Problems with reading content from the web using fopen()
Replies: 7
Views: 457

OK, thank you very much indeed for the help and for replying so quickly!
by sandrol76
Sat Nov 05, 2005 5:26 pm
Forum: PHP - Code
Topic: Problems with reading content from the web using fopen()
Replies: 7
Views: 457

I tried that but I got the following error:
Fatal error: Call to undefined function: curl_init() on line 4

Any suggestion?
by sandrol76
Sat Nov 05, 2005 5:12 pm
Forum: PHP - Code
Topic: Problems with reading content from the web using fopen()
Replies: 7
Views: 457

Problems with reading content from the web using fopen()

Jcart | Please use and tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color] Hi all, I used the following code to read the html response from a website but I can't understand why it doesn't work. Here is the ...
by sandrol76
Sun Mar 07, 2004 5:15 am
Forum: PHP - Code
Topic: authentication
Replies: 6
Views: 930

Well there's another solution: In login.php you set a session variable (through $_SESSION, look it up in php reference and look up the function session_start() too) as soon as the member inserts the right username and password, then in member.php at the top of all you check if the session variable i...
by sandrol76
Sat Mar 06, 2004 12:32 pm
Forum: PHP - Code
Topic: Cookies
Replies: 5
Views: 738

Yes you have to set the expire time of the cookie. You set the expire time this way: setcookie("CookieName", $value, time()+$num_of_seconds); where $value is the value you want to assign to the cookie and $num_of_seconds is the number of seconds after which you want your cookie to expire! ...
by sandrol76
Mon Mar 01, 2004 2:00 pm
Forum: PHP - Code
Topic: Problems with uploading! Help please!
Replies: 5
Views: 869

putting error_reporting(E_ALL) i got this warning: Warning: move_uploaded_file(images/offerte/parafly3.jpg): failed to open stream: Permission denied in D:\Inetpub\webs\k2club4wdcom\nuovomare\store.php on line 30 Warning: move_uploaded_file(): Unable to move 'C:\PHP\uploadtemp\phpF996.tmp' to 'image...
by sandrol76
Mon Mar 01, 2004 3:25 am
Forum: PHP - Code
Topic: Problems with uploading! Help please!
Replies: 5
Views: 869

Problems with uploading! Help please!

Hello to everybody, I have a problem with uploading a file. Using the following code: if(is_uploaded_file($_FILES["foto"]["tmp_name"])) { //check type and syze if ($_FILES["foto"]["name"] != "") { $imageType = $_FILES["foto"]["type&quo...