Re: [PHP] Session variables does not get sent

2004-09-06 Thread Peter Brodersen
On Mon, 6 Sep 2004 13:33:02 +0800, in php.general [EMAIL PROTECTED] (Jason Wong) wrote: $username = trim(addslashes($_POST['user_name'])); $pass = trim(addslashes($_POST['password'])); addslashes() is not needed as you're performing SELECT query and not an INSERT query. How did you come

Re: [PHP] Session variables does not get sent

2004-09-06 Thread Marek Kilimajer
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 session.save_path setting in php.ini from /tmp to whatever it is supposed to be on windows. Dre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]

Re: [PHP] Session variables does not get sent

2004-09-06 Thread Chris Shiflett
--- Jason Wong [EMAIL PROTECTED] wrote: $username = trim(addslashes($_POST['user_name'])); $pass = trim(addslashes($_POST['password'])); addslashes() is not needed as you're performing SELECT query and not an INSERT query. That's not true, since he's using user data in the SQL statement.

[PHP] safe_mode, sym-links and stat

2004-09-06 Thread Christian Jul Jensen
Hi I'm running PHP in safe mode, and have symlinked executables to the execution_dir, that works great. With one exception, it is not possible to check the existence of the files, before executing them. It seems to me that stat / lstat resolves the ownership of the orig executables and safe_mode

[PHP] Problem

2004-09-06 Thread Jorge
I have a problem when I do login for go to the page of administration on my web, Go back and can't entry this is the code that control this. Where is the problem? Thank you in advance ? session_start(); //echo session_id(); if (!isset($_SESSION['id'])){

[PHP] Re: htmlentities and foreign characters from MS Word

2004-09-06 Thread Monty
That did it! It seems that my version of MySQL doesn't support Unicode encoding, only the various ISO encodings. So, I guess this translation is necessary before storing all text in the DB so foreign characters aren't broken when I retrieve them from the DB. Thanks! I2eptilex wrote: Well it

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

Re: [PHP] Session variables does not get sent

2004-09-06 Thread Marek Kilimajer
Dre wrote: no I did this a long time ago (I did have this problem before :o) ) Try echo $_REQUEST[session_name()]; in members/main.php. It should print the session id. Then there should be a session file sess_[session id]. Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]

Re: [PHP] Session variables does not get sent

2004-09-06 Thread Jason Wong
On Monday 06 September 2004 14:08, Peter Brodersen wrote: On Mon, 6 Sep 2004 13:33:02 +0800, in php.general [EMAIL PROTECTED] (Jason Wong) wrote: $username = trim(addslashes($_POST['user_name'])); $pass = trim(addslashes($_POST['password'])); addslashes() is not needed as you're

Re: [PHP] Re: htmlentities and foreign characters from MS Word

2004-09-06 Thread Octavian Rasnita
You could store those texts as binary in MySQL... - Original Message - From: Monty [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 06, 2004 11:07 AM Subject: [PHP] Re: htmlentities and foreign characters from MS Word That did it! It seems that my version of MySQL

Re: [PHP] Session again !!!

2004-09-06 Thread Burhan Khalid
On Sun, 2004-09-05 at 17:32, Dre wrote: I really did and it behaves the same I tried isset() also but there is no good it still does not work !!! Does not work -- explain this part. add error_reporting(E_ALL); as the first line of code, in addition to all the other suggestions. Check your

Re: [PHP] Problem

2004-09-06 Thread Burhan Khalid
On Mon, 2004-09-06 at 11:03, Jorge wrote: I have a problem when I do login for go to the page of administration on my web, Go back and can't entry this is the code that control this. Where is the problem? Please read the Newbie Guide first before posting. WHat does your subject tell us about

Re: [PHP] PHP5 - How Do I Let Users Download Music Files?

2004-09-06 Thread Burhan Khalid
On Sun, 2004-09-05 at 05:41, [EMAIL PROTECTED] wrote: I want to build a music site, all copyrights intact, and I want users to be able to download mp3 or realplayer files using a one-click link. When they click on a link they will simply be given a typical download window to save that music

Re: [PHP] PHP5 - How Do I Let Users Download Music Files?

2004-09-06 Thread Pablo M. Rivas
Take a look at: http://netjuke.sourceforge.net/ I'm using in my local network, and works fine!!! On Mon, 06 Sep 2004 12:10:13 +0300, Burhan Khalid [EMAIL PROTECTED] wrote: On Sun, 2004-09-05 at 05:41, [EMAIL PROTECTED] wrote: I want to build a music site, all copyrights intact, and I

[PHP] Dinamic generate PDF : which way ? (classes, docbook)

2004-09-06 Thread robert mena
Hi, I plan to dynamic generate some of the documents I need on a regular basis. Sometimes they only differ by the name of the company so my first attempt would be to generate templates in word and ask/replace for the values needed. I am evaluating the http://www.ros.co.nz/pdf/, www.fpdf.org and

[PHP] PDF, MSWORD, GRAPHS

2004-09-06 Thread CBharadwaj
Dear all, I have to generate MS WORD Reports, PDF Reports, Graphs using PHP5 + MYSQL. can any body give good links . Thanks in advance. Bharadwaj. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] refresh withou erasing

2004-09-06 Thread devil_online
Hi want to put information on a page without erasing the previous on(like for every 5 minutes), and I think I must do an arrays and a foreach loop...how can I do that? thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: refresh withou erasing

2004-09-06 Thread M. Sokolewicz
You want to put information on a page. That's nice. You want to refresh every 5 minutes? that's also fine. You want it to refresh but to not refresh at the same time... somehow, magically, your browser should know that it only needs to add information... To avoid that issue, you could best store

Re: [PHP] PHP5 - How Do I Let Users Download Music Files?

2004-09-06 Thread Daniel Schierbeck
[EMAIL PROTECTED] wrote: Thanks Anders and Daniel. Daniel, I like your approach. I want to make it as secure as possible. I'm going to place the files outside the web directory and use authentication to approve that the user can download some particular song. I didn't know you could do a forced

[PHP] Re: refresh withou erasing

2004-09-06 Thread devil_online
thanks..and can you give a hand in the code? To avoid that issue, you could best store the info in some temporary file (or database) and then each time loop trough it, and issue it to the user. Make sure to include a 5-min.-delay redirect to the same page (refresh). Devil_online wrote:

Re: [PHP] PHP5 - How Do I Let Users Download Music Files?

2004-09-06 Thread Daniel Schierbeck
[EMAIL PROTECTED] wrote: Thanks Anders and Daniel. Daniel, I like your approach. I want to make it as secure as possible. I'm going to place the files outside the web directory and use authentication to approve that the user can download some particular song. I didn't know you could do a forced

Re: [PHP] PHP5 - How Do I Let Users Download Music Files?

2004-09-06 Thread John Nichel
Daniel Schierbeck wrote: snip Hey Daniel, do me a favor if you would, and add a year to the date on your computer. Thanks. -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] arrow values in command line php

2004-09-06 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: A while back I decided I wanted a simple interactive interpreter for PHP. So I wrote a little PHP script that essentially did a read from stdin, and ran eval on that. Worked for most situations I was in. I'm trying to add some more features now, namely recalling a list of

Re: [PHP] PHP5 - How Do I Let Users Download Music Files?

2004-09-06 Thread Daniel Schierbeck
Daniel Schierbeck wrote: [EMAIL PROTECTED] wrote: Thanks Anders and Daniel. Daniel, I like your approach. I want to make it as secure as possible. I'm going to place the files outside the web directory and use authentication to approve that the user can download some particular song. I didn't

Re: [PHP] PHP5 - How Do I Let Users Download Music Files?

2004-09-06 Thread Daniel Schierbeck
John Nichel wrote: Daniel Schierbeck wrote: snip Hey Daniel, do me a favor if you would, and add a year to the date on your computer. Thanks. Oooops... Sorry, i have a crappy, ehh, legal *cough* version of Adobe Photoshop, it won't work unless i put the time on my PC back a year, and

Re: [PHP] PDF, MSWORD, GRAPHS

2004-09-06 Thread raditha dissanayake
Read the previous message in this thread. the first sentence applies to you. -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload

Re: [PHP] Regex for Validating URL

2004-09-06 Thread Stut
I know this is an old thread but I've been away for the weekend and I really want to say this... On Thu, 2 Sep 2004 20:40:45 +0200, Nick Wilson [EMAIL PROTECTED] wrote: You know guys? I think you all take this a bit too seriously, perdanticness (is there such a word?) is all well and good for

Re: [PHP] tool to increase your web site?s profitability

2004-09-06 Thread Burhan Khalid
On Sun, 2004-09-05 at 19:29, Octavian Rasnita wrote: Does this list have a moderator? Teddy Please learn to TRIM!! No need to post the entire message (spam no less), again -- especially if all you are contributing is one line (to which, I might add, the answer can be found by searching the

Re: [PHP] Re: installing PHP on winXP

2004-09-06 Thread Burhan Khalid
On Sun, 2004-09-05 at 19:39, Gerben wrote: my install-paths are still the same. the real problem (I think) is that I'm missing the php4apache dll for some peculiar reason ||:-| Thanks anyway. I'll try downloading the zip file and doing it manually. I think the binary installer doesn't include

Re: [PHP] Dinamic generate PDF : which way ? (classes, docbook)

2004-09-06 Thread Saqib . N . Ali
Hello Robert, I would suggest that if your data is such that it can use DocBook, definitely go the DocBook route. You can also use Apache's Cocoon publish your DocBook content to PDF/HTML/RTF/SVG/TXT etc. Here are some samples that use Apache Cocoon to perform dynamic conversion to PDF/HTML:

[PHP] Multi-User Text-Editing

2004-09-06 Thread Daniel Schierbeck
I'm developing a site with information about songs, albums and artists. I would like to have the song lyrics as well, but i don't know how i should approach it. What i want is basically a way for many users to update, add or delete parts of a text (the lyric). It will probably only be

[PHP] Force the download of .pdf or image files

2004-09-06 Thread Ricardo Cezar
How can I force the download of .pdf, .doc and image files? I have some links to downloadable docs in my website, but when we click the links, IE opens the file directly in the window. I wish when the user click a download start, even if it is a .jpg, .gif, .pdf or .doc file. There is a way to

[PHP] Re: Multi-User Text-Editing

2004-09-06 Thread M. Sokolewicz
Daniel Schierbeck wrote: I'm developing a site with information about songs, albums and artists. I would like to have the song lyrics as well, but i don't know how i should approach it. What i want is basically a way for many users to update, add or delete parts of a text (the lyric). It will

Re: [PHP] Multi-User Text-Editing

2004-09-06 Thread Michal Migurski
What i want is basically a way for many users to update, add or delete parts of a text (the lyric). It will probably only be 'trusted' users that'll be able to do it (users that has added more than x artists/albums/songs). How can i make a CVS-like system, where you can see the changes people

Re: [PHP] Dinamic generate PDF : which way ? (classes, docbook)

2004-09-06 Thread Jim Grill
Hi, I am evaluating the http://www.ros.co.nz/pdf/, www.fpdf.org and php classes that generate pdf and as another option use docbook to convert. I am not sure which way is better. From my point of view: a) Both classes seem to be fine but in order to generate (static) tables and other

Re: [PHP] Force the download of .pdf or image files

2004-09-06 Thread Jim Grill
How can I force the download of .pdf, .doc and image files? I have some links to downloadable docs in my website, but when we click the links, IE opens the file directly in the window. I wish when the user click a download start, even if it is a .jpg, .gif, .pdf or .doc file. There is a way

Re: [PHP] Multi-User Text-Editing

2004-09-06 Thread Daniel Schierbeck
Michal Migurski wrote: What i want is basically a way for many users to update, add or delete parts of a text (the lyric). It will probably only be 'trusted' users that'll be able to do it (users that has added more than x artists/albums/songs). How can i make a CVS-like system, where you can see

Re: [PHP] Multi-User Text-Editing

2004-09-06 Thread Daniel Schierbeck
Michal Migurski wrote: What i want is basically a way for many users to update, add or delete parts of a text (the lyric). It will probably only be 'trusted' users that'll be able to do it (users that has added more than x artists/albums/songs). How can i make a CVS-like system, where you can see

[PHP] Instant private messenger

2004-09-06 Thread Phpu
Hi, I wanna create an instant private messenger for users who are online on my site. Foe example: I have a list with online users. I select the user which i wanna send an message. A popup window will apear, i write the message and click send. To that user it will appear a popup window with my

Re: [PHP] Instant private messenger

2004-09-06 Thread Greg Donald
On Tue, 7 Sep 2004 00:31:33 +0300, Phpu [EMAIL PROTECTED] wrote: Hi, I wanna create an instant private messenger for users who are online on my site. Foe example: I have a list with online users. I select the user which i wanna send an message. A popup window will apear, i write the message

Re: [PHP] Multi-User Text-Editing

2004-09-06 Thread Michal Migurski
You've just described a wiki - one example of a wiki that is written in PHP and MySQL is http://tavi.sourceforge.net. The code is a little spaghetti-like, but you should be able to look through the database schema to understand how they implement the multi-user text editing, and how to

[PHP] Problem with SSH output when called from apache

2004-09-06 Thread Chandu Nannapaneni
Hi everyone !! I want to capture the output of a certain remote command ( issued thru a SSH session to a remote server) in PHP. The following code is working well when ran from the console Ex: php -q test.php ? passthru(/usr/bin/ssh -v -i /var/wwwhtml/sshtest/id_rsa [EMAIL PROTECTED] uptime);

Re: [PHP] Multi-User Text-Editing

2004-09-06 Thread raditha dissanayake
Daniel Schierbeck wrote: Michal Migurski wrote: What i want is basically a way for many users to update, add or delete parts of a text (the lyric). It will probably only be 'trusted' users that'll be able to do it (users that has added more than x artists/albums/songs). How can i make a CVS-like

Re: [PHP] Instant private messenger

2004-09-06 Thread raditha dissanayake
Phpu wrote: Hi, I wanna create an instant private messenger for users who are online on my site. Foe example: I have a list with online users. I select the user which i wanna send an message. A popup window will apear, i write the message and click send. To that user it will appear a popup

[PHP] Re: Instant private messenger

2004-09-06 Thread ceg
Did you check at http://www.hotscripts.com ? Phpu [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I wanna create an instant private messenger for users who are online on my site. Foe example: I have a list with online users. I select the user which i wanna send an message. A

Re: [PHP] Problem with SSH output when called from apache

2004-09-06 Thread Rasmus Lerdorf
On Mon, 6 Sep 2004, Chandu Nannapaneni wrote: I want to capture the output of a certain remote command ( issued thru a SSH session to a remote server) in PHP. The following code is working well when ran from the console Ex: php -q test.php ? passthru(/usr/bin/ssh -v -i

[PHP] unable to use pear

2004-09-06 Thread Auditour
Dear sirs, I have recently installed the FoxServ package 3.0 on my windows xp platform. But when I use the following instruction:: require_once HTML/Template/ITX.php; I get this message; Fatal error: Failed opening required 'HTML/Template/ITX.php' (include_path='.;c:\php4\pear')

Re: [PHP] Adding a realtime monitoring console

2004-09-06 Thread Eric Emminger
Hi Kelly, Assuming the app always attempts communication with registered listeners, and then must timeout and unregister a dead listener...at that point aren't we just at my preferred solution: socket communication? I don't know much about sockets, so I couldn't say. If the console will

Re: [PHP] Web Fetch Process

2004-09-06 Thread Zoran
Hi How can I parse HTML page which I fetched by PHP so some part of text would be replaced by other text. Also, I managed to delete all HTML code from page (with this code $data[0] = preg_replace(/([])+([^])+([.])*([])+/i,, $data[0]); but also would like to delete all chars except numbers from

Re: [PHP] Multi-User Text-Editing

2004-09-06 Thread zareef ahmed
Hi, look at it http://www.freebsd.org/projects/cvsweb.html may be usefull. zareef ahmed --- raditha dissanayake [EMAIL PROTECTED] wrote: Daniel Schierbeck wrote: Michal Migurski wrote: What i want is basically a way for many users to update, add or delete parts of a text

Re: [PHP] unable to use pear

2004-09-06 Thread zareef ahmed
Hi, Make sure you have installed the pear and double check your included path in your php.ini . As per your message it seems that your pear should be in c:\php4\pear . Check for it and revert back. Zareef Ahmed --- Auditour [EMAIL PROTECTED] wrote: Dear sirs, I have recently

[PHP] More on the credit card fraud

2004-09-06 Thread Brian Dunning
The fraudulent orders that I receive on my site come with email addresses of eight random alphanumerics @yahoo.com. Is anyone handy enough with regex or can show me a quick way to test for that, so I can at least refuse all orders with that pattern? (it will work for a little while, until they

[PHP] converting seconds since unix epoc to date array

2004-09-06 Thread Jason FB
Can anyone tell me how to convert a date stored in the format -MM-DD to an integer of seconds since unix epoc, then add $daysToAdd days to this value (I suppose if the integer was a number of seconds it would have to be $daysToAdd*60*60*24 to get the number of seconds to add) then convert

Re: [PHP] converting seconds since unix epoc to date array

2004-09-06 Thread zareef ahmed
Hi, Try $date=-MM_DD; $da=explode(-,$date); Now $Y=$da['0']; $M=$da['1']; $D=$da['2']; then use mktime(); Hope you will get the results. zareef ahmed --- Jason FB [EMAIL PROTECTED] wrote: Can anyone tell me how to convert a date stored in the format -MM-DD to an integer of

Re: [PHP] converting seconds since unix epoc to date array

2004-09-06 Thread John Holmes
Jason FB wrote: Can anyone tell me how to convert a date stored in the format -MM-DD to an integer of seconds since unix epoc, then add $daysToAdd days to this value (I suppose if the integer was a number of seconds it would have to be $daysToAdd*60*60*24 to get the number of seconds to

Re: [PHP] converting seconds since unix epoc to date array

2004-09-06 Thread Justin French
Jason, This seems to work fine for me: ? $daysToAdd = 5; $secondsToAdd = $daysToAdd * 86400; $dateIn = 2004-07-24; $dateInStamp= strtotime($dateIn); echo date('m/d/Y h:i:s',$dateInStamp+$secondsToAdd); ? ... as does the more condensed version: ? echo date('m/d/Y

Re: [PHP] converting seconds since unix epoc to date array

2004-09-06 Thread Jason Davidson
How is the date stored, MySQL db??? if so, you can select dates out as unix timestamps. Otherwise i would use mktime or strtotime... Jason Jason FB [EMAIL PROTECTED] wrote: Can anyone tell me how to convert a date stored in the format -MM-DD to an integer of seconds since unix epoc,

Re: [PHP] converting seconds since unix epoc to date array

2004-09-06 Thread Jason Davidson
beware of dates before 1969. Justin French [EMAIL PROTECTED] wrote: Jason, This seems to work fine for me: ? $daysToAdd= 5; $secondsToAdd = $daysToAdd * 86400; $dateIn = 2004-07-24; $dateInStamp = strtotime($dateIn); echo date('m/d/Y