User Profile

Collapse

Profile Sidebar

Collapse
Stefko
Stefko
Last Activity: Jan 27 '08, 05:25 AM
Joined: Dec 16 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Stefko
    replied to Porting Perl to PHP
    in PHP
    Again thats for the assist.

    the original PERL code was written by a 16yr old, and worked great, admittedly the code was poorly written!

    Sorry, i should have stated that I was intending to retreive POST vars.
    See more | Go to post

    Leave a comment:


  • Stefko
    replied to Porting Perl to PHP
    in PHP
    Thanks that looks like it would work, tried something close to that but to no avail.

    That first section of code I realized can be dropped all together!

    After another day of sweating out code, trial and error, (lots of error) I got it to work.
    Here is what I came up with, tested and works!
    The var $cartMax is set earlier in the script

    [PHP] for ( $x = 1; $x <= $cartMax; $x++) {
    ...
    See more | Go to post

    Leave a comment:


  • Stefko
    started a topic Porting Perl to PHP
    in PHP

    Porting Perl to PHP

    After a full day of attemping to port this PERL routine to PHP, I have given up on being able to do this myself, can anybody help?

    Code:
    for($y=1;$y<=100;$y++){
    		$thename="NAME_$y";
    			if(length(${$thename})>3){
    			$num++;
    		}
    	}
    	foreach($x=1; $x<=$num; $x++){
    		$qnt="QUANTITY_$x";
    		$prce="PRICE_$x";
    		$xtnd="XTEND_$x";
    ...
    See more | Go to post
No activity results to display
Show More
Working...