RE: [PHP] send email sample

2005-03-19 Thread david joffrin
Very simple sample: // Send a mail to [EMAIL PROTECTED] $headers = From: \Webmaster\[EMAIL PROTECTED]; $mailtext = trim($_POST[email]); $mailtext .= is joining the family.\n; mail('[EMAIL PROTECTED]', 'New

Re: [PHP] send email sample

2005-03-19 Thread Burhan Khalid
issin wrote: Dear all, Can you give me a send email sample? Thanks! RTFM : http://www.php.net/manual/en/function.mail.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] does your mail() base64 encode messages?

2005-03-19 Thread Burhan Khalid
John W. List wrote: I have an unexpected and perplexing problem. PHP's mail() function is base64 encoding all message bodies as an ill-formed MIME attachment resulting in the recipient seeing an uninteligable base64 encoded string. This only happens to my account with my host and neither I or the

Re: [PHP] does your mail() base64 encode messages?

2005-03-19 Thread John W. List
Try mail([EMAIL PROTECTED],test script,Foo!); Thanks very much for your suggestion- It did not fix the problem but it provided a pointer to a workaround. It appears that my host base64 encodes message bodies if any sort of header- even an empty one- is supplied. This is a problem the sysadmin

[PHP] sessioncookies?

2005-03-19 Thread Ken
if you check your cookies (if you are using firefox) you should see multiple cookies from many sites. It is allowed and I think you can set as much as possible. However I wouldn't because you'll probably end up forgetting some of them and it'll become a hassle. Besides, some browsers might reject

Re: [PHP] send email sample

2005-03-19 Thread John Taylor-Johnston
Burhan Khalid wrote: Can you give me a send email sample? RTFM : http://www.php.net/manual/en/function.mail.php Burhan, That's awfully polite. RTFM. How are people supposed to get started? Take that attitude back over to the Perl newsgroup. One of the joys of PHP has been a

Re: [PHP] Re: fopen

2005-03-19 Thread John Taylor-Johnston
Hi, W+ does not work either. I have resorted to adding a blank, 0 byte text file. But it needs chmod 666. Interesting, I add this line: chmod($defaultfile, 666); and it send back an illegal error, but it appears to work anyway - the data is written! What does the at_sign mean at the start of

RE: [PHP] How from an html/web form I may go to a php script output(of form values)

2005-03-19 Thread Leonidas Savvides
If is easy please answer and this : when be online AND OPEN A FILE FROM A WEB LOCATION HOST - MINE WITH NOTEPAD may after I modify it, save it again to my hosting space WITHOUT save it to my PC first ? Please note that I mean using NotePad and I mean entering the host usernamepassword when OPEN /

Re: [PHP] How from an html/web form I may go to a php script output(of form values)

2005-03-19 Thread Forest Liu
I am so sorry for my misunderstanding and leading you to anger. But I am still not so clear yet...about your demand. I guess you wanna say, a visitor enter his account and password, and click 'submit', then the browser navigates to b.php to check if all are correct. Right? a.php: form

Re: [PHP] Setting cookies for other domains

2005-03-19 Thread Jason Wong
On Friday 18 March 2005 10:32, Brian Dunning wrote: I suspect it's for sub-domains of sites you administer and not completely different domains altogether. If this is true, and it's not possible for a site to set a cookie for a completely different domain, then why do browsers have

[PHP] PHP 5 DOM, XPath, UTF-8, and Form Input

2005-03-19 Thread C Drozdowski
I have been doing some testing and need confirmation that the following is correct. You have a DOMDocument that potentially contains UTF-8 encoded data (it might not however). You want to search it via DOMXpath-query() using a value that comes from a $_POST value. If the page that posts the

RE: [PHP] How from an html/web form I may go to a php script output(of form values)

2005-03-19 Thread Philip Olson
If is easy please answer and this : when be online AND OPEN A FILE FROM A WEB LOCATION HOST - MINE WITH NOTEPAD may after I modify it, save it again to my hosting space WITHOUT save it to my PC first ? Please note that I mean using NotePad and I mean entering the host usernamepassword when

[PHP] Re: [PHP-WIN] setting php for accepting the urls... phpinfo.php/extra/information/

2005-03-19 Thread Leif Gregory
Hello Rob, Saturday, March 19, 2005, 2:39:08 AM, you wrote: R could someone possibly point me in the right direction for allow R PHP on IIS 6 to accept urls with the query string seperated by R slashes.. This is called slash arguments and IIS can not natively handle it. I ran into this issue

[PHP] looking for address finder..uk

2005-03-19 Thread AndreaD
I'm looking for an address finder where a user types in a postcode and house number and then the user is given an option of to houses to choose from. Anything like this available for a small charge? Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Referer checking is able to be referer spoofed

2005-03-19 Thread Dan Rossi
On 19/03/2005, at 2:36 AM, Marek Kilimajer wrote: Dan Rossi wrote: On 19/03/2005, at 2:06 AM, [EMAIL PROTECTED] wrote: I think you misunderstood me or I wasnt clear, the links are coming from a syndicate site to the main site, so we check on that domain. I am looking at other options, maybe

[PHP] class and global

2005-03-19 Thread pooly
Hi, I'm trying to use a global object (declared at a upper level), but all I got is : Call to a member function on a non-object in /home/pooly/public_html/templeet/modules/freedb.php on line 16 part of the code is : $freedb = new freedbaxs(); Function return_freedb_search($array) { global

[PHP] global and object

2005-03-19 Thread pooly
Hi, I'm trying to use a global object (declared at a upper level), but all I got is : Call to a member function on a non-object in /home/pooly/public_html/templeet/modules/freedb.php on line 16 part of the code is : $freedb = new freedbaxs(); Function return_freedb_search($array) {

Re: [PHP] Referer checking is able to be referer spoofed

2005-03-19 Thread Marek Kilimajer
Dan Rossi wrote: On 19/03/2005, at 2:36 AM, Marek Kilimajer wrote: Dan Rossi wrote: On 19/03/2005, at 2:06 AM, [EMAIL PROTECTED] wrote: I think you misunderstood me or I wasnt clear, the links are coming from a syndicate site to the main site, so we check on that domain. I am looking at other

Re: [PHP] How from an html/web form I may go to a php script output(of form values)

2005-03-19 Thread Rick Robinson
Try this: Goto 'My Network Places' and set up an ftp connection to whereever you want to save the file. Then in notepad you can access it just 'like' a directory on your computer. On Sat, 19 Mar 2005 16:09:05 + (GMT), Philip Olson [EMAIL PROTECTED] wrote: If is easy please answer and

Re: [PHP] class and global

2005-03-19 Thread Evert - Rooftop Solutions
pooly wrote: I'm trying to use a global object (declared at a upper level), but all I got is : Call to a member function on a non-object in /home/pooly/public_html/templeet/modules/freedb.php on line 16 part of the code is : $freedb = new freedbaxs(); Function return_freedb_search($array) {

Re: [PHP] global and object

2005-03-19 Thread Mister Jack
Oops, sorry for double posting. my mistake. accept my apologies :-p On Fri, 18 Mar 2005 23:51:15 +, pooly [EMAIL PROTECTED] wrote: Hi, I'm trying to use a global object (declared at a upper level), but all I got is : Call to a member function on a non-object in

Re: [PHP] class and global

2005-03-19 Thread Mister Jack
The initialisation seems to be ok, since : Function return_freedb_search($array) { global $freedb; $freedb = new freedbaxs(); [snip] $freedb-freedb_search($txt); //line 16... } works and also $freedb = new freedbaxs(); $freedb-freedb_search(ploplop); Function return_freedb_search($array) {

Re: [PHP] class and global

2005-03-19 Thread BAO RuiXian
Evert - Rooftop Solutions wrote: pooly wrote: I'm trying to use a global object (declared at a upper level), but all I got is : Call to a member function on a non-object in /home/pooly/public_html/templeet/modules/freedb.php on line 16 Hmm, perhaps your problem is the failed connection to your

Re: [PHP] Referer checking is able to be referer spoofed

2005-03-19 Thread Dan Rossi
On 20/03/2005, at 5:40 AM, Marek Kilimajer wrote: If you need only hotlink protection then the current referer checking is just enough. Most users will not install referer spoofing software. But if you need to be 100% sure the videos are streamed through affiliate server, you can use tokens -

[PHP] Re: Setting cookies for other domains

2005-03-19 Thread Raj Shekhar
Scott Haneda [EMAIL PROTECTED] writes: Cross domain cookies are indeed possible, look at microsoft.com, msn.com and msnbc.com which indeed do share your cookies from one site to the next, however, they do it by redirects and get/post methods, which is perfectly legit since they control those

Re: [PHP] class and global

2005-03-19 Thread Mister Jack
there is no database connection involved here. if I displace the $freedb = new freedbaxs(); inside the function it's works. I should give a try with a dummy object. (but the constructor, only initialize empty array) On Sat, 19 Mar 2005 21:17:02 +0200, BAO RuiXian [EMAIL PROTECTED] wrote:

[PHP] Session IDs - How are they generated?

2005-03-19 Thread Yannick Warnier
Hi there, I'm looking for a good document that describes session ID generation in PHP 4.3.6. Does somebody have that at hand? I couldn't find anything googling it, and nothing in the PHP doc. I would like to know what kind of parameters it uses during the generation. And also how it is

Re: [PHP] Referer checking is able to be referer spoofed

2005-03-19 Thread dan rossi
Hmm its the exact setup with how the video filenames are generated in the player to prevent hotlinking. I guess I am on my own, my client has very paranoid customers as they have to pay for the bandwidth. Lets see how I go. But theoretically we must assume these people dont have php. It

Re: [PHP] Referer checking is able to be referer spoofed

2005-03-19 Thread Dotan Cohen
On Sun, 20 Mar 2005 09:38:29 +1100, dan rossi [EMAIL PROTECTED] wrote: Hmm its the exact setup with how the video filenames are generated in the player to prevent hotlinking. I guess I am on my own, my client has very paranoid customers as they have to pay for the bandwidth. Lets see how

Re: [PHP] Referer checking is able to be referer spoofed

2005-03-19 Thread Marek Kilimajer
Dotan Cohen wrote: On Sun, 20 Mar 2005 09:38:29 +1100, dan rossi [EMAIL PROTECTED] wrote: Hmm its the exact setup with how the video filenames are generated in the player to prevent hotlinking. I guess I am on my own, my client has very paranoid customers as they have to pay for the bandwidth.

[PHP] WORK WITH PHP FILES REMOTELY WITH NotePad ? YES/NO ?

2005-03-19 Thread Leonidas Savvides
WORK WITH PHP FILES REMOTELY WITH NotePad ? YES/NO ? I want to know if when be online I CAN OPEN A FILE FROM A WEB LOCATION HOST - MINE and after I modify it save it again to my hosting space WITHOUT save it to my PC first using NotePad and I mean entering the host usernamepassword when OPEN /

Re: [PHP] Referer checking is able to be referer spoofed

2005-03-19 Thread Marek Kilimajer
dan rossi wrote: Hmm its the exact setup with how the video filenames are generated in the player to prevent hotlinking. I guess I am on my own, my client has very paranoid customers as they have to pay for the bandwidth. Lets see how I go. But theoretically we must assume these people dont

Re: [PHP] WORK WITH PHP FILES REMOTELY WITH NotePad ? YES/NO ?

2005-03-19 Thread Mark Charette
Leonidas Savvides wrote: ATTENTION: I DO NOT MEAN SAVE IT TO MY HDD FIRST AND AFTER UPLOAD IT !!! TELL ME THIS SAMELY FOR Dreamweaver MX ? Not in PHP. It's a client side trick (done with machine and/or OS specific code). Even Web-based Documentum (eRooms) uses a staging directory on the users

[suspicious - maybe spam] RE: [PHP] WORK WITH PHP FILES REMOTELY WITH NotePad / Dreamweaver MX ? YES/NO ?

2005-03-19 Thread Leonidas Savvides
WORK WITH PHP FILES REMOTELY WITH NotePad / Dreamweaver MX ? YES/NO ? I want to know if when be online I CAN OPEN A PHP FILE FROM A WEB LOCATION HOST - MINE and after I modify it save it again to my hosting space WITHOUT save it to my PC first, using NotePad and I mean entering the host

[PHP] Private Cache Headers in IE and Mozilla

2005-03-19 Thread Eli
Hi, I want to cache a PHP page privately for a week. What headers should I send to make it work both in Mozilla and IE? I have set these headers, but those work only for IE: ?php $max_age=604800; header(Date: .gmdate(D, d M Y H:i:s,time())); header(Cache-Control: private); header(Cache-Control:

Re: [PHP] WORK WITH PHP FILES REMOTELY WITH NotePad ? YES/NO ?

2005-03-19 Thread Larry E . Ullman
WORK WITH PHP FILES REMOTELY WITH NotePad ? YES/NO ? I want to know if when be online I CAN OPEN A FILE FROM A WEB LOCATION HOST - MINE and after I modify it save it again to my hosting space WITHOUT save it to my PC first using NotePad and I mean entering the host usernamepassword when OPEN /

Re: [PHP] WORK WITH PHP FILES REMOTELY WITH NotePad ? YES/NO ?

2005-03-19 Thread Rick Robinson
you can setup an ftp in my network places and use it just like a folder on your computer from notepad On Sat, 19 Mar 2005 20:55:49 -0500, Larry E. Ullman [EMAIL PROTECTED] wrote: WORK WITH PHP FILES REMOTELY WITH NotePad ? YES/NO ? I want to know if when be online I CAN OPEN A FILE FROM A

Re: [PHP] Referer checking is able to be referer spoofed

2005-03-19 Thread dan rossi
On 20/03/2005, at 10:14 AM, Marek Kilimajer wrote: The image can be hotlinked too ;) Bit of a headfuck ey ? Hmm I think we are gonna go with a mixture of that and a token url. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php