need more help

Posted on 2002-03-28
Last Modified: 2008-03-06
hi again, thanks to those that have been helping me along the way with my script. i'm still coming up with problems heh.

ok here are the pages again:

the list page

to post to the list

the code

so far i been tinkering with it, and I think the problem with the slashes is all gone ( )

though, i can't test it anymore because i'm getting an error now

the problem with the spaces in the list page code is still there. after each post, the lines of code get more and more spaces when you view the html source of the list page.

also, i don't understand what the period . does in the code? how come $CRLF is used instead of putting /n at the end? still trying to understand this php stuff. (original cgi script )
Question by:sayhi
  • 4
  • 3

Author Comment

ID: 6904426
the error is:
Parse error: parse error in /mnt/host-users/only/cgi-bin/pklist_sk.php on line 32

also, you can post and test the pages out

Expert Comment

ID: 6904526
Your error is on this line:

fwrite($fp,"<b>Name:</b> " . stripslashes($pkname) . stripslashes($pkacct) "<BR>" . $CRLF);

You need to add the dot before the break tag string:

stripslashes($pkacct) . "<BR>"

The dot concatinates the returned value of the stripslashes to the string value that follows and visa versa.  It is the concatinate operater.

The program you are using was created so it would be easy to edit, you can add the \n to the string if you wanted to:

stripslashes($pkacct) "<BR>\n");


Expert Comment

ID: 6904527
You also have the same error on this line:

 stripslashes($myacct)"</b></font> <BR>" . $CRLF);

should be:

stripslashes($myacct) . "</b></font> <BR>" . $CRLF);
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.


Author Comment

ID: 6904574
ah okay.

i wanted the paranthesis around accts so i did this:
stripslashes($pkname) . " " . "(" . stripslashes($pkacct) . ")" . "<BR>" . $CRLF);

that alright coding?

i still have that space problem

say the code on the list page was this:

after using the form, it'll change to this:



after a while, you end up having huge gaps in the code.
see source of
i need to use wordpad now to even view source because of all that extra space.

Accepted Solution

andriv earned 50 total points
ID: 6904591
-> stripslashes($pkname) . " " . "(" . stripslashes($pkacct) . ")" . "<BR>" . $CRLF);

The above is fine.

The problem with the extra spaces, it's in this line:

fwrite($fp,stripslashes($line) . $CRLF);

Every time it writes the html over again it's adding a new line for each line.  Remove thte .$CRLF


Author Comment

ID: 6905768
wow it finally works right!! yah! heh

THANKS so much!

Expert Comment

ID: 6906110
No problem, glad I can help.

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
Part of the Global Positioning System A geocode ( is the major subset of a GPS coordinate (, the other parts being the altitude and t…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question