Page 1 of 1

Random Script Test

Posted: Mon Oct 18, 2010 3:14 pm
by 488BONE
Script URL:
Version of script: 1.0
Hosting company: 1and1.com
URL of phpinfo.php: www.488bone.com
URL of session_test.php:
What terms did you try when SEARCHING for a solution: searched entire help board: Random Text, RanTex

Write your message below:

installed rantex.php and am using quotes in that file instead of in the external file. I want to add a fairly large number of multi-line quotes, it seems that after I add 3 or four it will stop working. Is there a limit to how many quotes can be included in the rantex.php file?

Re: Random Script Test

Posted: Mon Oct 18, 2010 5:07 pm
by Klemen
There's no limit, you probably made a syntax error in the PHP file that stops the script from executing.

Make sure you escape any single quotes ' with a backslash \ so instead of ' you should use \'

Each quote must start with a quote ' and end with a quote and a comma, like this ',

A correct line would look like this:

Code: Select all

'Any single quotes such as \' must be escaped with a backslash',
If you want to avoid these PHP rules you will need to use the external file.

Re: Random Script Test

Posted: Mon Oct 18, 2010 5:16 pm
by 488BONE
Thank you I will check my typing. Meanwhile, can I use the external files and still post multi-line quotes?

Re: Random Script Test

Posted: Mon Oct 18, 2010 7:10 pm
by Klemen
You can, just add <br /> where you want a line break. For example:

First line<br />Second line<br />Third line

Re: Random Script Test

Posted: Mon Oct 18, 2010 7:48 pm
by 488BONE
Klemen wrote:You can, just add <br /> where you want a line break. For example:

First line<br />Second line<br />Third line

Thanks, I'll try both!