PHP help


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting PHP help
# 1  
Old 12-19-2002
PHP help

I'm haveing trouble with my php script.

the second line is giving me trouble.

Code:
for ($num = 70; $num < 150 ; $num++) {
	$test = ereg_replace("<","&lt;",str_rot13($temp,$num));
	echo "#$num <BR>" . $test . "<HR>";

I keep getting this error "Warning: str_rot13() expects exactly 1 parameter, 2 given in C:\Program Files\Apache Group\Apache2\htdocs\program.php on line 25"

Any help as to why this is doing happening would be great. I need both var's in there or the answer doesn't come out right.. or I would have just taken it out. If you need me to post all the code let me know.

Thank you.
# 2  
Old 12-23-2002
According to what I'm reading on the man page, the error it's giving is correct. You can only have one parameter for str_rot13 function.

See PHP man page.

Maybe you should add another couple of lines of code to combine the two strings, and then use it for your answer.
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. What is on Your Mind?

Saturday May 4th the Forums Will Briefly Break Testing PHP 5.6 to PHP 7.0

On Saturday May 4th the forums will briefly break when I switch our Apache PHP 5.6 module to PHP 7.0. Previously, I had two sites set up for testing the migration, but for many reasons, the second site has additional issues unrelated to PHP 7.0 so it is hard to debug on a different site and... (3 Replies)
Discussion started by: Neo
3 Replies

2. Red Hat

Update php 4.3 RPM to php 5.3.3 php

Dear All, My redhat version is: # cat /etc/redhat-release Red Hat Enterprise Linux AS release 4 (Nahant Update 4) # # uname -a Linux cotapplication3.cot.com 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:32:02 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux # I want to update my php from: # php... (1 Reply)
Discussion started by: monojcool
1 Replies

3. UNIX for Advanced & Expert Users

Running multiple php scripts into one php only, cron mail alert problem...

hi, while separated they produce the usual mail alert and i can see the output... if i write into the php script: <?php system('php -f /var/www/vhosts/domain.com/httpdocs/folder/script1.php'); system('php -f /var/www/vhosts/domain.com/httpdocs/folder/script2.php'); system('php -f... (0 Replies)
Discussion started by: 7stars
0 Replies

4. Web Development

I can't open my index.php page after insert php code

Hello guys, Does anyone can help me? I've just made my simple index.php without any code, but after insert session code to check if any user is authenticated, my index.php doesn't work anymore. Any fresh eyes could help me to see what and where the code is wrong? <? if... (6 Replies)
Discussion started by: metalfreakbr
6 Replies
Login or Register to Ask a Question