RE: [PHP] file problem
You might mean \n. Line: $str = This\nis a\nsample would output: This is a sample Did it help? Niklas -Original Message- From: Nikola Weber [mailto:[EMAIL PROTECTED]] Sent: 22. syyskuuta 2001 0:35 To: php forum Subject: [PHP] file problem Hi ! Thanks for the quick reply last time :) I stucked with the following :I made a log file, but when I open it in a+ mode, the pointer is set on the end of file, in the same line. Is there anything like br in html, or a command that puts a pointer in the new line ? One more question : Is it possible, and how, to replace radio buttons or a submit button with grafics ? I'd like to make my forms look a little different from the regular ones :) Thanks Nikola -- 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] Quickie
Read chapter: LXXVIII. Session handling functions Niklas -Original Message- From: Peter [mailto:[EMAIL PROTECTED]] Sent: 22. syyskuuta 2001 8:19 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Quickie Hi, I am trying to redirect the user to another page after user authentication and using sessions. I was wondering how do you redirect to another page and then at the same use pass the session ID over to that other page. Thanks. Peter On Fri, 21 Sep 2001, [iso-8859-1] Stig-Ørjan Smelror wrote: If nothing is beeing sent to output on the page then use header() else you need to use javascript. Niklas meta http-equiv=Refresh; Content=0; URL=file.php if headers are sent. Use header( Location: file.php ), as noted earlier, if no headers are sent. -- 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] Cannot add header information - headers already sent by
Output has started at variables.php on line 321. Niklas -Original Message- From: Tom Nickels [mailto:[EMAIL PROTECTED]] Sent: 22. syyskuuta 2001 13:20 To: [EMAIL PROTECTED] Subject: [PHP] Cannot add header information - headers already sent by Hi everybody! I installed php 4.06 on Win NT, IIS 4. Before I updated php 4.00 with 4.06 my scripts were running fine. Since the update I am getting always the follwoing error: Warning: Cannot add header information - headers already sent by (output started at lang/dt/variables.php:321) in vote_submit.php on line 34 Line 34 is: header(Location: .$source.?status=9errormessage=$errormessage); Any idea, why this is after update not working anymore? Thanks for help Tom -- 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 Email Handler
A very good point. Niklas -Original Message- From: Anton Stroganov [mailto:[EMAIL PROTECTED]] Sent: 19. syyskuuta 2001 21:00 To: Wee Chua Cc: [EMAIL PROTECTED] Subject: Re: [PHP] PHP Email Handler My friend. I'm not quite sure I understand you correctly. Are you asking _us_ to do _your_ work for you? Do you want us to give you a complete script on a silver platter? This is a place where people like to see that you've done a little bit of preliminary work, and ask specific questions. Keeping that in mind, I'd suggest the following: 1. take a look at the mail() function in the manual http://us.php.net/manual/en/function.mail.php 2. go to phpbuilder.com and look in the code library. There may be something similar to what you're doing. when you have a more specific question, feel free to ask :) a. - Original Message - From: Wee Chua [EMAIL PROTECTED] To: PHP (E-mail) [EMAIL PROTECTED] Sent: Wednesday, September 19, 2001 11:03 Subject: [PHP] PHP Email Handler Hi all, Can anyone please show me how to write a simple email handler for company website? Basically, it is for customer to submit information throught the website without using client email software. Thank you. Calvin Chua -- 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] syntax?
In second example you can define which fields to insert, very usefull if you have a lot of fields. Niklas -Original Message- From: Peter [mailto:[EMAIL PROTECTED]] Sent: 13. syyskuuta 2001 10:59 To: [EMAIL PROTECTED] Subject: [PHP] syntax? HI, I am new to this PHP thing. I was working out of my PHP book and website and I noticed some discrepancies in inputting data into the MySQL database. I followed the example from my book and I noticed that the syntax for putting data into a mysql database from PHP was like this: $sql = INSERT INTO news VALUES (NULL,'$heading','$body','$date','$auth','$auth_email'); However I read some information on the website and I noticed that they added the field names right after the name of the table like this: mysql_query (INSERT INTO tablename (first_name, last_name) VALUES ('$first_name', '$last_name') ); I have two questions: In the first example what is the meaning of putting the NULL before the variables? I was successful in entering data from my first example without declaring field names, so why did they declare in field names in the second example? If anyone can shed some light on this question, I would be most grateful. 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] -- 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: send mail to mailing list using mail() or smtp?
I'm sending a huge amount of mails with php. How can I send mail directly to the smtp server? Right now I'm using pipe to send each mail to sendmail. Works fine with about 35 000 mails, but it takes ages to run. What would be the smartest way? Thanks! -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED]] Sent: 25. elokuuta 2001 3:54 To: [EMAIL PROTECTED] Subject: [PHP] Re: send mail to mailing list using mail() or smtp? My question - is this going to work for a few thousand emails? Depends on your server. What about 100,000? No way. Would it be better to send the mail directly to the smtp server? Yes. Can you foresee any problems? Several. The first one is you didn't read the archives or look for pre-existing code to talk to SMTP directly. :-) Manuel's upperdesign.com has one, and there are plenty of others. You could roll your own -- I did, so it can't be too tricky. :-) Also, at that volume, I think you're going to run into trouble just in talking to the all the SMTP servers. I *BELIEVE* one major speed-up can be achieved by sorting the outgoing emails by their recipient's domains... You may want to research how real mailing list software deals with this if you actually expect to hit 100K addresses. If they're all the same email, you'd be *WAY* better off just interfacing to majordomo, ezmlm, SmartList, or whatever other mailing list software was designed to handle this. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- 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] Creating images on the fly
Is it possible to create images on the fly, if my phpinfo says nothing about GD? What I know is that ImageCreateFromPNG() says it's undefined. If not, what do I need to install to php to make it possible? Niklas Lampén -- 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 resume session by id?
Link in HTML like a href=http://www.myserver.com/myfile.php??=SIDLink/a And on the myfile.php you have to do this in the beginning of file: session_start(); if (session_is_registered(Session)) { /* This code is run if Session called Session is registered */ }; Hopefully this helps you out. Niklas Lampen -Original Message- From: Darius Ivanauskas [mailto:[EMAIL PROTECTED]] Sent: 16. elokuuta 2001 16:51 To: [EMAIL PROTECTED] Subject: [PHP] How to resume session by id? I'm getting session id neither from cookie, nor from GET/POST vars, but by parsing url like: http://myserver.com/script.php/session_id/blah/blah How do i resume session by given session_id? Thanks in advance. -- Darius Ivanaukas -- 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 resume session by id?
Did you start the session like this: $Session = array( /* values to array */ ); session_start(); session_register(Session); -Original Message- From: Darius Ivanauskas [mailto:[EMAIL PROTECTED]] Sent: 16. elokuuta 2001 18:14 To: Niklas Lampen Cc: [EMAIL PROTECTED] Subject: RE: [PHP] How to resume session by id? On Thu, 16 Aug 2001, Niklas Lampen wrote: Link in HTML like a href=http://www.myserver.com/myfile.php??=SIDLink/a And on the myfile.php you have to do this in the beginning of file: session_start(); In this place it starts a new session because it didn't gets session_id neither trough GET/POST nor cookie. : -- Darius Ivanauskas if (session_is_registered(Session)) { /* This code is run if Session called Session is registered */ }; Hopefully this helps you out. Niklas Lampen -Original Message- From: Darius Ivanauskas [mailto:[EMAIL PROTECTED]] Sent: 16. elokuuta 2001 16:51 To: [EMAIL PROTECTED] Subject: [PHP] How to resume session by id? I'm getting session id neither from cookie, nor from GET/POST vars, but by parsing url like: http://myserver.com/script.php/session_id/blah/blah How do i resume session by given session_id? Thanks in advance. -- Darius Ivanaukas -- 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]