[PHP] $this-db-Record[WLPcountry.name]

2001-07-22 Thread Mike Gifford
Hello, I'm using phplib to add functionality to my bibliography app. However I'm not sure how to deal with selected data from different tables with the same field name. The example I provided in the signature was: $this-db-Record[WLPcountry.name] Which needs to be differentiated

Re: [PHP] $this-db-Record[WLPcountry.name]

2001-07-22 Thread Philip Murray
- Original Message - From: Mike Gifford [EMAIL PROTECTED] Hello, I'm using phplib to add functionality to my bibliography app. However I'm not sure how to deal with selected data from different tables with the same field name. The example I provided in the signature was:

Re: [PHP] PEAR Integrated Template Class

2001-07-22 Thread Justin Farnsworth
Dear Power Jessie (I just had to write that..): This is a bit to the side of your question, but if you are asking this question because you are trying to do what every web developer is trying to do today, namely, reach that holy grail of separating layout from content, you might look at

[PHP] 33 Need A Vacation? Let Us Take You On One for FREE...

2001-07-22 Thread travelincentives
You have been specially selected to qualify for the following: Premium Vacation Package and Pentium PC Giveaway To review the details of the please click on the link with the confirmation number below: http://www.1chn.com/wintrip

RE: [PHP] 33 Need A Vacation? Let Us Take You On One for FREE...

2001-07-22 Thread Matthew Loff
Whew! They're giving away a lot of vacations if we -all- qualify... :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 22, 2001 4:06 PM To: [EMAIL PROTECTED] Subject: [PHP] 33 Need A Vacation? Let Us Take You On One for FREE... You have

[PHP] Sending PDF-Doc as mail

2001-07-22 Thread Martin
Hello! I want to send a PDF-file as a mail. The problem: I want, that the user get's the PDF-document as soon as he clicks on the mail. That means: No text-part of the mail, the user should not have to click on the attachment-button of his mail-client. I tried: 1.) Set the header to something

php-general Digest 22 Jul 2001 11:01:26 -0000 Issue 770

2001-07-22 Thread php-general-digest-help
php-general Digest 22 Jul 2001 11:01:26 - Issue 770 Topics (messages 59034 through 59052): Image color quality problems 59034 by: Kurt Lieber 59035 by: Seb Frost 59037 by: Kurt Lieber 59038 by: Seb Frost 59039 by: Kurt Lieber PHP, Excel, CSV and

[PHP] mySQL query grief

2001-07-22 Thread Justin French
Hi all, newbie to MySQL... I get this error: Supplied argument is not a valid MySQL result resource in /usr/local/ blah blah blah From this query: $username = juddy2; $sql = SELECT * FROM staff WHERE id=.$username; $result = mysql_query($sql); However, this works okay: $username = juddy2;

Re: [PHP] mySQL query grief

2001-07-22 Thread Gianluca Baldo
Justin - there's an error in your query. I think it should be: $sql = SELECT * FROM staff WHERE id='$username'; Anyway, to see which is the problem just ? print mysql_error(); ? after $result = mysql_query($sql); HTH Gianluca JF newbie to MySQL... JF I get this error: JF Supplied

[PHP] Php4 with oracle

2001-07-22 Thread Dhanie
Please help me... !! How to install PHP4 with oracle function support ? , I use Windows 98, PWS Thanks Dhanie Angel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

[PHP] Re: [PHP-DEV] Re: IMAP/POP3 Administration API?

2001-07-22 Thread Hartmut Holzgraefe
Christopher Cheng wrote: Have looked through it already. None of them allows me to add/delete users then you might be looking for something like webmin (http://www.webmin.com/webmin/), as MTAs usually use the systems user database instead of making up their own ... -- Hartmut

[PHP] Mysterious MYSQL Error..

2001-07-22 Thread Greg Schnippel
I'm stumped on this one.. I set up PHP 4.04/Apache/Mysql 3.23 on my Windows 98 box for development purpouses. Its been working flawlessly for 2-3 years now (using the same configuration files, etc). However, as of 3 days ago, i can't get it to execute a simple select * from table query. Here's

RE: [PHP] Mysterious MYSQL Error..

2001-07-22 Thread Greg Schnippel
Never mind this one.. :) I figured out that it was because I'm using mysql_query, but declaring the database which means that the mysql_query command will fail and of course won't return a mysql_error code. Geeez... Another classic case of figuring out the problem in the process of trying to

[PHP]logic question

2001-07-22 Thread Chris Cocuzzo
hey- I'm in the process of writing a links page for a website. I want to have all the links seperated by category, and those categories would be placed in different columns. This means also that different categories of links could be on the same row in the table used to lay it all out. i'm

[PHP] Problem with php and htmldoc

2001-07-22 Thread Luis Lebron
I am currently having a problem with php and htmldoc. I have a php script that queries a myql database and creates a series of tables each with a 800 x 600 product screenshot. The file is then sent to htmldoc to be converted into a pdf file. Here is my problem, if I request ten records

Re: [PHP] Problem with php and htmldoc

2001-07-22 Thread Justin Farnsworth
It is not exactly clear what you are doing. Are you buffering up the HTML file with ob_start, and then flushing the buffer after you run the buffer through htmldoc, that is, are you processing everything before into html before you flush out the page? If you are not buffering, then you probably

[PHP] Referencing file?

2001-07-22 Thread Seb Frost
OK so I have a number of different pages calling header.php4 as required. How can I set php in header.php4 to reflect the name of the document that called it? - seb -Original Message- From: Greg Schnippel [mailto:[EMAIL PROTECTED]] Sent: 22 July 2001 14:48 To: [EMAIL PROTECTED] Subject:

[PHP] 0 is not a Sybase link index in /home/httpd/html/sy.php4 on

2001-07-22 Thread nelo manuel
Hello PHP people, London is quite dark and bit cold :( a quick question, a)-what does this means? Warning: 0 is not a Sybase link index in /home/httpd/html/sy.php4 on line 3 - ia m writing the following code $link=sybase_connect(SYBASE,sa, ); $dbase=sybase_select_db_(pubs2,$link); please help

[PHP] PHP.... i suck at it

2001-07-22 Thread Kyle Smith
Ok this may sound really pathetic but how do i add a new line (like a space) to a code like this ?php echo IP ADDRESS; echo $remote_admin; ? cause when i try the code out it looks like IPADDRESS127.0.0.1 and i want it to look like IP ADDRESS 127.0.0.1 or IP ADDRESS 127.0.0.1 so what

[PHP] Control Structure Problem

2001-07-22 Thread Jeff Oien
This is driving me nuts. I couldn't sleep much last night trying to figure this out. This code assigns rooms to kids signing up for Sunday school at a very large church. Each subsequent registration is put into the next room on the list. It looks up in the MySQL database the room the last

RE: [PHP] Control Structure Problem

2001-07-22 Thread Jeff Oien
I forgot to say I deleted tabs so that the width might fit in a typical mail reader. Jeff Oien This code assigns rooms to kids signing up for Sunday school at a very large church. Each subsequent registration is put into the next room on the list. It looks up in the MySQL database the room

Re: [PHP] $this-db-Record[WLPcountry.name]

2001-07-22 Thread Mike Gifford
That did the trick Philip! Thanks for your help. Mike Philip Murray wrote: - Original Message - From: Mike Gifford [EMAIL PROTECTED] Hello, I'm using phplib to add functionality to my bibliography app. However I'm not sure how to deal with selected data from different tables

[PHP] Automatic survey

2001-07-22 Thread Kyle Smith
I have made a small page containing the following PHP ?php echo Ip addressBR; echo $REMOTE_ADDR; echo BRBRPort numberBR; echo $REMOTE_PORT; echo BRBRSystem infoBR; echo $HTTP_USER_AGENT; echo BRBRLast page visited in this windowBR; echo $HTTP_REFERER; ? is there any way i can make the PHP file

RE: [PHP] PHP.... i suck at it

2001-07-22 Thread Kees Hoekzema
I think you want this: ?php echo IP ADDRESS \n; echo $remote_admin; ? \n is the newline code. so a double newline will look like: echo IP ADDRESS \n\n; Kees Hoekzema -Original Message- From: Kyle Smith [mailto:[EMAIL PROTECTED]] Sent: Monday, July 23, 2001 2:47 AM To: [EMAIL

Re: [PHP] PHP.... i suck at it

2001-07-22 Thread Matthew Garman
Well, there are a few ways to do it. The secret is to know a little bit of HTML. Another poster suggested using the br (line break) tag. The paragraph tag would also work nicely: ?php echo pIP ADDRESS/p; echo p$remote_admin/p; ? Or you could start to get fancy by doing it with a table:

[PHP] PHP shell scripting..

2001-07-22 Thread Ryan Christensen
I have some questions about using PHP as a shell scripting language... mainly how you pass arguments to a script on the command line. Say I'm using: -- #!/usr/local/bin/php -q ? print I am: $name\n; ? -- How do I define test from the command

RE: [PHP] PHP shell scripting..

2001-07-22 Thread Kees Hoekzema
Hello Ryan, You can use environment variables for that, like: echo $HOME; /* Shows the HOME environment variable, if set. */ You can also use getenv() en putenv() see also: http://nl.php.net/manual/en/language.variables.external.php hope it works :) - Kees -Original Message-

RE: [PHP] Automatic survey

2001-07-22 Thread Kees Hoekzema
Hey Ryan Look at this :) http://nl.php.net/manual/en/function.mail.php so a thing like: mail([EMAIL PROTECTED], My Own Subject, \ IP:\n$REMOTE_ADDR\n \ Port Number:\n$REMOTE_PORT\n \ System info:\n$HTTP_USER_AGENT\n \ Last page visited in this

RE: [PHP] PHP shell scripting..

2001-07-22 Thread Kees Hoekzema
Hello Ryan, Let me give you an example :) Lets use your script, #!/usr/local/bin/php -q ? print I am: $name\n; ? i called it echo-name.php and chmod 755 it. Next, im going to call it: -- Athena:~$ name=kees

[PHP] Whats wrong with this code?

2001-07-22 Thread Kyle Smith
$message = $IP, $PORT, $SYSTEM, $PAGE; what should i change in the $message code so that it contains the words assigned to the variables? -legokiller666- http://www.StupeedStudios.f2s.com New address new site ICQ: 115852509 MSN: [EMAIL PROTECTED] AIM: legokiller666

RE: [PHP] PHP shell scripting..

2001-07-22 Thread Ryan Christensen
Thanks.. that helps out a lot. Next question.. is there a way I can prompt for input? For example.. have a prompt Name: .. that waits for the user to enter their name.. and then assignes whatever they enter to a variable. Think you can help? :) Thanks... - Ryan Christensen

Re: [PHP] Whats wrong with this code?

2001-07-22 Thread Tom Carter
do you mean.. $message = $IP. $PORT. $SYSTEM . $PAGE; . not , $message = $IP, $PORT, $SYSTEM, $PAGE; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators,

[PHP] Re: PHP shell scripting..

2001-07-22 Thread
In article 001c01c112da$b8c0d420$0d6fa8c0@local, Ryan Christensen wrote: I have some questions about using PHP as a shell scripting language... mainly how you pass arguments to a script on the command line. Say I'm using: -- #!/usr/local/bin/php -q ? print I am:

RE: [PHP] regex for cleaning up username

2001-07-22 Thread Dave
Am partially successfull after taking a further look into things. the following (while ugnly) correctly catches everything except the \ character for some reason. ideas? if(preg_match(/['.' ,!@#$%\^*()+=\/\\:;?|]/',$MyString)){ # echo error, character found } -Original

Re: [PHP]logic question

2001-07-22 Thread rm
try: http://php.resourceindex.com/Complete_Scripts/Link_Management/ you should be able to find some examples here. __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ -- PHP

Re: [PHP] Mysterious MYSQL Error..

2001-07-22 Thread Steve Edberg
Do you know if you've even made a valid database connection? Try echoing $this-database as well. If that is null, you haven't connected to your database; perhaps the username, password and or permissions were changed, so that you're unable to connect from your PHP program. - steve

[PHP] exec() and memory consumption

2001-07-22 Thread Miguel De Buf
Hi all, I am trying to execute a shell command from PHP. This command consumes a lot of memory and execution time, so I changed max_execution_time = 120 and memory_limit = 25600 in my php.ini. Still, under PHP, the command stops after some time (every time at the same point). When I

[PHP] Re: regex for cleaning up username

2001-07-22 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Dave) wrote: Cannot seem to get a regex to check a string for the following space tab ' ! @ # $ % ^ * ( ) + = : ; / \ if(preg_match('[\' ,!@#$%\^*()+=:;/\\]',$mystring)) You need pattern delimiters with preg_* expressions. Right

Re: [PHP] regex for cleaning up username

2001-07-22 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Dave) wrote: Am partially successfull after taking a further look into things. the following (while ugnly) correctly catches everything except the \ character for some reason. ideas? if(preg_match(/['.'

[PHP] Guaranteed to work, please give this a chance....

2001-07-22 Thread fastnfurious45
Dear [EMAIL PROTECTED], AS SEEN ON NATIONAL TELEVISION Making over 500,000.- US$ from your home for a one time investment of only 25 United States Dollars! THANK'S TO THE COMBINATION OF THE SPEED, THE LOW COST PER CONTACT AND THE POTENTIAL OF MULTI-LEVEL-MARKETING BY E-MAIL!

[PHP] PHP Imagemagick

2001-07-22 Thread Weston Houghton
Does anyone know if there are PHP specific bindings for ImageMagick out there? If not, anyone want to work on them... :) Thanks, Wes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

Re: [PHP] PHP Imagemagick

2001-07-22 Thread Tom Carter
How do you mean bindings? I've used PHP and Imagemagick.. but only from the point of view of exec Do you mean building them into PHP functions? - Original Message - From: Weston Houghton [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, July 22, 2001 11:05 PM Subject: [PHP] PHP

[PHP] SESSIONS FILES

2001-07-22 Thread DRB
Hi all, I just started to work with SESSIONS in PHP. Its turning out to be a great way to keep user info alive across multiple pages. My question is, how long does a session temp file stored on the server exists for? Is it just for the current session? If the user shuts down their browser an

Re: [PHP] PHP Imagemagick

2001-07-22 Thread Weston Houghton
Yup, a native PHP module for ImageMagick that accesses their API. This would allow one to actually pass parameters a bit easier and test for success or failure more consistently, at least, I think it would... Wes How do you mean bindings? I've used PHP and Imagemagick.. but only from the

Re: [PHP] PHP Imagemagick

2001-07-22 Thread Alexander Skwar
So sprach »Weston Houghton« am 2001-07-22 um 15:14:54 -0700 : Yup, a native PHP module for ImageMagick that accesses their API. This would allow one to actually pass parameters a bit easier and test for success or failure more consistently, at least, I think it would... Hmm, don't know

[PHP] sleep() function question

2001-07-22 Thread drb
just wanted to make sure I was not doing anything incorrectly. I want to return some values to the screen and then sleep(), then return more values. It seems that nothing is returned till the sleep is over and then all the values are returned at once. Is this the natural function of sleep();

[PHP] Web Site Alert: Not Responding

2001-07-22 Thread mike . dever
There appears to be a problem in reaching your Web site at http://www.e-gineer.com/articles/php-hackers-paradise-revisited.phtml. Time of Error: 2001-07-22 18:27:57 Error Type: Time Out InternetSeer, a Web site monitoring company, is conducting an ongoing study of the true connectivity

[PHP] Your Web Site is Now Responding

2001-07-22 Thread mike . dever
We are pleased to inform you that Your Web site is back up and is no longer on error. URL: http://www.e-gineer.com/articles/php-hackers-paradise-revisited.phtml Time: 2001-07-22 19:19:25 As mentioned in the first alert, InternetSeer is conducting an ongoing study of the true

[PHP] One2Many Logic Problem - phpMySQL bibliography

2001-07-22 Thread Mike Gifford
Hello, I'm not sure if anyone else as the need for a php/MySQL based bibliography, but the application that I am developing (which is basically a module for phpSlash) is coming along fairly well. If anyone is interested in seeing the code I can bundle it up and send it out to them (still a

[PHP] removing lines from array

2001-07-22 Thread Richard Kurth
I an trying to figure out how to remove lines from a text file from within an array. I fill the array with this $recordsarray = file (../auto/records); The lines I what to remove have this in them $remove = schopf.net ; What I need is how to loop through this array and pull

[PHP] magic quotes

2001-07-22 Thread Jon Yaggie
how do i get around this?i have a script works great for me, but the clients php config has this set magic_quotes_gpc on. isnt there a varible i can change to eliminate this for my script? if so how do you use it? Thank You, Jon Yaggie www.design-monster.com And they were singing

[PHP] bitwise AND is acting strange

2001-07-22 Thread Jeremy
The users on my website all have an access number that is used to give them access to different parts of the site. Each bit represents a different part of the site. So, if a user has an access of 10, which is 1010 in binary, they have access to the parts of the site that are represented by the

[PHP] HTTP Authentication and PHP

2001-07-22 Thread Jason Rennie
Hi all, I've been playing around with PHP authentication via HTTP. I'm using apache, and when i use the header('WWW_Auth...) headers i get a username/password dialog pop up (as i wanted). How do i get those values unset in the browser, so that i can get a user to re authenticate ? I need to

[PHP] php

2001-07-22 Thread axel yson
Sir, What do I do with my php? how can I compile my php with mysql support? my problem is I already compile my php what do I do do? I will remove it?

[PHP] Replace ANYTHING between TAG /TAG

2001-07-22 Thread Dan Krumlauf
I've been trying this one for a bit and Im in a twist. I need to replace ANYTHING or even nothing between two tags with the contents of a variable and just havent been able to get the expression right for all cases. As an example concept follows: TAG/TAG Nothing between the tags variable is

Re: [PHP] sleep() function question

2001-07-22 Thread Andrew Brampton
I know very little about PHP, but in other languages, what u describe happens because the webserver doesn't send the output until the excution is done... But you can make it write your output as its generated... check out the function flush also after 20seconds of looking, I found

[PHP] php.ini and mod_php4

2001-07-22 Thread rip
I'm having a bit of a prob... I'm new to Linux and restarting apache isn't acting right, in Win I had no problems. I edit php.ini, restart apache, but the changes are not taking effect. I installed the ming and pdflib .so's but they are not being incorporated. Hell, I edited the ini to turn the

Re: [PHP] Replace ANYTHING between TAG /TAG

2001-07-22 Thread ReDucTor
?php $tagname = tag; $somevar = text; echo .$tagname..nl2br(htmlspecialchars(stripslashes($somevar)))./.$tagna me.; ? - Original Message - From: Dan Krumlauf [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 23, 2001 2:36 PM Subject: [PHP] Replace ANYTHING between TAG

[PHP] Clarify: SEARCH AND replace between TAG /TAG

2001-07-22 Thread Dan Krumlauf
Sorry I wasn't clear. I need to search for the TAG/TAG combo in an html file. Thats why I asked for a regex. So I need to load in the html SEARCH for the tags and anything in between the tags throw out and REPLACE with the contents of a variable and then rewrite the file. My orginal message

Re: [PHP] php 4.0.6

2001-07-22 Thread Adrian D'Costa
Hi Rasmus, I did a phpinfo() and gives me the following output: PHP Version 4.0.6 System Linux pcs.pcsadvt.com 2.2.16-22 #1 Tue Aug 22 16:16:55 EDT 2000 i586 unknown Build Date Jul 20 2001 Configure Command

Re: [PHP] formatting host output

2001-07-22 Thread David Robley
On Sat, 21 Jul 2001 06:32, Tyler Longren wrote: $data = exec(host $lookup); printf(pre%s/pre, $data); How can I format the output of that properly? Sometimes, it's all on one line, and it's fine. Other times, there's more than one line...like if there was an alias. Any way to format it

RE: [PHP] formatting host output

2001-07-22 Thread Matthew Loff
If $lookup is passed from the client, then you should be careful with that exec() call... http://www.php.net/manual/en/ref.exec.php Use one of the escape...() functions, perhaps? -Original Message- From: David Robley [mailto:[EMAIL PROTECTED]] Sent: Monday, July 23, 2001 12:47 AM

[PHP] reg exp help

2001-07-22 Thread Justin French
hi all, two quick reg exp problems: one: $username must only contain a-z lowercase, 0-9, no spaces, no other characters. what would the regexp be? if(ereg(, $username)) { $valid = yes } else { $valid = no) two: i want to do a really small email validation, just to make sure

[PHP] need help w/ variables

2001-07-22 Thread Virgil Claritt
when i use this script: ?php session_start(); if ($op == ds) { if (($username != admin) ||($password != admin)) { $msg = pfont color=\#FF\strongBad Login - Try Again/strong/font/p; $show_form = yes; } else { session_register('valid');

Re: [PHP] need help w/ variables

2001-07-22 Thread ReDucTor
add to the top of the script error_reporting(E_ALL ~E_NOTICE); - Original Message - From: Virgil Claritt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 23, 2001 2:57 PM Subject: [PHP] need help w/ variables when i use this script: ?php session_start(); if ($op == ds)

Re: [PHP] need help w/ variables

2001-07-22 Thread Virgil Claritt
i dont quite get it what your saying it is clearly defined at the top $op is equal to ds $valid is equal to yes $msg is equal to Bad Login Reductor [EMAIL PROTECTED] wrote in message 002701c11335$ac5dafe0$0200a8c0@ReDucTor">news:002701c11335$ac5dafe0$0200a8c0@ReDucTor... add to the top of the

Re: [PHP] need help w/ variables

2001-07-22 Thread ReDucTor
did u try what i said??? - Original Message - From: Virgil Claritt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 23, 2001 3:13 PM Subject: Re: [PHP] need help w/ variables i dont quite get it what your saying it is clearly defined at the top $op is equal to ds $valid is

Re: [PHP] need help w/ variables

2001-07-22 Thread Greg Donald
On Mon, 23 Jul 2001, Virgil Claritt wrote: i dont quite get it what your saying it is clearly defined at the top $op is equal to ds $valid is equal to yes $msg is equal to Bad Login Reductor [EMAIL PROTECTED] wrote in message

Re: [PHP] php 4.0.6

2001-07-22 Thread Adrian D'Costa
Hi, Thanks. I am more worried about the sockets. I installed it --enable-sockets. Adrian On Sat, 21 Jul 2001, E. Peter K. Chan wrote: Hi Try going to the source directory ie where you unzipped the tarball for php. May as well upgrade to php4.0.6 - that could save you some problems now

[PHP] Re: need help w/ variables

2001-07-22 Thread Virgil Claritt
it was my error reporting along i copied that script dtraight from the text book so i knew it wasnt the variables themselves -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

Re: [PHP] Re: need help w/ variables

2001-07-22 Thread ReDucTor
yep, thought so :D - Original Message - From: Virgil Claritt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 23, 2001 3:47 PM Subject: [PHP] Re: need help w/ variables it was my error reporting along i copied that script dtraight from the text book so i knew it wasnt the

Re: [PHP] php 4.0.6

2001-07-22 Thread Rasmus Lerdorf
System Linux pcs.pcsadvt.com 2.2.16-22 #1 Tue Aug 22 16:16:55 EDT 2000 i586 unknown Build Date Jul 20 2001 Configure Command './configure' '--prefix=/usr' '--with-config-file-path=/etc' '--disable-debug'