Search found 19 matches

by suicide
Wed Aug 30, 2006 10:37 am
Forum: Regex
Topic: CURL and Preg_match?... help needed
Replies: 13
Views: 6577

Im still not following what the ~ does... I'll try and figure it tho

That book looks pretty scary too :)
You write anything a little less painful? :)

Thanks again man
by suicide
Tue Aug 29, 2006 11:22 am
Forum: Regex
Topic: CURL and Preg_match?... help needed
Replies: 13
Views: 6577

alright dude, you rule... where do i send the beer?
by suicide
Tue Aug 29, 2006 10:22 am
Forum: Regex
Topic: CURL and Preg_match?... help needed
Replies: 13
Views: 6577

im still playing with it... is there a way to streamline that statement into assigning variables? so I can get the value striaght to a variable like (right now this retruns a 1, im assuming that TRUE on the array) $INTszIsApproved = preg_match('~<input[^>]*szIsApproved[^>]*value\s*=\s*["\']?\s*...
by suicide
Tue Aug 29, 2006 10:12 am
Forum: Regex
Topic: CURL and Preg_match?... help needed
Replies: 13
Views: 6577

so far so good :) I wont get to test it in teh live enviroment till i get home tonight (ip restricted ftp) But I set up <?php $ret_data = '<html><head><title></form></body></html>'; //preg_match('/szIsApproved=(-*[0-9]*)/i', $ret_data, $arr); preg_match('~<input[^>]*szIsApproved[^>]*value\s*=\s*[&qu...
by suicide
Tue Aug 29, 2006 8:49 am
Forum: Regex
Topic: CURL and Preg_match?... help needed
Replies: 13
Views: 6577

holy hell that thing is scary
by suicide
Tue Aug 29, 2006 6:23 am
Forum: Regex
Topic: CURL and Preg_match?... help needed
Replies: 13
Views: 6577

$ret_data = curl_exec ($ch); preg_match('/szIsApproved=(-*[0-9]*)/i', $ret_data, $arr); switch ($arr[1]) { case '1': then do everything i want; break; case '0': echo $error break; } The problem is that it only sometime works like this, which has been ripping my head apart and i need to support more...
by suicide
Mon Aug 28, 2006 10:09 pm
Forum: Regex
Topic: CURL and Preg_match?... help needed
Replies: 13
Views: 6577

CURL and Preg_match?... help needed

so I have a credit card processor that suggested i use CURL to see if the transactions are approved So I got the Curl part working (I think) When the use enters his data into my form and presses submit my page uses curl to contact the Credit Card processor and pulls the page int oa variable the page...
by suicide
Wed Jul 05, 2006 3:07 pm
Forum: PHP - Code
Topic: PHP Mail = Spam?
Replies: 3
Views: 556

thats awesome, i was loking at other scripts but could not figure out which one to try... but if Swift has your THUMBS UP, then its the one I want to use :)

Thanks Pimp!
by suicide
Wed Jul 05, 2006 8:49 am
Forum: PHP - Code
Topic: PHP Mail = Spam?
Replies: 3
Views: 556

PHP Mail = Spam?

I have an issue where mail sent out of an old script I use get flaged as spam on a few bigger ISPs (Verizon)... Its pretty straight forward mail($sEmail,$mail_subject,$message,"From: ".SUPPORT_EMAIL." \nContent-Type: text/".($iMailFmt ? 'plain' : 'html')."; X-Mailer Version ...
by suicide
Sat Jul 01, 2006 7:34 pm
Forum: PHP - Code
Topic: Header/Session Issue after upgrade... Very difficult questio
Replies: 14
Views: 2147

ya that is throwing me through a loop too.. but im not comp,aining cause it seems to work!


Thank again guys!
by suicide
Fri Jun 30, 2006 4:01 pm
Forum: PHP - Code
Topic: Header/Session Issue after upgrade... Very difficult questio
Replies: 14
Views: 2147

astions! YOU FLIPPIN RULE!

Where am I sending these beers!?


Thank you all for your help, I appreciate it!!!
by suicide
Fri Jun 30, 2006 3:19 pm
Forum: PHP - Code
Topic: Header/Session Issue after upgrade... Very difficult questio
Replies: 14
Views: 2147

i may be misreading what you said

but the page was blank before I added the ini_set display_errors

it became blank after the host upgraded php
by suicide
Fri Jun 30, 2006 1:04 pm
Forum: PHP - Code
Topic: Header/Session Issue after upgrade... Very difficult questio
Replies: 14
Views: 2147

Well i dont thin its the session as I can get a UID through them...

So that leaves headers? ANyone know what i can do about this?

maybe change something in php.ini?
by suicide
Fri Jun 30, 2006 9:00 am
Forum: PHP - Code
Topic: Header/Session Issue after upgrade... Very difficult questio
Replies: 14
Views: 2147

./sigh that doesnt work either... thanks for trying man, i was all excited that it would give me a clue :) not sure how to debug as it all looks valid (like i said it worked perfect till last upgrade).. guess ill start commenting out line by line or somethin... If anyone else has any good ideas, I'm...
by suicide
Fri Jun 30, 2006 8:14 am
Forum: PHP - Code
Topic: Header/Session Issue after upgrade... Very difficult questio
Replies: 14
Views: 2147

Nothing is in the page source when viewed....

I added ini_set(display_errors,1) ... (hoping thats what you meant... http://us3.php.net/ini_set seems hard to read to me with very little in examples :)


to the top of my page and it still didnt display anything (nothing in source too)

Thanks