[PHP] echo only displays first character

2001-03-16 Thread Tom Harris
Here's an interesting problem. The following only prints the first letter of the name for ($i=0; isset($empid[$i]); $i++) { echo "$empid[$i] $name[$i]"; } But if I change the variable $name to $employeename throughout the script it displays fine. $empid[] and $name[] are both assigned ea

php-general@lists.php.net

2001-02-22 Thread Tom Harris
I want to assign a value using the url however the value contains both a ? and an & so PHP (or the browser) seems to get confused. Here's an example: http://www.mysite.com/index.php?id=23&url=http://www.anothersite.com/file.ph p?qid=234&forum=4 Everything after url= should be the value of $url

[PHP] cpdf text wrap

2001-01-19 Thread Tom Harris
When I create a pdf with the cpdf functions my text keeps going off the edge of the page. How do I make it wrap to the next line? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact t

[PHP] why does pdfclock and example 1 doesn't

2001-01-18 Thread Tom Harris
On http://www.php.net/manual/en/ref.cpdf.php the clock example works fine for IE. But the Example 1(even the modified one in the comments) falls victim to the IE wants Content-length set, problem. Can some explain this to me? Thanks -- PHP General Mailing List (http://www.php.net/) To unsub

[PHP] ClibPDF Tutorial?

2001-01-18 Thread Tom Harris
Does anyone know a good tutorial on using the ClibPDF functions (I gave up on pdflib, couldn't get it complied correctly)? I don't need to know how to do anything complex, just put text into a pdf that outputs directly to the browser. Thanks. -- PHP General Mailing List (http://www.php.net/

[PHP] cgi--remove X-Powered-By and Content-type

2001-01-10 Thread Tom Harris
I'm sure this is an easy question (I'm just too dumb to figure it out). When I run a php script from the shell it always outputs X-Powered-By: PHP/4.0.3pl1 Content-type: text/html Normally I just ignore this, but I've been using cron to run a php script and I'm getting my mailbox cluttered with