Random Script Test

In case you have problems with some other PHPJunkyard script (not that there are THAT many).
Post Reply
488BONE
Posts: 3
Joined: Mon Oct 18, 2010 2:56 pm

Random Script Test

Post 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?
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: Random Script Test

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
488BONE
Posts: 3
Joined: Mon Oct 18, 2010 2:56 pm

Re: Random Script Test

Post by 488BONE »

Thank you I will check my typing. Meanwhile, can I use the external files and still post multi-line quotes?
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: Random Script Test

Post by Klemen »

You can, just add <br /> where you want a line break. For example:

First line<br />Second line<br />Third line
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
488BONE
Posts: 3
Joined: Mon Oct 18, 2010 2:56 pm

Re: Random Script Test

Post 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!
Post Reply