Re: [PHP] Access a printer via PHP
You cannot directly access a printer from a php script. but you can try locating a a command line utility which will print the data provided to it in the command line or a the contents of a filename provided in the command line to the printer connected to the server. If the data is quite large ( in the sense let's say a reciept as it seems in your case), you might write the data to a temporary file and pass the filename to the priniting utility using the exec() command in PHP. You can obviously make the updates to teh database on the pHP page and call the exec() command once the transaction is completed.. hope that helps Ankur Verma HCL Technologies Ltd, A1CD, Sector16, Noida UP, India - Original Message - From: "ThoVer Webproducties" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 07, 2001 7:02 PM Subject: [PHP] Access a printer via PHP > Hello, > > For an e-commerce project we want to connect > the mySQL-database we created to a printer > (attached to a computer which has 24h > internet [and mySQL database] access). I > assume it's different to couple the > mySQL-database directly to a printer. > We are however accessing the database via > PHP, so I think it might be possible to send > a command to a printer directly from the PHP > file which puts the data into the database as > well. > > We want to do this in order to have an order > via the website printed directly. In fact, > the printer should start printing as soon as > an order is added to the seperate table in > the mySQL database (by a special PHP > document). > > Does anyone know whether this is possible > and, if it's possible, could you tell me how? > > > > > Thanks in advance, > Thomas. > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] test for undefined variables & renaming variables
you can test for undefined variables using isset($var) or empty($var) look into the php manual for more details on these functions yes php does provide you with an option to create variables from variables themselves refer to the following http://www.php.net/manual/en/language.variables.variable.php hope that helps regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "August Malson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 08, 2001 12:41 PM Subject: [PHP] test for undefined variables & renaming variables > Q: > Does anyone know of a way to test for undefined variables? For example, I > am sending a variable into the page, but the processing of the page depends > on what is being passed to the page. > > Say, I am typing the following on the location bar: > index.php?fuseaction=something&fuse=6 > > and I want something to happen if fuse is actually declared, and something > else to happen if fuse is not defined. > > I have tried isdef(), but that function does not seem to work, and I > couldn't find it in the manual when I was looking for it. > > Code to use on: > > if($HTTP_GET_VARS("fuse") == NULL) then do something; else do something > else; > > > Q: > Also, does anyone know how to rename a variable? > > I want to create a variable $attributes_NameOfVariable, but it does not seem > to work. is there a function that exists in PHP that will assist me in this > process? > > Thank you for all of your help, and thank you for your time, > > August Malson > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] UN-Escaping text from a form submit?
there are two ways of achieving thi - stripslashes($data) or if you want this to be global, then set magic_quotes_gpc = Off in php.ini file hope that helps regards Ankur Verma > - Original Message - > From: "John Vanderbeck" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, February 08, 2001 9:17 AM > Subject: [PHP] UN-Escaping text from a form submit? > > > > Hello again, > > > > I have a form that is used to submit data to my script. If the user > enters > > something like: > > > > The title of this book doesn't really matter to "me"! > > > > When I get that back, and read it from the file, it always ends up like: > > > > The title of this book doesn\'t really matter to \"me\"! > > > > Note the addition of the escape sequences. How can I stop this? Is there > > some function in PHP? Or am I goign to have to write a character routine > to > > strip out escape sequences? > > > > - John Vanderbeck > > - Admin, GameDesign > > > > > > -- > > 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, e-mail: [EMAIL PROTECTED] > -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP File Uplaod Path
The default file upload path is the Temporary directory of your system. But the problem that I percieve in your case is that when PHP uploads the file, it gives it a temporary file name ( such as /tmp/shsgtW ). if you are loooking to store the files in an intelligent manner, I would suggest that you do not change the file upload path. Let php copy the file where it does by default. Once the file has been uploaded, copy it to the directory you want the files to reside in . This way you can also specify a legible name for the file. Look in the Uploading files section of the PHP manual and for a good article on uploadingfiles at phpbuilder.com hope that helps regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India > - Original Message - > From: "Dhaval Desai" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, February 07, 2001 2:12 PM > Subject: [PHP] PHP File Uplaod Path > > > > Hi! > > > > I need help with uploading files with php. > > What is the default directory where the files are > > uploaded..? > > I want to specify a particular directory where the > > files have to come after they are uploaded. > > > > Is it possible to specify a path in the script where > > the files will automatically be copied after uploading > > to the temporary directory. > > > > Please help me out ... > > > > Thank You > > Dhaval Desai > > > > > > > > > > __ > > Do You Yahoo!? > > Yahoo! Auctions - Buy the things you want at great prices. > > http://auctions.yahoo.com/ > > > > -- > > 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, e-mail: [EMAIL PROTECTED] > -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] Cookies
Hi I also faced the problem once. the cookie not being read by either of the browsers The cause of the problem was traced back to a wrong setting of the date on the client machine as compared with the server. you cancheck thjis up to confirm. Another reason can be the path in the cookie but i believe you have already tried it up. Hope that helps regards Ankur Verma - Original Message - From: "Matt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 09, 2001 3:32 PM Subject: [PHP] Cookies > I am having major problems with cookies, it's been stressing me out for > over 9 hours. > > I have a script that can set cookies, and it does that, just fine. > > What it doesn't do is READ the cookies off the hard drive when the page is > reloaded. > I have tried everything, messing with the domains, expiration time, setting > it to the root, > using the php setcookie function as well as doing it through http headers. > In each case the > script WILL set the cookie on the computer, but it absolutely REFUSES to > read it back up, > even when called in the same exact scope. > > Yes, I've checked the spelling too, and the page is rather complex, with > various nested includes and so forth. > PHP version is 4.0 > I use both IE 5.5 and Netscape 6, it does the same thing in both of them. > > Any help or suggestions would be greatly appreciated, this has been bugging > the hell out of me. > > Thanks. > --Matt > > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] Runing php with cron
you will need to compile php as a binary ans use it to executethe scripts without using the browser. search the mail archives from www.php.net . This question has been very nicely answered in the last couple of days only. regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Janez Dovc" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 09, 2001 4:24 PM Subject: [PHP] Runing php with cron > I would like to run some php scripts with cron - email reminders. How can I > do that? > > Regards, > > Janez > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] newline processing problem?
try using "\r\n" instead of a simple "\n". hope that helps Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, February 11, 2001 6:51 AM Subject: [PHP] newline processing problem? > > I have some code which generates a large string to be used by the mail() > function. At the same point in the string each time, PHP stops processing > "\n" correctly and instead of a newline outputs nothing, so the text starts to > get run together.. but it doesn't seem to happen on every "\n". Has anyone > else run into this problem? It used to work correctly but I made a few > changes to portions of the code that were totally uninvolved, and it started > behaving this way. Unfortunately, I didn't notice the problem until I'd made > a number of small changes to unrelated things and didn't remember what they > were. > > > > Gordon Morehouse > [EMAIL PROTECTED] > www.evernex.com > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] checking for presnet file name
try using $PHP_SELF and $REQUEST_URI regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "John LYC" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Monday, February 12, 2001 10:52 AM Subject: [PHP] checking for presnet file name > is there a pre-defined variable that return present php file name... > > for example... > > url : www.domain.com/mypage.php > > $var == "mypage"; > > > > thanks > > > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] Preserve variables between page loads?
try using session variables. take a look at phplib if you are using PHP3 or http://www.php.net/manual/en/ref.session.php if you are using PHP4 hope that helps Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Chuck Mayo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 12, 2001 10:53 AM Subject: [PHP] Preserve variables between page loads? > This may have crossed the list a bazillion times, but I couldn't really find > anything appropriate in the archives... maybe I just didn't look hard enough. > > In a MySQL app, I have the usual row of paging links at the bottom of the page > and need to pass to the next iteration more variables than I can comfortably > url-encode in the hyperlink. If all these paging links were submit buttons I > could pass anything I wanted in hidden form fields, but since they're > hyperlinks I don't seem to have that option. > > Is there a way to selectively preserve variables between iterations? Something > like variables that are global to PHP, as opposed to being global within the > script? > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] Can anyone help me on nntp ?
I guess there is a NNTP class avaailable at http://phpclasses.upperdesign.com/ regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "James Hsieh" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 12, 2001 1:53 PM Subject: [PHP] Can anyone help me on nntp ? > Hi! > I want to know if I want to post a message to some newsgroup, is there any > sample or function available ? > Can you kindly point out where should I go or maybe give me an example for > this ? > > Thanks. > > James > > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] Run a script for 20minutes
you can set the maximum execution timeu using either the max_execution_time = 30 ; Maximum execution time of each script, in seconds setting in php.ini or can set it at runtime for a script using the set_time_limit() function check the php manual for more details. hope that helps Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Martin E. Koss" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, February 12, 2001 5:20 PM Subject: [PHP] Run a script for 20minutes > Hi, > I have PHP3 and MySQL on Win98 and am trying to run a script that loops > through a file making process and it needs about 20 - 30 minutes to run. It > generates static HTML files based on content in a database. I've increased > Internet Explorer's timeout to allow for this but for some reason only about > half the processing is done before everything seems to just stop. > > Does anyone know of a very basic way of executing a PHP script on a Win98 > machine without the need for a browser? Or, another way of running this > script that will take some time and create some 22,000 files through the > process. > > Thanks, > > Martin. > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] character problem
use stripslashes on the data being posted. for ex if the text field name is varText use $varText=stripslashes($varText) That should take care of it regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "John P. Donaldson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 12, 2001 10:11 PM Subject: [PHP] character problem > I've created a PHP script that is called from a form > to send an email. The contents of the email is a > hidden value in the form named "info," and is > typically a paragraph of text. It works fine, > however, for some reason, the apostrophy character > always gets emailed looking like this: /' > > I've tried everything to get around this. Any ideas? > Here's my script and form: > > Form: > > action="emailsender.php"> > Email this product info to a friend > > > > > > > Script file named emailsender.php: > > print "The product info has been mailed to: > $email"; > > $to = $email; > $sender ="[EMAIL PROTECTED]"; > > MAIL( > "$email", # address to send $info email to > "Product Info", # subject > "$info", # hidden form field containing text to email > "From: $sender\nX-Mailer: PHP/" . phpversion()); > > ?> > > > Thanks in advance, > John > > > > __ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail - only $35 > a year! http://personal.mail.yahoo.com/ > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] How to send email
try using the SMTP class from the Kazzam Intranet Email system which I have attached with the email. Also, you can download the complete intranet web email application from http://myprojects.cjb.net/ and take a look at the code for sending mail that uses this class instead of sending the email hope that helps Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Emmanuel Halphen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 13, 2001 12:37 AM Subject: [PHP] How to send email > Hi, > > > I have a big problem. > > I am trying to send email by php on a server which doesn't have sendmail > installed. In fact, we don't like to install it. > > I use the 4.0.4pl1 version of PHP, and I have understand that the function > imap_mail doesn't work any more in this version. > > Is there another option for me to send email ? > > Thanks a lot for your help. > > Emmanuel > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] returning multiple variables from a function?
there are two ways of achieving this 1. Pass the arguments by reference and you will have their latest values after the function call. look up the manual http://www.php.net/manual/en/language.references.php 2. Create an array in the function with the various values to be returned stored as its elements and then return the array. The array will then have multiple return values in its elements after the function is called. hope that helps regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "James, Yz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 13, 2001 2:43 AM Subject: [PHP] returning multiple variables from a function? > Hrms. Got a small problem. > > I'm now using functions on a regular basis, but I've come to another > sticking point with them: returning multiple variables from the function... > > Here's a really quick example (nothing to do with what I intend to use the > functions for): > > function CUP ($connection,$username,$password) { > > if (($username) && ($password)) { > $sql = "SELECT username, password FROM table > WHERE username = '$username' AND password = '$password'"; > $result = etc etc > $num = mysql_numrows($result); > > if ($num != 0) { > $valid = "yes"; > } > > return $valid; > > } > > > > $correct_user = CUP ($connection,$username,$password); > > Now, if the user is correct, I'd get a return of > > $correct_user = "yes"; > > What if I wanted to "return" more than one variable from the function? And > how would I assign it a name? Like the actual variable, or is that just not > possible? > > I've tried > return $var1,$var2; > But got an error. > > As always, tia :) > > James. > > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] Broken icon?
try this printf("%s\n",$row["indice_url"],$row["indice_url"]); regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Malouin Design Graphique" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 13, 2001 3:05 AM Subject: [PHP] Broken icon? > Hello, > > My problem is that I have in the table below an URL (see $indice_url) > that points to the graphic (.gif) that has to be use by the the > "$indice" variable. The graphics ( five different ones) located in > the same folder as the script " data_out.php3" > > Any Guru out here could shred me the "Blue Light" on how to make the > images to show? > > Thanks in advance, > > Best regards, > > Yves > > > > This is the table that feeds: > > CREATE TABLE indice ( > id int(11) DEFAULT '0' NOT NULL auto_increment, > date text, > indice text, > indice_url varchar(255), > PRIMARY KEY (id) > ); > > > > The file to get the data out: > > > /* data_out.php3 */ > > $db = mysql_connect("www.server.com", "root", "password"); > mysql_select_db("db_name", $db); > $sql = "select * from table_name order by 'date'"; > $sql = "select * from table_name"; > $result = mysql_query($sql); > while ($row = mysql_fetch_array($result)) { > print(""); > printf("%s\n", > $row["indice_url"]); > } > ?> > > > > The output that it gives me (in source mode): > > > image_f03.gif > image_f05.gif > image_f01.gif > > > -- > > > > Malouin Design Graphique > http://www.malouin.qc.ca > > Québec (Québec) CANADA > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] Using PHP to process forms
you can get a very good tutorials to start up with php at www.devshed.com and http://www.webmonkey.com take a look at them to start up with php. you can embed the php code in your HTML file and need not write a cgi script to do so. I am sure these tutorials will get you up and running and clear most of your doubts. regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Don" <[EMAIL PROTECTED]> To: "php list" <[EMAIL PROTECTED]> Sent: Tuesday, February 13, 2001 3:24 AM Subject: [PHP] Using PHP to process forms > Does anyone have examples of using PHP to process forms? I'd also like > to know if I can embed the code in my html file or do I have to write a > CGI server side script to do it? > > Thanks, > Don > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] Problems with ! in mail();
let's see some code Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Curtis, Lorenzo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "PHP List" <[EMAIL PROTECTED]> Sent: Tuesday, February 13, 2001 3:30 AM Subject: RE: [PHP] Problems with ! in mail(); > I don't think it's a bug in my code... I have gone through it > dozens of times and there are NO exclamation points... > > > > > > __ > Lorenzo Curtis > Website/Database Developer > prexar - internet and beyond > [EMAIL PROTECTED] > (207) 974-4334 > > > -Original Message- > From: Christian Reiniger [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 12, 2001 4:42 PM > To: PHP List > Subject: Re: [PHP] Problems with ! in mail(); > > > On Monday 12 February 2001 22:27, Curtis, Lorenzo wrote: > > I am trying to process a form using text/html and mail(). > > > > The resulting email continues to have an ! inserted randomly > > into the email. Does anyone know how to avoid this?? > > Yes. Look through your code and find out where you're inserting that "!". > Such things don't get in by accident - it's a bug in your code. > > -- > Christian Reiniger > LGDC Webmaster (http://sunsite.dk/lgdc/) > > Those who will not reason, are bigots, > those who cannot, are fools, > and those who dare not, are slaves. > > - George Gordon Noel Byron (1788-1824), [Lord Byron] > > -- > 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, e-mail: [EMAIL PROTECTED] > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] How to check if vaiable is defined or not?
try using isset() or empty() see the php manual for more details Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "SED" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 13, 2001 4:51 AM Subject: [PHP] How to check if vaiable is defined or not? > Hi, > > I'm sending a form, with check-boxes, via post to PHP-script and if the > boxes are not checked they don't post value for its variable - Can I check > with a function if the variable is defined? (or should I focus on another > solution?) > > Regards, > Sumarlidi Einar Dadason > > SED - Graphic Design > > -- > Phone: (+354) 4615501 > Mobile: (+354) 8960376 > Fax: (+354) 4615503 > E-mail: [EMAIL PROTECTED] > Homepage:www.sed.is <- New Homepage! > -- > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] Nothing Showling up in Netscape
check for your closing table tags Netscape is not at all forgiving for tables which are not closed. hope that helps Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: Peter Houchin To: [EMAIL PROTECTED] Sent: Tuesday, February 13, 2001 4:58 AM Subject: [PHP] Nothing Showling up in Netscape Hi all, I've created a page (see attached file) everything works fine in IE but once i check it in NN i get nothing showing up, when i view the source code of the page i can see the full code can any one offer me any suggestions as to why this is so...( I have check all HTML and its all correct and working in NN when its taken out of the php script) Thanks Peter -- -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] security question
if you are using these values to check for user login across multpile pages on your site (i.e you want the user to login at one place and you are passing the login info to all the other pages on the site using the hidden fields ) you should take a look at the concept of user sessions take a look at the phplib session management, tutorials on sessions at www.phpbuilder.com (I am not very sure bnut I recall they had one) and the session functions in the php manual. hope that helps Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Marc Aragnou" <[EMAIL PROTECTED]> To: "PHP Lists" <[EMAIL PROTECTED]> Sent: Tuesday, February 13, 2001 6:00 AM Subject: [PHP] security question > Hello there, > > I'm posting a username and a password with: > > > > > When I check $HTTP_POST_VARS I can see the values as they're plain text. Is > this still safe to do or should I encrypt the strings before posting them > between pages? > > Thanks for your help. > > -Original Message- > From: Brian V Bonini [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, 13 February 2001 11:07 AM > To: PHP Lists > Subject: [PHP] serialize/deserialize data > > > What exactly does > serialize/deserialize data > mean? > > -- > 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, e-mail: [EMAIL PROTECTED] > > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] How To Tell Which v. PHP?
use phpinfo(); Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Jeff Oien" <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]> Sent: Tuesday, February 13, 2001 6:00 AM Subject: [PHP] How To Tell Which v. PHP? > Is there a script I can run to tell which version of PHP the > server is using to run it? > > Details: > Two reasons I ask. One is if I have a client on an unfamiliar > server with bad or no documentation. Or to test when using > .htaccess to use the .phtml extension for php3 when the server > would normally see that as a PHP2 file. > > Thanks. > Jeff Oien > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] create filesystem folder?
check out the file system function at http://www.php.net/manual/en/ref.filesystem.php you might also find some good classes to do the same at phpclasses.upperdesign.com. check it up regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "andrew" <[EMAIL PROTECTED]> To: "PHP General" <[EMAIL PROTECTED]> Sent: Tuesday, February 13, 2001 8:26 AM Subject: [PHP] create filesystem folder? > subject says it all - any way to create a new folder in the filesystem? > > regards, > andrew > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] serialize/deserialize data
what serialize does is that it allows you to store or pass data types such as arrays, objects etc without losing their structure. for ex, let's say you have an array $foo=array("abc","def") now you need to pass this array to the next page without losing the structure. that is on the next page, you shoudl be able to do $foo[0] and till be able to get $foo[0] as "abc" just do the folloowing $passFoo=serialzie($foo); and pass the value in $passFoo to the next page on the next page, you should do $foo=unserialzie($passFoo) and doing $foo[0] should give you "abc" try it out yourself writing some dummy code and you will understand it better. serialize is extremely helpful in case of storing session variables, arrrays etc. hope that helps Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Brian V Bonini" <[EMAIL PROTECTED]> To: "PHP Lists" <[EMAIL PROTECTED]> Sent: Tuesday, February 13, 2001 5:36 AM Subject: [PHP] serialize/deserialize data > What exactly does > serialize/deserialize data > mean? > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] help with classes
you do this in the class constructor class foo { var $bar; function foo($fooval) { $this->bar=$fooval; } } hope that helps Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Joseph H Blythe" <[EMAIL PROTECTED]> To: "php-general" <[EMAIL PROTECTED]> Sent: Wednesday, February 14, 2001 9:27 AM Subject: [PHP] help with classes > hey all, > > Was just wondering how to do the following: > > class Foo { > > var $bar = $foo; // causes parse error > var $bar = "$foo"; // causes parse error > var $bar = '$foo'; // works but $foo is not evaluated > > } > ?> > > So how does one correctly assign a variable to a variable inside a class withot doing something like: > > var $bar = ''; > $this->bar = $foo; > > Any insight would be much appreciated. > > Regards > > Joseph > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] Build HREF list from database???
you have an extra semicolon in the for statement it should be for (0 < $i > $count; $currrent_row = mysql_fetch_row($result); ++$i) $path=$current_row[2]"; file://database field position matched index number print "$count"; // } hope that helps Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "andrew" <[EMAIL PROTECTED]> To: "PHP General" <[EMAIL PROTECTED]> Sent: Tuesday, February 13, 2001 10:24 AM Subject: [PHP] Build HREF list from database??? > Hi - I want to print a list of numbers linked to URLs I create on the fly - > something like this: > > table: > --- > pathpid > -|- > > foo.jpg 1 > bar.jpg 1 > > > include("db_connection_params.inc"); file://all relevant database variables > $sql="select path from table where pid =1"; file://obvious > $link_id = mysql_connect($host, $usr, $pass); file://get connection handle > > $result = mysql_db_query($database, $sql, $link_id); > $count = mysql_num_rows($result) or die ("no rows returned from $sql"); > > $i = 0; file://initialze counter > > for (0 < $i > $count; $currrent_row = mysql_fetch_row($result); ++$i;) > > > > $path=$current_row[2]"; file://database field position matched index number > print "$count"; // > } > > ?> > > so I want this to print: > 1 (linked to foo.jpg) > 2 (linked to bar.jpg) > > The problem is I'm getting a parse error on the "for" line. > > Any ideas? > > TIA, > andrew > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] Mail classes
try using the class that I adopted for my intranet email solution from the avialable classes on the net aqnd added some functions especially suited for a webmail application. I also developed a webmail solution called Kazam Intranet Email Solution usign this class. you can download the complete program including the class from http://myprojects.cjb.net/ or hotscripts.com (just search for Kazzam) The code should help you in understanding the use of the class. hope that helps Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Josh G" <[EMAIL PROTECTED]> To: "PHP User Group" <[EMAIL PROTECTED]> Sent: Tuesday, February 13, 2001 10:17 AM Subject: [PHP] Mail classes > Hi, > I'm wondering what're the best classes available for reading/ > sending emails? > > I want to do a webmail solution (for myself at first), and don't want > to use IMP. I'd need to be able to handle attachments as well. > > Any pointers? > > Cheers, > > Gfunk - http://www.gfunk007.com/ > > I sense much beer in you. Beer leads to intoxication, intoxication to > hangovers, and hangovers to... suffering. > > > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] File Upload stuck in the midst
tuirn on the following setting in your php.ini file register_globals = On currently it seems to be off in your settings file hope that helps regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Dhaval Desai" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 13, 2001 2:10 PM Subject: [PHP] File Upload stuck in the midst > Hi! > > I am facing some problems while uploading files.. > I just copied the code from php.net from the section > "Handling File Uploads". > > My index.php pages has the following code: > > > > File Uploads > > > > ACTION="action.php" METHOD=POST> > value="2000"> > Send this file: > > > > > > > > > > > ACtion.php has the following code: > > if (is_uploaded_file($userfile)) { > copy($userfile, "(c:\\)"); > } else { > echo "Possible file upload attack: filename > '$userfile'."; > } > /* ...or... */ > move_uploaded_file($userfile, "(c:\\)"); > ?> > > > I always get the error: message.. > > [Possible file upload attack: filename 'none'.] > > > Can anybody tell me what could be the possible reason > for this. > > > Thanx a lot! > Dhaval Desai > > __ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail - only $35 > a year! http://personal.mail.yahoo.com/ > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] File Upload stuck in the midst
also take a good look at the following document http://www.php.net/manual/en/features.file-upload.php regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Dhaval Desai" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 13, 2001 2:10 PM Subject: [PHP] File Upload stuck in the midst > Hi! > > I am facing some problems while uploading files.. > I just copied the code from php.net from the section > "Handling File Uploads". > > My index.php pages has the following code: > > > > File Uploads > > > > ACTION="action.php" METHOD=POST> > value="2000"> > Send this file: > > > > > > > > > > > ACtion.php has the following code: > > if (is_uploaded_file($userfile)) { > copy($userfile, "(c:\\)"); > } else { > echo "Possible file upload attack: filename > '$userfile'."; > } > /* ...or... */ > move_uploaded_file($userfile, "(c:\\)"); > ?> > > > I always get the error: message.. > > [Possible file upload attack: filename 'none'.] > > > Can anybody tell me what could be the possible reason > for this. > > > Thanx a lot! > Dhaval Desai > > __ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail - only $35 > a year! http://personal.mail.yahoo.com/ > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] php socket function
in php you need to use the function fsockopen() instead of the socket() check up the php manual for the scoket cunctions at http://www.php.net/manual/en/ref.sockets.php you can also download a good example of a class that uses the socket functions to send and recieve email from http://myprojects.cjb.net/ Download the Kazzam Intranet Email System code from here which has the class and the example of how to use it for sending and recieving email regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: Tissandié To: Mailing Php (E-mail) Sent: Tuesday, February 13, 2001 2:44 PM Subject: [PHP] php socket function Hi all, need some help about socket functions. I try tu use socket function. This is my script: if (($sock = socket(AF_INET, SOCK_STREAM, 0)) < 0) { echo "socket() a echoué - raison : " . strerror($sock) . "\n"; } And this is the error I always get : Fatal error: Call to undefined function: socket() in d:\myscript.php on line 175 I'm using PHP with WIN NT. The error is the same with PHP Version 4.0.5-dev , or PHP Version 4.0.4. I've installed PHP from binary code, not with re-compiling source. First question : is socket function installed on php version for windows ? Second : if yes, where is the problem. Thank you for your help, François Tissandié. Embrassez ceux que vous aimez Atos-Infogérance Tour MANHATTAN 6 Place de l'Iris 92400 Courbevoie Cedex Tél. : 01.70.92.49.67 Fax. : 01.70.92.48.57 e-mail : [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] user rights for an upload
Interesting Query! Please let me know of any solution that you might come up with. regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Bogdan Morar" <[EMAIL PROTECTED]> To: "Php general" <[EMAIL PROTECTED]> Sent: Tuesday, February 13, 2001 3:10 PM Subject: [PHP] user rights for an upload > Hi, > On a linux system, I have an directory owned by the user X. How can I > force an upload in that directory if my "apache user" is "nobody". I > tried with PHP_AUTH_USER but doesn't work. I tried all the examples from > php doc, all the "explorers" from zend.com, baut i don't find a good > solution. > > I know are many solutions with ftp, Special directory in http.conf, but > i'm looking for a php solution. > > Thanks in advance, > Bogdan Morar > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] limitation of file upload??
The maximum filesize for file uploads is either set in the php.ini file using the setting upload_max_filesize = 2M ; Maximum allowed size for uploaded files or you can also specify the maximum file upload size at runt time as follows Send this file: consult the following section of the php manual for more info http://www.php.net/manual/en/features.file-upload.php hope that helps regards Ankur VermaHCL TechnologiesA1CD, Sec -16Noida, UPIndia - Original Message - From: "John LYC" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Tuesday, February 13, 2001 3:24 PM Subject: [PHP] limitation of file upload?? > > is there limitations on file upload.. such as file size when using > ??? > > thanks > > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] limitation of file upload??
well! Nice question. I haven't gone beyond 2.5 MB on any occassion. but I guess theoretically this should be possible by setting the maximum upload file size setting using the methods already discusssed. Another thing that you might want to look out for in this case would be the maximum execution time of the script take a look at the max_execution_time setting in php.ini and the set_time_limit() function in the php manual. don't forget to tell me the results of this experiment of yours. :) :) regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India .- Original Message - From: "John LYC" <[EMAIL PROTECTED]> To: "Ankur Verma" <[EMAIL PROTECTED]> Cc: "PHP List" <[EMAIL PROTECTED]> Sent: Tuesday, February 13, 2001 3:46 PM Subject: Re: [PHP] limitation of file upload?? > Hi.. > can i upload a 50 Mb file thur this method?.. > any complication? > john > > Ankur Verma wrote: > > > The maximum filesize for file uploads is either set in the php.ini file > > using the setting > > > > upload_max_filesize = 2M ; Maximum allowed size for uploaded files > > > > or you can also specify the maximum file upload size at runt time as follows > > > > > > Send this file: > > > > > > > > consult the following section of the php manual for more info > > http://www.php.net/manual/en/features.file-upload.php > > hope that helps > > regards > > Ankur VermaHCL TechnologiesA1CD, Sec -16Noida, UPIndia > > - Original Message - > > From: "John LYC" <[EMAIL PROTECTED]> > > To: "PHP List" <[EMAIL PROTECTED]> > > Sent: Tuesday, February 13, 2001 3:24 PM > > Subject: [PHP] limitation of file upload?? > > > > > > > > is there limitations on file upload.. such as file size when using > > > ??? > > > > > > thanks > > > > > > > > > > > > -- > > > 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, e-mail: [EMAIL PROTECTED] > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] What Does This Mean?
I am not very sure of what exactly does this this mean but I guess that the particular module that you are installing requires a cversion of PHP that has to be greater than 3.0.8. This is just a guess. I aplogize if it's wrong. regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Ben Ocean" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, February 13, 2001 3:28 PM Subject: [PHP] What Does This Mean? > Hi; > I'm getting this error: > >>> > Unsatisfied dependencies for mod-php3-mysql-3.0.8-2: mod-php3 >= 3.0.8 > <<< > What does it mean and what should I do about it (if anything)? > TIA, > BenO > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] Any image drawing tutorials anywhere?
you might want to take a look at imagemagick http://www.wizards.dupont.com/cristy/ImageMagick.html regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Lucas Persona" <[EMAIL PROTECTED]> To: "Php (E-mail)" <[EMAIL PROTECTED]> Sent: Tuesday, February 13, 2001 7:25 PM Subject: Re: [PHP] Any image drawing tutorials anywhere? > Hello, > > I've seen this 'text images generators' but I would like to know where > I can find some explanation about image manipulation like merging/mixing > two or more images. > Something like, I have a background image and some small image elements > that will be somewher on that background image...for example, my > background image is a table and I have some images like a book, a pen, a > paper..and so on, and what I want to do is to create a final image where > sometimes it will show two books and three pens on the table...sometimes > it will be just a pen on the table... > Have you ever seen something like that and where I can find information > about that? > > Thanks, > Lucas Persona > [EMAIL PROTECTED] > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] Cookies
when the cookie is not set, the $HTTP_COOKIE_VARS will not have an index 'getdwgnum' maybe you should try it this way "") { $str = "where Cook = $cookieinfo"; $cx=odbc_pconnect("doc","",""); } else setcookie ("getdwgnum", $cook,time()+28800); ?> this code is not checked by executing. but I guess this should be the reason. hope that helps best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India. "Gary" <[EMAIL PROTECTED]> wrote in message 96bo38$1j7$[EMAIL PROTECTED]">news:96bo38$1j7$[EMAIL PROTECTED]... > I am getting the following error message from the code below. > > Warning: Undefined index: getdwgnum in d:\apache\htdocs/getdwgnum.php on > line 4 > > > > $cook = mt_rand (5, 5) ; > $cookieinfo = $HTTP_COOKIE_VARS["getdwgnum"]; > if ($cookieinfo > "") > { > $str = "where Cook = $cookieinfo"; > $cx=odbc_pconnect("doc","",""); > } > else > setcookie ("getdwgnum", $cook,time()+28800); > > ?> > > > I want to look for a cookie and if it is not there I want to set one. Any > ideas? > > Thanks, Gary > > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] Include
you should try the setting for include_path in php.ini as include_path =" /usr/share/php:./" note the addition of './' in the include path. this would allow php to include the files in the current directory as well, which is the case I guess with the phorum scripts. regards best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Fabian Fabela" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 13, 2001 11:08 PM Subject: [PHP] Include Hello, I have php 4.0.3pl1. I am trying to install phorum (phorum.org). In a php file (index.php in admin) there is the function include for a file (common.php), I get the following error. Warning: Failed opening 'common.php' for inclusion (include_path='/usr/share/php') in /home/web/vacagorda/jeans/htdocs/foro/administration/index.php on line 28 Why I can't include that file without putting it in the /usr/shar/php diretory? Thank you Fabian Fabela [EMAIL PROTECTED] "La información transmitida en el presente mensaje tiene la intención de estar dirigida únicamente a la persona o entidad que se refiere y puede contener información privilegiada y/o confidencial. Cualquier, revisión, retransmisión, diseminación o cualquier uso impropio o relacionado con dicha información por persona alguna distinta a la que fue dirigido este mensaje queda estrictamente prohibido. Si Usted ha recibido este mensaje o sus anexos por error, favor de contactar al remitente y elimine el material de cualquier computadora." "The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer." -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] about session
No! php sessions functions won't work before Version 4 to implement sessions in versions of php before version 4, you could use phplib best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "JW" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 14, 2001 12:04 PM Subject: [PHP] about session > i want to know whether session is not work before the version php4? > thx! > > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] Image in a Template
keep the images in a folder on the file system and link the filename of the picture to the product tuple in the dataabse. I would suggest you use the product ID as the filename for the picture in the folder. that shoudl amke it easier for you to administer. best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Gary" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 14, 2001 1:55 AM Subject: [PHP] Image in a Template > Hi All, > I am writing a catalog and shopping cart. Our clients want a image on > the page for the product. The page is a template generated on the fly. I > could put the images in the db and call it from there, but I don't like > doing that. Is there another way to put the pic on the page? > > TIA > Gary > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] apache & php
take a look at some good tutorials on www.phpbuilder.com, www.devshed.com and www.webmonkey.com also, download the php manual from www.php.net and go through the installation section therein that deals in detail with the stuff on installing php with apache , both on Windows and Unix hope that helps best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 14, 2001 5:31 PM Subject: [PHP] apache & php > help! > > i want to get started! > > how do configure Apache to work with PHP? > > apparently it is not because my browser will not "find" the test files.php. > > please help me to test it. > > i am using Mac OS X (pb) so i should follow any Unix procedure ok, i think. > > thank you. > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] Help Work with files
check out the filesystems functions in the php manual http://www.php.net/manual/en/ref.filesystem.php and also check out the code of some good file Management systems at http://www.hotscripts.com/PHP/Scripts_and_Programs/File_Manipulation/File_Ma nagement/ hope that helps best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Karl J. Stubsjoen" <[EMAIL PROTECTED]> To: "PHP Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, February 14, 2001 8:44 PM Subject: [PHP] Help Work with files > Hello, I need to work with files on my web server. I need to be able move > them, delete them, rename them etc... > Is there a section in the documentation devoted to this? > - How do I list files in a directory? > > Thanks! > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] date maniplations
try using strtotime() http://www.php.net/manual/en/function.strtotime.php hope that helps best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Don" <[EMAIL PROTECTED]> To: "php list" <[EMAIL PROTECTED]> Sent: Wednesday, February 14, 2001 9:17 PM Subject: [PHP] date maniplations > Hello, > > Sorry if I am confused by the date functions in the manual but I am. > Here's what I want to do: > > I have a string in the form MM/DD/. I wish to: > 1) convert it to a date > 2) add $n days to it > 3) convert back to a string in the same format above > > I believe I can accomplish [2] and [3] with: > > $mytdate = date("m/d/Y",mktime(0,0,0,date("m") > ,date("d")+$n,date("Y"))); > > How do I accomplish step 1? > Can I type cast a string to a date? > > Thanks, > Don > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] Why???
read about stripslashes at http://www.php.net/manual/en/function.stripslashes.php hope that helps best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Nguyen, David M" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 14, 2001 9:32 PM Subject: [PHP] Why??? > Hi all, > > I have a PHP web form setup for user to fill in information then email it to > me after pressing SUBMIT button. Everytime user uses double-quote(") or > single(') it inserts (/) right in front of " or '. Does anyone know why and > how to fix it? Please advise. Below is example of what I got from my email > when user submits form to me. > > > Topic: Added \"Initial login to the EMS\" procedure. > > > Thanks in advance, > David > > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] Why???
just use \n"); print ("\n"); print ("$title\n"); print ("\n"); print ("\n"); print ("Thank you. Your submission has been sent. Back to Home Page.\n"); print ("\n"); print (""); ?> hope that helps best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Nguyen, David M" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 14, 2001 9:58 PM Subject: RE: [PHP] Why??? > The / is coming from $topic, how do I use stripslashes to remove / . Can > someone give me an example how to code it? > > Here is my original PHP script: > > > $to = "[EMAIL PROTECTED]"; > $subject = "Update"; > $message = "The following Webpage is added or updated:\n\nDate: > $date\nEquipment > : $equipment\nTopic: $topic\nURL: $url"; > $mail_header = "From: $email"; > mail( $to, $subject, $message, $mail_header ) or print "Could not send > mail"; > > print ("\n"); > print ("\n"); > print ("$title\n"); > print ("\n"); > print ("\n"); > print ("Thank you. Your submission has been sent. HREF=\"index.h > tml\">Back to Home Page.\n"); > print ("\n"); > print (""); > > == > > > > -Original Message- > From: John Vanderbeck [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 14, 2001 10:07 AM > To: Nguyen, David M; [EMAIL PROTECTED] > Subject: Re: [PHP] Why??? > > > I can help you there, as I had the same problem until someone else helped > me. This is because PHP will escape the input it gets. I think this is > dependant on some enviroment setting, but I can't recall which one. > > To fix it you call stripslashes($var); > > - John Vanderbeck > - Admin, GameDesign > > - Original Message - > From: "Nguyen, David M" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, February 14, 2001 11:02 AM > Subject: [PHP] Why??? > > > > Hi all, > > > > I have a PHP web form setup for user to fill in information then email it > to > > me after pressing SUBMIT button. Everytime user uses double-quote(") or > > single(') it inserts (/) right in front of " or '. Does anyone know why > and > > how to fix it? Please advise. Below is example of what I got from my > email > > when user submits form to me. > > > > > > Topic: Added \"Initial login to the EMS\" procedure. > > > > > > Thanks in advance, > > David > > > > > > > > -- > > 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, e-mail: [EMAIL PROTECTED] > > > > > > > -- > 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, e-mail: [EMAIL PROTECTED] > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] Qoute problem
use stripslashes() in the submit page to take care of the problem with the quotes for ex, if the name of the textbox for description is "txtDesc", use the following line at the top of the page $describe=stripslashes($describe); so your code will look like PHP Script #1: Editing description print' Description:'; echo $info["description"]; print' '; PHP Script #2: (preview changes) Description: PHP Script #3: (update database) $describe=stripslashes($describe); $sql = "UPDATE news SET release_date='$date', title='$title', description='$describe', contact='$contact', content='$test', type='$type' WHERE news_id=$id"; $result = mysql_query($sql) make sure that you make use of stripslashes in both the pages ( in the hidden field of the second page as well) otherwise you will have to use multiple stripslashes() calls to get back to your original data hope that halps best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Tanya Brethour" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 14, 2001 10:26 PM Subject: [PHP] Qoute problem > > Hi! I was hoping that someone could help me out. I am not positive if I > understand whats going on.. so let me try to explain. > > This is a process to modify news articles in a MySQL database. > > (From the point after picking the article to modify) > PHP Script #1: > I grab everything from the database and stick it into the HTML form > (textarea, text, etc). I allow the user to modify whatever they want. > > PHP Script #2: > This script takes the new information and displays it to the user.. it is > a preview of what it will look like with the changes. > > PHP Script #3: > Updates the news article in the database. > > Now the problem I am having.. is that the description and content fields > have qoutes in them. For example: > Description: I like to run and walk. I love "smelly cheese." > > So.. when it tries to update the database. It will only store this as the > description: > I like to run and walk. I love\\ > > I know that its because the qoutes are not being escaped correctly.. and > it seems as though it is escaping the escape. > > So my question is.. how can I keep my qoutes? > > Just FYI.. I am making the user enter in the description and content in > html. So i cant just change the qoutes to HTMLTags because it would change > my and etc. > > Below is an example of the code (shortened for an example): > > PHP Script #1: Editing description > > print' > > Description:'; > echo $info["description"]; > print' > '; > > PHP Script #2: (preview changes) > > > Description: > > > PHP Script #3: (update database) > $sql = "UPDATE news SET release_date='$date', title='$title', > description='$describe', contact='$contact', content='$test', type='$type' > WHERE news_id=$id"; > $result = mysql_query($sql) > > > Thanks in advance. > > -Tanya > > > > > > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] how do I do file maintenance with PHP?
I guess that someone posted a good script to browse through the contents of a specified directory and browse through it. Search through the archives for the last week or so and you shoudl land up with it. If you don't write baxck to me. I have a similar script that I wrote but I need to search for it. I will send that to you. The script does eactly what you want -filesystem manipulation after database matching. Also, to limit the filesize for uploaded files, take a look at the uploading files section of trhe php manual http://www.php.net/manual/en/features.file-upload.php there are good code snippets to achieve this. hope that helps best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Kenneth R Zink II" <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]> Sent: Wednesday, February 14, 2001 11:30 PM Subject: [PHP] how do I do file maintenance with PHP? Ok here is the deal. I have a Linux server running PHP4 and MySQL and a directory full of images. The images that are currently being used should be listed in a table (members) in a column titled "pic1". What is the best way to pull the file names of the files and check them against the files in the table? I want all files that are not listed in the table to be deleted. Also, is there a way to limit file size? I don't want new images to be accepted if they exceed 250k. It takes too long for images to display if they are larger then that. Thanks in advance for any help. Kenneth R Zink II [EMAIL PROTECTED]ICQ# 5095094 '87 2.8L TBI GMC S-15 Ext. Cab (Hurricane) ...524 in the works !!! http://www.s-series.org/htm/windstorm/project-windstorm.htm '85 3.4L Carbed Chevy S-10 Blazer (FireStorm) ...Soon to be 3.4L SFI DIS !!! http://www.s-series.org/htm/firestorm/firestorm.htm Racing by the Grace of God!! -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: Access my script
take a look at the header function http://www.php.net/manual/en/ref.http.php hope that helps best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Barry Fawthrop" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 14, 2001 11:43 PM Subject: [PHP] Re: Access my script > > - Original Message - > From: "Barry Fawthrop" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, February 14, 2001 1:01 PM > Subject: Access my script > > > > I now have my .php3 script works well > > How do I access / call this script automatically from a .html page > > > > or must it be set to a .shtml page ? > > > > without the user / viewer pressing a link or button > > > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] Qoute problem
if you store the data in the MYSQL database with the slashes escaping the quotes, I think the complete stuff will get stored. for ex - if you have Description: I like to run and walk. I love "smelly cheese." and on posting, you get I like to run and walk. I love \"smelly cheese.\" it will store the complete string into the MYSQL database. and on retrieval you will get I like to run and walk. I love "smelly cheese." try it out best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Tanya Brethour" <[EMAIL PROTECTED]> To: "Web master" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, February 14, 2001 11:47 PM Subject: Re: [PHP] Qoute problem > > > Let says I strip the slashes.. so it goes back to just normal qoutes.. and > then do the str_replace("\"","|", $describe); > > $describe = stripslashes($describe); > str_replace("\"","|",$describe); > > It doesnt replace the qoutes.. > > -Tanya > > On Wed, 14 Feb 2001, Web master wrote: > > > My approach towards this problem was to parse the data before inserting > > and before displaying. > > Before inserting the data entered by user, do something like > > str_replace($comments, "'","~") and do the same thing for " do a > > different character like | and then insert it into database. > > Do the reverse before displaying the data, it should fix your problem.. > > > > Tanya Brethour wrote: > > > > > Hi! I was hoping that someone could help me out. I am not positive if I > > > understand whats going on.. so let me try to explain. > > > > > > This is a process to modify news articles in a MySQL database. > > > > > > (From the point after picking the article to modify) > > > PHP Script #1: > > > I grab everything from the database and stick it into the HTML form > > > (textarea, text, etc). I allow the user to modify whatever they want. > > > > > > PHP Script #2: > > > This script takes the new information and displays it to the user.. it is > > > a preview of what it will look like with the changes. > > > > > > PHP Script #3: > > > Updates the news article in the database. > > > > > > Now the problem I am having.. is that the description and content fields > > > have qoutes in them. For example: > > > Description: I like to run and walk. I love "smelly cheese." > > > > > > So.. when it tries to update the database. It will only store this as the > > > description: > > > I like to run and walk. I love\\ > > > > > > I know that its because the qoutes are not being escaped correctly.. and > > > it seems as though it is escaping the escape. > > > > > > So my question is.. how can I keep my qoutes? > > > > > > Just FYI.. I am making the user enter in the description and content in > > > html. So i cant just change the qoutes to HTMLTags because it would change > > > my and etc. > > > > > > Below is an example of the code (shortened for an example): > > > > > > PHP Script #1: Editing description > > > > > > print' > > > > > > Description:'; > > > echo $info["description"]; > > > print' > > > '; > > > > > > PHP Script #2: (preview changes) > > > > > > > > > Description: > > > > > > > > > PHP Script #3: (update database) > > > $sql = "UPDATE news SET release_date='$date', title='$title', > > > description='$describe', contact='$contact', content='$test', type='$type' > > > WHERE news_id=$id"; > > > $result = mysql_query($sql) > > > > > > > > > Thanks in advance. > > > > > > -Tanya > > > > > > > > > > > > > > > > > > > > > > > > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] Passing vars
one way would be to pass this using Hidden fields if you can submit the form or else use the session variables to propogate the values across multiple pages http://www.php.net/manual/en/ref.session.php or try out phplib if you are on PHP3 hope that helps best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Tanya Brethour" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, February 14, 2001 11:50 PM Subject: [PHP] Passing vars > > Quick question.. > > If I have like 6 variables to pass to another PHP script... and some of > the vars are actually multiple lines of text (lets say over 30 lines). > What is the best way of doing this? > > I would like to avoid doing something like test.php?cheese=(30 lines of > stuff) > > Thanks in advance! > -Tanya > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] Upload moves the file doesn't copy it..
Sorry for not being able to send you the code you requested for. But I am glad that you learnt uploading files. coming to your problem, PHP by default deletes the temporary upload file it created when the script finishes execution. You will need to explicitly make all the copies of the file that you want to keep. more information about this can be found in the Handling file uploads section of the php manual hope that helps best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Dhaval Desai" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 15, 2001 12:38 AM Subject: [PHP] Upload moves the file doesn't copy it.. > Hi! > > > I have finally learned to upload file using php. > But the problem is that When I upload a file, it > disappears from it's place and moves to the location I > have told it to go to. It's more like a cut & paste > rather then copy and paste... > > My code is as follows: > > > > Index.html: > ** > > > Untitled Document > > > > > > > > > > > > > > > > > > > > *** > > > > Below is upload.php: > > *** > > if (copy($userfile, "c:\\upload.txt")) > { > echo "Succesful"; > } > else > { > echo "failure"; > } > unlink($userfile); > > ?> > ** > > > > > > Thank You! > Dhaval Desai > > > > > > __ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail - only $35 > a year! http://personal.mail.yahoo.com/ > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] concatenating strings and \n's for mail...
you will need to use "\r\n" instead of only "\n", I guess hope that helps best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Larry Rosenman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 15, 2001 12:51 AM Subject: [PHP] concatenating strings and \n's for mail... > Greetings, > I was trying to build up a multi-line body to use with the mail > command, using code similar to: > $mailbody = $mailbody . '\n' . $HTTP_POST_VARS["somefield"]; > > when I sent the mail, the \n showed up, not as a new line, but a > literal \n. How do I fix this? > > This is with 4.0.4pl1. > > LER > > > -- > Larry Rosenman http://www.lerctr.org/~ler > Phone: +1 972-414-9812 E-Mail: [EMAIL PROTECTED] > US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749 > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] Paging results
I guess there are good articles on this at phpbuilder.com http://www.phpbuilder.com/columns/rod20001214.php3 http://www.phpbuilder.com/columns/rod2221.php3 hope that helps best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Randy Johnson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 15, 2001 2:12 AM Subject: [PHP] Paging results > Can somebody give me a url of an example or an example of how to page > results so they can be view by clicking page 1 page 2 or back and next? > > results obtained from mysql database. > > Thanks > > Randy > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP scripts in HTML
you should use include() function instead of the javascript style includes refer to the php manual for more details best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Don" <[EMAIL PROTECTED]> To: "php list" <[EMAIL PROTECTED]> Sent: Thursday, February 15, 2001 2:58 AM Subject: [PHP] PHP scripts in HTML > I would like to know if there is a way to accomplish the following: > In my HTML file, I have the following: > > > > In the testscript.php file, I have: > > echo "Hello Don"; > echo "What is up?"; > ?> > > When I run the html file, I do not see the PHP code but if I place the > above code directly in my HTML file, it displays. > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] Up & Downloading
take a look at the php file managers at hotscripts.com http://www.hotscripts.com/PHP/Scripts_and_Programs/File_Manipulation/ they might have the functionality that you are looking for. if not, it should be easy enough to make the changes so as to support the desired functionality. hope that helps best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Steve Haemelinck" <[EMAIL PROTECTED]> To: "PHP Mailing Listl (E-mail)" <[EMAIL PROTECTED]> Sent: Thursday, February 15, 2001 3:05 AM Subject: [PHP] Up & Downloading > Dos anybody has an idea how I can monitor uploads (Time, Size) and Downloads > to and From my server with PHP ? > > Steve > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] help make less ugly?
try using serialize() and unserialize() but if you have a large amount of data, you would be better off using sessions. hope that helps best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Andrew" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 15, 2001 3:49 AM Subject: [PHP] help make less ugly? > Hi, > > can anyone suggest how to make this less hackish - perhaps preserving the > array across page iterations somehow? > > I'm storing image path info in MySQL and creating an array from the result > set, so I can build hrefs to the other pics as well as populate the img tag. > This page calls itself to provide a running display of the current pic and > the links to other pics. > To preserve the passed href value, I've had to create the array TWICE as > well as map the passed variable to another name to preserve it. > > tia, > andrew > > file://begin database connection stuff > include("db_connect_params.inc"); file://all relevant database variables > $sql="select path from PHOTO where pid =1"; file://obvious > $link_id = mysql_connect($host, $usr, $pass); file://get connection handle > $result = mysql_db_query($database, $sql, $link_id) or die("no result"); > > file://begin hackishness > if (!isset($i)) > { > $i = 1; file://initialize counter > while($row=mysql_fetch_array($result)) file://read rows of picture paths into an > array >{ > extract($row); > $displayed[$i]=$path; > echo "$i "; > $i++; >} > > echo ""; file://use first row pic as > default > > } else { > > $ii = $i; file://preserve passed pic selection value > $i = 1; file://re-initialize counter > while($row=mysql_fetch_array($result)) file://read rows of picture paths > into an array >{ > extract($row); > $displayed[$i]=$path; > echo "$i "; > $i++; >} > > echo ""; file://use passed pic > >} > > ?> > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] A little code here? :)
check nl2br() best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Dallas Kropka" <[EMAIL PROTECTED]> To: "PHP LIST" <[EMAIL PROTECTED]> Sent: Thursday, February 15, 2001 9:01 AM Subject: [PHP] A little code here? :) > I have a few text input boxes that I am using to allow the client to > compose emails for a mailing list... does anyone have a little snippet that > will take the "\n's" and turn them into 's? I would attempt to write one > myself but Im not the best at ereg or replace code... > > > Much Thanks in Advance. > > Dallas K. > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
[PHP] Re: realpath() problem
try using $PATH_TRANSLATED variable also use the phpinfo() function to get lots of information which you can use hope that helps best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India .- Original Message - From: "Dhaval Desai" <[EMAIL PROTECTED]> To: "Ankur Verma" <[EMAIL PROTECTED]> Sent: Thursday, February 15, 2001 11:54 AM Subject: realpath() problem > Hi! > > > I am trying to find the absolute path of a particular > file: > > For that I am using realpath() function in php. > > > I made two files: > path.php; > try.php > > > Path.php is as follows: > ** > > > $path = realpath("./try.php"); > echo "$path"; > > > ?> > > > try.php > > > > echo "Hiee!"; > ?> > > > > > It returns a blank string..I mean It echos nothing... > > Can anybody tell me where's the problem. > > > Thank You! > Dhaval Desai > > __ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail - only $35 > a year! http://personal.mail.yahoo.com/ -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] automatic php execution
this question has been dealt with extensively in the past. try searching the archives. to give you a hint, you will need to make use of the cron daemon on the *nix systems. best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Jeff" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 15, 2001 10:43 AM Subject: [PHP] automatic php execution > Is there any way to get a php script to automatically run, say every > night at 2am? > > Thanks, > Jeff > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] deleting cart items on session expire
I guess you will need to have a script sunning after a specific period of time which would check for the sessions that have expired and then remove the associated items from the cart. database. there is no way for you to know if the user closes the browser as php is a server side language. I may be wrong, but I this is what comes to my mind. best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Joseph H Blythe" <[EMAIL PROTECTED]> To: "php-general" <[EMAIL PROTECTED]> Sent: Friday, February 16, 2001 10:59 AM Subject: [PHP] deleting cart items on session expire > hey all, > > I was wondering how one would suggest removing items from a cart system once the session lifetime has expired. I have it set to the default 0, which expires the session on browser close, what I want to be able to do is "delete * from Cart where session='$PHPSESSID'" when the user closes thier browser window is this even possible? maybe using register_shutdown_function or something? > > Any ideas would be great! > > Thanks > > Joseph > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] Cookies
instead of using cookies to store the informatioon about the stuff selected by the user while browsing your site, I would suggest that you use sessions to manage the user basket. Go through the information available at http://www.devshed.com/Server_Side/PHP/ and http://www.phpbuilder.com/columns/mattias2312.php3 for information on implementing sessions and shopping carts in PHP hope that helps best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "kaab kaoutar" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 15, 2001 3:15 PM Subject: [PHP] Cookies > Hi! > I'm about to use cookies in my application, and i'm intersted in using > baskets, i mean while the user surfing in my web site, he can select items > and it will be added to the basket etc (like the classical shopping) ! > can u point me to a url with details information about cookies(i've read the > one of the manual) and php samples about cookies and baskets stuff ... > what about if cookies are disactivated in a user browser ? > > Thanks a lot ! > > > _ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP Charts
http://www.phpbuilder.com/columns/allan2830.php3 http://www.phpbuilder.com/snippet/detail.php?type=snippet&id=183 http://phpclasses.upperdesign.com/browse.html/class/11 This is a great class for printing HTML graphs http://www.advgraph.regiocom.net/ hope that helps best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Phil Lambert" <[EMAIL PROTECTED]> To: "PHP-General Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, February 15, 2001 3:44 PM Subject: [PHP] PHP Charts > Hi everyone, > im making a statistics type program and was wondering if anyone knew of > some PHP libraries to produce charts/graphs etc. > > Cheers > Phil > > P.S. Can you please reply to this address as im not on the mailing list > anymore > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] Array
use array_splice ($myarray, 1 ,1); hope that helps best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "David Tandberg-Johansen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 15, 2001 4:35 PM Subject: [PHP] Array > How can I delete one record in a array? > > Example: > > $myarray = array ("a", "b", "c"); > > I want to delete/take away "b" so the array is: > > $myarray = array ("a", "c"); > > David > > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] PWS & PHP
This has been extensively covered in a step by step process in the PHP Manual Installation Chapter http://www.php.net/manual/en/install.iis.php follow the steps and you will have php working just fine with PWS best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "kaab kaoutar" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, February 15, 2001 5:00 PM Subject: [PHP] PWS & PHP > > Hi! > How can i make my web server PWS parse html file into PHP? cause it shows > nothing when i include php in an html file.However it works when i put it in > a php file ! > Thanks > > _ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] Compiling PHP for Apache.
you might find this useful http://www.devshed.com/Server_Side/PHP/SoothinglySeamless/ best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Scott Fletcher" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 15, 2001 8:17 PM Subject: [PHP] Compiling PHP for Apache. > Hi! > > Right now, I'm trying to figure out which step in order is > appropriate. I'm going to put it down now, if I got it wrong then help me > out with the correct order. Whether it is from scratch or from existing > softwares. > > > 1) OpenSSL > 2) libmcrypt (Add-on to PHP) > 3) PHP 4.0 > 4) mod_ssl > 5) apache > > Thanks, > Scott > > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] Editor with line counter for WIN95
www.editplus.com best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Info" <[EMAIL PROTECTED]> To: "Php General" <[EMAIL PROTECTED]> Sent: Friday, February 16, 2001 1:15 AM Subject: [PHP] Editor with line counter for WIN95 > Notepad, Wordpad and MS Word are my available choices. > > Word interpret my PHP so how to inhibit that? > > so I can get a line count and get closer to my many newbie errors > ..OR.. > I need a recommendation of an inexpensive editor. > > I am reading digest so please CC or direct mailto:[EMAIL PROTECTED] > > Thanks, > > Lonnie > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] php and javascript
try "; $summary = "Hellow universe"; print " "; print ""; print ""; ?> hope that helps best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Carl Natale" <[EMAIL PROTECTED]> To: "Php" <[EMAIL PROTECTED]> Sent: Wednesday, February 21, 2001 7:41 AM Subject: [PHP] php and javascript > I need some help passing a variable to a popup window. The following form > collects input from the user and stores it in the variable $summary. > > print ""; > $summary = "Hellow universe"; > print " "; > print " onClick=\"window.open('hint.php', 'remote', > 'menubar,scrollbars,resizable,width=350,height=200,left=20,top=20'); > return false;\">"; > print ""; > ?> > > When you click on the "Try This" button, hint.php opens up in another, > smaller window just like I wanted. But the variable $summary doesn't show > up > > file://hint.php script says this > > file://THIS LINE PRINTS > print "Here's the hint:"; > file://BUT NOT THIS ONE > print $summary; > ?> > > If I take JavaScript out of the submit coding, the browser window moves > to hint.php and prints the $summary variable. > > I'm much more comfortable with PHP than JavaScript. How can I deliver the > text in $summary to a second, smaller window? > > Thank you. > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
[PHP] Database Paging using MSSQL 2000
Hello All! I am implementing a database application using PHP4 and MSSQL2000. I have a database table which has a large no. of tuples. I want to display the data in the form of pages with Prev Next buttons. I wanted to know if there is some syntax in the MSSQL Select statement which can allow me to limit the no. of records being returned. I am lookin at functionality which is similar to LIMIT in Mysql. for ex, LIMIT 10,10 in MYSQL returns to me a maximum of 10 records starting from the 10th record in the returned recordset. is there any similar functionality available in MSSQL. if not, how should I go about implementing this functionality. I would also appreciate if someopone could point me to a good tutorial on the subject using MSSQL server as the database server. best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India
Re: [PHP] email a page as attachment
try the HTML mail and attachement class to send the data as an attachment to the email http://phpclasses.upperdesign.com/ hope that helps best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "kaab kaoutar" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, February 21, 2001 4:34 PM Subject: Re: [PHP] email a page as attachment > > Hi! > Thanks but i want to send the current page! > it's like i've generated a page with some results and i want to send that > page as email body or attachment! > if i use whet u told me about i will only send the source code wich will > give me nothing cause therer are no variables sent with it ! > Thanks > > >From: <[EMAIL PROTECTED]> > >To: kaab kaoutar <[EMAIL PROTECTED]> > >CC: [EMAIL PROTECTED] > >Subject: Re: [PHP] email a page as attachment > >Date: Tue, 20 Feb 2001 19:40:13 +0100 (CET) > > > > > how can i email from a page, that page as attachment ? > >http://www.phpwizard.net/resources/phpMisc/scripts/pretty/mail.php3 > > > >Bye, > > > >Atom > > > > _ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] redirect pages
try the header function http://www.php.net/manual/en/function.header.php for ex, if you want the user to be redirected to abc.php3 file, then use this function call header("location:abc.php3"); exit; do take all the precautions subscribed for the header function in the manual. hope that helps best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Peter Houchin" <[EMAIL PROTECTED]> To: "PHP MAIL GROUP" <[EMAIL PROTECTED]> Sent: Tuesday, February 27, 2001 9:58 AM Subject: [PHP] redirect pages > can some one offer a suggestion please ... i have a > > if ($update) { > $result=foo; > } > > in that if statement i want to redirect them to another page after it has processed the result .. > > i tried having using > > if ($update) { > $result=foo; > echo ""; > } > > but to no avail .. > > any suggestions ? > > Peter Houchin > Sun Rentals > [EMAIL PROTECTED] > > -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] how to keep variable "alive" thur pages?
I would suggest you to use sessions. http://www.php.net/manual/en/ref.session.php or use PHPLIB if you are on PHP3 best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "John LYC" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Tuesday, February 27, 2001 11:02 AM Subject: [PHP] how to keep variable "alive" thur pages? > hi all, > > how do i keep an array of variable "alive" thru different pages... > array is assigned with value at say index.php... > user will move from tat page to say index2... index3... index4.php.. > in index4.php i can still access the array... > > > thanks.. > > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] session_start
As far as I know, the session fucntions work only with php4 for php3, you might want to take a look at phplib hope that helps Ankur Verma - Original Message - From: "Jacky@lilst" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 08, 2001 2:35 AM Subject: [PHP] session_start People very basic question here, I wanna assign username onto session after the login succeed, I use: session_start(); session_register("username"); $UserNameSession="username"; did not work what is wring with this? Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] How to completly remove a file?
try using unlink() http://www.php.net/manual/en/function.unlink.php hope that helps Ankur Verma HCL Technologies Noida - Original Message - From: "Jan Grafström" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 07, 2001 2:08 PM Subject: [PHP] How to completly remove a file? > Hi! > When I run this PHP my file idb.xml returns empty but how do I do if I > then whant to remove the file idb.xml. I just doesn´t want it empty, I > want it to disappeare.? > $fp = fopen("idb.xml", "w"); > fclose ($fp); > ?> > Thanks for help. > Jan > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
Re: [PHP] Uploading files
have you checked the permissions on the temp directory on your server? make sure that the directory has appropriate permissions for locating the temp directory in which php is uploading the files, use amd look for upload_tmp_dir setting. hope that helps Ankur Verma - Original Message - From: "Daniel Lynn" <[EMAIL PROTECTED]> To: "PHP Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, March 07, 2001 9:17 AM Subject: [PHP] Uploading files > I seem to be having a lot of trouble uploading a file using the post > method. > > I've read through a good amount of code and tutorials and can't seem to > find anything wrong with my code. We're running this in the latest PHP 3 > version on two different servers (one NT and the other OpenBSD). Now, it > works if we are using the page from the actual NT server, but not from > any other computers on he LAN. We haven't been able to get it to work at > all on the OpenBSD server, though we can't test it drectly from that > computer. > > ok, here is the code I'm using for the form to upload the file: > > > > > > > > print(" "\">\n"); > print(" $department . "\">\n"); > > ?> > > Send this file: > > > > and I open the file, but get an error because there is nothing in the > file -- code below: > > $file1 = @fopen($userfile,"r"); > if (!$file1) { >print("I'm sorry, but we cannot open the file that you have > uploaded."); > } > > We also checked the permissions multiple times and the server's error > log, but nothing... so, if anyone sees anythign wrong, please let me > know. . thanks > > -Daniel Lynn > > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
[PHP] Automatic incoming mail notification
Hello All! Sorry for this off-topic posting but this is extremely important for me. I need a php script to be called each time my email mailbox recieves a new email message. One way is to have a cron job running and get the php script to check my mailbox every few minutes to see if there are any new emails and do the needfull if there is one. But I guess that there should be a way for the mail server to initiate some action based on the reciept of a new mail in a particular mailbox. I don't think trhat sites like Yahoo and Hotmail use cron jobs to sense new emails in a user's mailbox. Another possibility might be that the checking is being done every few minutes by the client application. if anyone has any idea about the methodology being followed by Yahoo and Hotmail, please be kind enough to pass it on. If anyone is aware of a mail server otr a mailserver addin which would enable automatic notification and initiaition of script on the reciept of a new email, please pass the info on. I am on Redhat 6.2 with cyrus as my mail server and am using PHP4. Thanks in advance Ankur Verma HCL Technologies A1CD, Sector 16, Noida
Re: [PHP] Automatic incoming mail notification
Dear Josh, Thanks for your prompt reply I will surely look around on the web for info on this pathy of action. thanks once again regards Ankur Verma - Original Message - From: "Josh G" <[EMAIL PROTECTED]> To: "PHP User Group" <[EMAIL PROTECTED]> Sent: Friday, February 02, 2001 10:53 AM Subject: Re: [PHP] Automatic incoming mail notification > Depends on your mailserver. Most mail servers can redirect incoming > mail to a program, I know sendmail can. In your case just make the first > line of your script #!/path/to/php/bin/php and that should do the trick. > > Sorry I don't know how to make sendmail do it, only that you can. > Check the man pages tho, shouldn't be too hard. > > Gfunk - http://www.gfunk007.com/ > > I sense much beer in you. Beer leads to intoxication, intoxication to > hangovers, and hangovers to... suffering. > > > - Original Message - > From: "Ankur Verma" <[EMAIL PROTECTED]> > To: "PHP User Group" <[EMAIL PROTECTED]> > Sent: Saturday, February 03, 2001 5:51 AM > Subject: [PHP] Automatic incoming mail notification > > > Hello All! > > Sorry for this off-topic posting but this is extremely important for me. > > I need a php script to be called each time my email mailbox recieves a new > email message. One way is to have a cron job running and get the php script > to check my mailbox every few minutes to see if there are any new emails and > do the needfull if there is one. > > But I guess that there should be a way for the mail server to initiate some > action based on the reciept of a new mail in a particular mailbox. I don't > think trhat sites like Yahoo and Hotmail use cron jobs to sense new emails > in a user's mailbox. Another possibility might be that the checking is being > done every few minutes by the client application. > > if anyone has any idea about the methodology being followed by Yahoo and > Hotmail, please be kind enough to pass it on. If anyone is aware of a mail > server otr a mailserver addin which would enable automatic notification and > initiaition of script on the reciept of a new email, please pass the info > on. > > I am on Redhat 6.2 with cyrus as my mail server and am using PHP4. > > Thanks in advance > > Ankur Verma > HCL Technologies > A1CD, Sector 16, > Noida > > > > > > -- > 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
RE: [PHP] first three characters
try using the function substr() $Word = attention $Word_3 = substr ($Word, 0,3) $Word_3 = substr ($Word, 0,4) and so on hope that helps regards Ankur Verma HCL technologies Noida India -Original Message- From: Rahul Hari Bhide [mailto:[EMAIL PROTECTED]] Sent: Monday, March 19, 2001 11:32 AM To: [EMAIL PROTECTED] Subject: [PHP] first three characters Gurus, How do I extract the first n characters out of a word . I have this- $Word = attention I want - $Word_3 = att $Word_4 = atte $Word_5 = atten this is only extracting first three/four/five characters . What is the right function to use here ?? thx in advance. ~Rahul -- 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
RE: [PHP] Problem with mail function
The mail function uses the specified SMTP mail server to send out the mail. you will need to set the php.ini variables as follows SMTP= localhost ; The name or IP address of the machine which is running the SMTP Server. for ex ; mail.flashmail.com sendmail_from = [EMAIL PROTECTED]; The address that you want to appear in the From Field of the mail. The error you are getting is most probably because of the fact that there is no SMTP server running on the machine specified in the above SMTP setting. take a look at the following link for more info on the mail function - http://www.php.net/manual/en/function.mail.php hope that helps regards Ankur Verma HCL Technologies Noida Uttar Pradesh India -Original Message- From: Sonya Davey / QDCEL [mailto:[EMAIL PROTECTED]] Sent: Monday, March 26, 2001 2:25 PM To: '[EMAIL PROTECTED]' Subject: [PHP] Problem with mail function Hi, Can anyone help me the mail function. I am using PHP 4.04, on Windows 98,with PWS. 1.What must I configure thse settings in my php.ini file to? SMTP= localhost sendmail_from = [EMAIL PROTECTED] 2.Why does this code give me the following error? Warning: Failed to Connect Code: $to = '[EMAIL PROTECTED]'; $from = '[EMAIL PROTECTED]'; $body = $MainAgentCode; $headers = "From: $from"; $success = mail($to, "Inpro Web site", $body, $headers); if ($success) {//begin echo "Thank you for your input\n"; }//end e{ echo "Error \n"; } Thanks to anyone who can help. Sonya -- 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
RE: [PHP] Prob with sending a php variable in an email
try with Mailto:[EMAIL PROTECTED]? subject= Web site &body=User name: Main Agent Code:"> Support Desk hope that helps regards Ankur Verma -Original Message- From: Sonya Davey / QDCEL [mailto:[EMAIL PROTECTED]] Sent: Monday, March 26, 2001 4:09 PM To: '[EMAIL PROTECTED]' Subject: [PHP] Prob with sending a php variable in an email I have a problem sending a php variable ie $Username in a simple email form, example as follows: Mailto:[EMAIL PROTECTED]? subject= Web site &body=User name: Main Agent Code:"> Support Desk Thanks in advance! Sonya -- 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
RE: [PHP] Prob with sending a php variable in an email
sorry for the last mail! try with Mailto:[EMAIL PROTECTED]? subject= Web site &body=User name: Main Agent Code:"> Support Desk hope that helps Ankur Verma HCL Technologies Noida -Original Message- From: Sonya Davey / QDCEL [mailto:[EMAIL PROTECTED]] Sent: Monday, March 26, 2001 4:09 PM To: '[EMAIL PROTECTED]' Subject: [PHP] Prob with sending a php variable in an email I have a problem sending a php variable ie $Username in a simple email form, example as follows: Mailto:[EMAIL PROTECTED]? subject= Web site &body=User name: Main Agent Code:"> Support Desk Thanks in advance! Sonya -- 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
RE: [PHP] .doc to .txt
check out the microsoft word parser at www.wvware.com you can call this program ysing the exec() or system() function. also, search the mail archives for discussion on this topic in the very recent past. hope that helps regards Ankur verma HCL Technologies Noida India -Original Message- From: Siim Einfeldt aka Itpunk [mailto:[EMAIL PROTECTED]] Sent: Monday, March 26, 2001 5:41 PM To: [EMAIL PROTECTED] Subject: [PHP] .doc to .txt Hi all, I need to convert .doc files into text. I know it`s possible to do it by converting it in word, but I need to give the people of the site opportunity to upload a .doc file and then I need to display it (and not in another window, but rather 'in the site' like you would normally display some text). All the info, code examples, urls you can provide me conserning this one, I would appreciate it. And when answering, please send it to my private email as well, [EMAIL PROTECTED] Thank you in advance, Siim EInfeldt [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
RE: [PHP] submit form witout clilck submit button
you can do this using Javascript place this in your HTML code | | Head title and the other stuff | | | | Continue with the HTML Code | | This will cause the form to be sumitted as soon as the page completes up loading hope that helps regards Ankur Verma NetCentric Division HCL Technologies Noida, Uttar Pradesh India -Original Message- From: Jacky [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 28, 2001 1:56 AM To: [EMAIL PROTECTED] Subject: [PHP] submit form witout clilck submit button Hi all I have to submit username, domain name and password values to the cgi file, It starts from the login page and submit values to a php page to tie up username and domain name value together before submit it to the cgi file as two values ( "username+domainname" , "password") . The thing is that at php file, how do I submit those values without user click on the submit button, say make the form submit right away as soon as the page is read? Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" -- 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, e-mail: [EMAIL PROTECTED]
RE: [PHP] file upload failed....:(
try Upload successfully"; $fname=substring (strrchr($f1_name,"\\"),1); } unlink ($f1); ?> also the substring() function does not exist until unless you have written it yourself for the code. The standard function is substr(). hope that helps regards Ankur Verma New Delhi India -Original Message- From: JoshuaHu [mailto:[EMAIL PROTECTED]] Sent: Monday, April 16, 2001 9:28 AM To: [EMAIL PROTECTED] Subject: [PHP] file upload failed:( I use PHP 4.04p11 on Apache. But my upload.php can't work... f1 is the name of file-upload-variable Upload successfully"; $fname=substring (strrchr($f1_name,"\"),1); } unlink ($f1); ?> The browser returns Parse error: parse error in c:/inetpub/php_root/upload.php on line 8 Can anyone tell me where I make mistake... thanks a lot -- 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]
RE: [PHP] Need to know this
maybe you could find some good info on PHP vs ASP here http://php.resourceindex.com/Documentation/Reviews_and_Analysis/PHP_vs._ASP/ regards Ankur Verma -Original Message- From: YoBro [mailto:[EMAIL PROTECTED]] Sent: Friday, May 04, 2001 8:50 AM To: [EMAIL PROTECTED] Subject: [PHP] Need to know this Hello, I need to find out what PHP stands for. Also what is better, ASP or PHP and who has the biggest market share. Any help would be really great. Thanks, Chris -- 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, e-mail: [EMAIL PROTECTED] -- 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, e-mail: [EMAIL PROTECTED]