Search found 1803 matches

by johnj
Thu Mar 10, 2011 8:06 pm
Forum: PHP coding => General
Topic: preg_replace, more than 4
Replies: 10
Views: 1833

Re: preg_replace, more than 4

Good to use str_replace() four times
by johnj
Thu Mar 10, 2011 8:01 pm
Forum: PHP coding => General
Topic: PHP help with percentage
Replies: 1
Views: 612

Re: PHP help with percentage

If you want the answer as a percentage then you need to write a custom function for that and then apply it to the $coupon_value['couponvalue']. First, make sure that $coupon_value['couponvalue'] indeed has a value.
by johnj
Thu Mar 10, 2011 7:42 pm
Forum: PHP coding => General
Topic: converting perl socket to php
Replies: 0
Views: 485

Re: converting perl socket to php

Make sure that port 1500 is available. Try displaying the error message if it hangs. Is there data to be read? or is it just waiting. In fsockopen set a connection timeout value.