[PHP] Re: mail with attachment

2004-12-09 Thread Dre
I did not try it yet .. but I will Manuel Lemos [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, Dre wrote: Thanks Manuel, I will check the class and here is the code of the mail sending script //== ?php

[PHP] mail with attachment

2004-12-08 Thread Dre
Hi, I'm trying to send a mail with attachment, using mail() fucntion .. the mail is sent with the attached file, but when I open my mail box to check the mail I sent using my script, I find the normal text contents and the attachment displayed as text too !!! ex. if I attached a document, it will

[PHP] Sessions problem

2004-12-08 Thread Dre
Hi, I need to make sessions work in my local machine .. I'm using Apache 2.0.49 on WINDOWS XP PRO. my php.ini sessions section is session.save_handler = files session.save_path = C:\php4\tmp session.use_cookies = 1 session.name = PHPSESSID session.auto_start = 1 session.cookie_lifetime = 0

[PHP] Re: mail with attachment

2004-12-08 Thread Dre
] wrote in message news:[EMAIL PROTECTED] Hello, Dre wrote: I'm trying to send a mail with attachment, using mail() fucntion .. the mail is sent with the attached file, but when I open my mail box to check the mail I sent using my script, I find the normal text contents and the attachment

Re: [PHP] Sessions problem

2004-12-08 Thread Dre
if u can give me an instance of a writable path it would be great. and yes the data do not get saved and I can not run any thing that depends on sessions as they do not get registered Raditha Dissanayake [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dre wrote: Hi, I need to make

[PHP] Saving non-english text into database problem !!

2004-10-06 Thread Dre
Hi I have a strange problem that I can not figure out how to solve .. I'm trying to save some data into a regular mySQL database table by using a normal php insertion script but I'm trying to save Arabic Text and here comes the problem .. When I'm performing the insertion by writing the actual

[PHP] Re: Saving non-english text into database problem !!

2004-10-06 Thread Dre
the variables I'm using are sent correctly from the html form to the page contains the insertion script .. and both of these pages has the same encoding Dre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi I have a strange problem that I can not figure out how to solve .. I'm

Re: [PHP] Session variables does not get sent

2004-09-06 Thread Dre
no I did this a long time ago (I did have this problem before :o) ) Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dre wrote: and by the way .. I'm using MS Windows XP Pro. which I do believe that it has some hand in the problem :) Like you did not change

[PHP] Session again !!!

2004-09-05 Thread Dre
Hi .. I'm still working on my members login script. I'm using a simple username/password login form that calls the following login script //= ?php session_start(); $username = trim(addslashes($_POST['user_name'])); $pass =

Re: [PHP] Session again !!!

2004-09-05 Thread Dre
I really did and it behaves the same I tried isset() also but there is no good it still does not work !!! Afan Pasalic [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Try use if(empty($_SESSION['uname']) instead if($_SESSION['uname'] = = ) Afan Dre wrote: Hi .. I'm

Re: [PHP] Session again !!!

2004-09-05 Thread Dre
I really did and it behaves the same I tried isset() also but there is no good it still does not work !!! Afan Pasalic [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Try use if(empty($_SESSION['uname']) instead if($_SESSION['uname'] = = ) Afan Dre wrote: Hi .. I'm

Re: [PHP] Session again !!!

2004-09-05 Thread Dre
bewteen the == Hth, Andre On Sunday 05 September 2004 11:23 am, Dre wrote: I really did and it behaves the same I tried isset() also but there is no good it still does not work !!! Afan Pasalic [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Try use

[PHP] Re: Session again !!!

2004-09-05 Thread Dre
the equal signs, and it does not give any errors, it just acts like if I'm not logged in is there any settings in the php.ini that may affect this ?!!! Dre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi .. I'm still working on my members login script. I'm using a simple username

Re: [PHP] Session again !!!

2004-09-05 Thread Dre
thanks Torsten Roehr [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I really did and it behaves the same I tried isset() also but there is no good it still does not work !!! Afan Pasalic [EMAIL PROTECTED

[PHP] Re: Session again !!!

2004-09-05 Thread Dre
I added print_r($_SESSION); after the session start(); and the printed text was Array( ) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Session variables does not get sent

2004-09-05 Thread Dre
I don't know why but session variables does not get posted .. is there any thing in the php.ini that I should configure as I can't find any thing wrong in the code I'm using !! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session variables does not get sent

2004-09-05 Thread Dre
I do know this and what happen is that the $_SESSION array become empty once I redirect from the login page (after login) to another members' area page .. !! Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dre wrote: I don't know why but session variables does

Re: [PHP] Session variables does not get sent

2004-09-05 Thread Dre
// // Dre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I do know this and what happen is that the $_SESSION array become empty once I redirect from

Re: [PHP] Session variables does not get sent

2004-09-05 Thread Dre
and by the way .. I'm using MS Windows XP Pro. which I do believe that it has some hand in the problem :) Dre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I do know this and what happen is that the $_SESSION array become empty once I redirect from the login page (after login

Re: [PHP] Session variables does not get sent

2004-09-05 Thread Dre
yes I'm sure John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dre wrote: snip if((empty($_POST['user_name'])) || (empty($_POST['password']))) { header('Location: index.php'); include(login_form); exit(); } That include is useless, as you're

[PHP] !!Urgent .. Session Problem

2004-09-04 Thread Dre
development environment .. so any help will be appreciated. Thanks in advance Dre, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] !!Urgent .. Session Problem

2004-09-04 Thread Dre
to the temp folder ??? Nick Wilson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * and then Dre declared Warning: session_start(): open(/tmp\sess_2984f6d378560d0882f37728dbe1defc, O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache Group\Apache2\htdocs\ELBA

[PHP] Re: !!Urgent .. Session Problem

2004-09-04 Thread Dre
thanks ..I won't use the session_register() again Torsten Roehr [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] session_register('uname'); $_SESSION['uname'] = $username; Hi Dre, Nick already answered your

[PHP] Re: !!Urgent .. Session Problem Solved ... But not completely

2004-09-04 Thread Dre
//= Dre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi I'm trying to make a small login system on my website, I'm using Apache 2.0.49 for testing locally and PHP 4.3.4 on MS Windows XP Pro. the login script is in the file logme_in.php shown

[PHP] Re: !!Urgent .. Session Problem Solved ... But not completely

2004-09-04 Thread Dre
of the headers) PHP notices that headers have already been sent! So it gives an error, because it can't get them back and send them after the cookie again. So, remove the spaces and/or newlines before the ?php tag to fix this. Hope you get what to do now ;| - Tul Dre wrote: thank u all .. I really

Re: [PHP] !!Urgent .. Session Problem

2004-09-04 Thread Dre
YES .. THAT WAS THE PROBLEM EVEN IF UR REPLY CAME A LITTLE LATE .. BUT THANKS .. THE PHP was not reading my php.ini and it was using default settings Mike Ford [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 04 September 2004 10:15, Dre wrote: Warning: session_start(): open

Re: [PHP] !!Urgent .. Session Problem

2004-09-04 Thread Dre
/.htaccess file.prepend setting) Dre wrote: YES .. THAT WAS THE PROBLEM EVEN IF UR REPLY CAME A LITTLE LATE .. BUT THANKS .. THE PHP was not reading my php.ini and it was using default settings Mike Ford [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 04 September 2004 10

[PHP] File upload problem

2004-09-04 Thread Dre
I'm trying to upload a file using a form the upload code I'm using is //== ?php // settings $base_img_dir = http://localhost/app_images/;; include(db.php); // generate unique id for use in filename $uniq =uniqid(); $filename =

Re: [PHP] File upload problem

2004-09-04 Thread Dre
thanks Jason .. it worked thanks again Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Saturday 04 September 2004 23:36, Dre wrote: I'm trying to upload a file using a form $base_img_dir = http://localhost/app_images/;; The destination directory/file has

[PHP] Clean variables sent from forms

2004-09-04 Thread Dre
Hi, I'm trying to perform a database insertion for a new record from data I receive from a HTML form I send the data to the file containing the insertion script and insert the values using the $_POST['variable_name'] every thing works fine, and the record get inserted correctly the problem is

Re: [PHP] Clean variables sent from forms

2004-09-04 Thread Dre
thanks a lot I will try to do this Chris Shiflett [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] --- Dre [EMAIL PROTECTED] wrote: I'm trying to perform a database insertion for a new record from data I receive from a HTML form I send the data to the file containing

[PHP] Re: mail() function problem

2004-09-02 Thread Dre
/ -- Dre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm using an Apache server .. doesn't it come with a sendmail program ?? I really don't know Jasper Howard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] do you have a sendmail program on your testing

Re: [PHP] mail() function problem

2004-09-02 Thread Dre
is down,mail func doesn't work. My suggesstion: Please work under UNIX systems. Yours,Mohsen --- Dre [EMAIL PROTECTED] wrote: Hi I was trying to use the mail() function, but it did not work, maybe because of some settings problem or something that I can't figure out I went online

Re: [PHP] Re: mail() function problem

2004-09-02 Thread Dre
Message- From: Dre [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 6:48 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: mail() function problem Sorry .. but I'm really so new at this I'm using Apache Server on a MS Windows XP Pro. OS, and I'm trying to send a mail

Re: [PHP] Storing image in database

2004-09-01 Thread Dre
thanks ... and I'm sorry for all of the dummy question .. I'm really new at this thanks again Dre, Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Wednesday 01 September 2004 05:18, Dre wrote: may I ask why is it inefficient ?? Yes. Also you can goggle around a bit

[PHP] mail() function problem

2004-09-01 Thread Dre
] //= thanks in advance Dre, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mail() function problem

2004-09-01 Thread Dre
] //= thanks in advance Dre, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: mail() function problem

2004-09-01 Thread Dre
? -- -- Jasper Howard :: Database Administration Velocity7 1.530.470.9292 http://www.Velocity7.com/ -- Dre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi I was trying to use the mail() function, but it did not work, maybe

[PHP] Re: mail() function problem

2004-09-01 Thread Dre
Sorry .. but I'm really so new at this I'm using Apache Server on a MS Windows XP Pro. OS, and I'm trying to send a mail through a form .. what do I need to install or configure to be able to do this. thanks in advance Dre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm using

Re: [PHP] Storing image in database

2004-08-31 Thread Dre
I got the idea .. and I will work on it thanks a lot Jim Grill [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dre wrote: line 8 is ?php just that .. and the code before it is the following //== html head

Re: [PHP] Storing image in database

2004-08-31 Thread Dre
may I ask why is it inefficient ?? thanks in advance Raditha Dissanayake [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dre wrote: Hi .. I'm trying to save and view image files in a MySQL database, I made the save operation successfully, I stored the image file name, type, size

Re: [PHP] Storing image in database

2004-08-30 Thread Dre
thanks .. I will search for it Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Tuesday 31 August 2004 02:34, Dre wrote: Cannot modify header information - headers already sent by Search the archives or google (former would be better as latter would give lots

Re: [PHP] Storing image in database

2004-08-30 Thread Dre
line 18 is header(Content-type: $image); Michal Migurski [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Everytime I try to execute this code I get this error Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache

Re: [PHP] Storing image in database

2004-08-30 Thread Dre
//== Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dre wrote: Hi .. I'm trying to save and view image files in a MySQL database, I made the save operation successfully, I stored the image file name, type, size and the image file itself the problem occurred when I

[PHP] Sessions Problem !!

2004-08-06 Thread Dre
Hi, I'm kinda new at PHP and I was trying to install one of the mailing lists and newsletter systems and during the installation process I got errors evertime the session_start() function called .. I had this before when I tried to work with OSCommerce. Is there something wrong in my

Re: [PHP] Sessions Problem !!

2004-08-06 Thread Dre
the exact error messages are == Warning: session_start(): open(/tmp\sess_000c30790862f64268e755546b6fcbb2, O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache

[PHP] Re: Sessions Problem !!

2004-08-06 Thread Dre
Thanks Chris ... problem solved, I'm sorry but these configuration details is a bit new for me Originally I'm a C++ programmer and web development is not my major kind of work Thanks again Chris Martin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dre wrote: the exact error