[PHP] Date class

2005-04-19 Thread Devraj Mukherjee
Everyone, Do you know of any decent Date/Time handling classes? We require the following functionality 1. Date's prior to 1970 handled (not reliant on the PHP date) 2. add/subtract days to/from a date 3. subtract two dates returning number of days Any pointers are welcome. Thanks for your time

Re: [PHP] ldap_connect error

2005-04-19 Thread Steve Turnbull
Richard Lynch wrote: On Mon, April 18, 2005 2:43 am, Steve Turnbull said: I am running a LAMP setup consisting of Debian (testing), PHP4, Apache2, and MySQL 4. When I installed php, I used apt-get, and included in the list of modules was libapache2_mod_php4 php4 php4-ldap ... PHP works

Re: [PHP] Apache - IIS Migration

2005-04-19 Thread Prathaban Mookiah
Are there any external libraries that you used to compile PHP? Including support for certain functions may have to be done differently in Windows for e.g Cybercash. Else it shouldn't be a problem. You can even safely upgrade to PHP = 5.0. Prathap -- Original Message --- From:

Re: [PHP] Date class

2005-04-19 Thread Mattias Thorslund
Devraj Mukherjee wrote: Everyone, Do you know of any decent Date/Time handling classes? We require the following functionality 1. Date's prior to 1970 handled (not reliant on the PHP date) 2. add/subtract days to/from a date 3. subtract two dates returning number of days Any pointers are

Re: [PHP] RHES 3 - PHP 5.0.x - freetype

2005-04-19 Thread Sasha Dolgy
sorry. does not generate text. doesn't generate any errors either. when i compile the freetype source with a simple ./configure;make;make install then compile php it works fine and displays text Omega... Was more curious to see if anyone had encountered this problem with building on RHES and

Re: [PHP] Localhost not working with cookies

2005-04-19 Thread Joseph L. Mueller
Richard Lynch wrote: On Sun, April 17, 2005 1:05 pm, Proudly Pinoy said: I've read from php.net/setcookie and codecomments.com that using localhost won't work with cookies and neither are IP addresses. So how do I test cookies on local system? Works for me. Maybe doesn't work with specific broken

[PHP] php4 can't find tnsnames.ora oracle9 but can connect if description hardcoded

2005-04-19 Thread neil smith
Hello, I have test script that can connect to the oracle database. It doesn't require tnsnames.ora because I define the database alias in the script itself. It looks like this: echo TWO_TASK=.getenv(TWO_TASK).br; echo LD_LIBRARY_PATH=.getenv(LD_LIBRARY_PATH).br; echo

[PHP] upload automatic execute

2005-04-19 Thread Sejati Opreker
Hi, I'm planning to make and ftp server and using php to upload it's files, this file for upload will be execute to insert into myslq databases, my problem is how do I make php to check if there is new file been upload and automaticly insert into mysql. Txh

[PHP] php output fills apache buffer for clients with slow internet connections

2005-04-19 Thread Martin Mandl
Dear Ladies and Gentlemen, the last couple of days I browsed the internet for the answer of a questions which seems to be a common problem ... but found now real solution: I would like to serve large files (100MB) to my clients using php: while (moreDataAvailable()) { printChunk(getChunk());

[PHP] Links exchange with http://php-faq.com.

2005-04-19 Thread Ann Clark
Hello, We would like to exchange links between your site http://php-faq.com and our new exciting casino web site. Our site do NOT offer online gambling, it have information about different aspects of gambling and so it's very good and informative from our point of view. We require that

Re: [PHP] upload automatic execute

2005-04-19 Thread Petar Nedyalkov
On Tuesday 19 April 2005 12:01, Sejati Opreker wrote: Hi, I'm planning to make and ftp server and using php to upload it's files, this file for upload will be execute to insert into myslq databases, my problem is how do I make php to check if there is new file been upload and automaticly

[PHP] email through PHP

2005-04-19 Thread Balwant Singh
hi, I am using FEDORA 3 and PHP. I want to send email to outside by my above mentioned linux machine through PHP. For this i want to use my SMTP sever, which is on a WINDOWS machine Please inform what setting to be done in php.ini or any other file to send the email. with best wishes balwant

Re: [PHP] php output fills apache buffer for clients with slow internet connections

2005-04-19 Thread Marek Kilimajer
Martin Mandl wrote: Dear Ladies and Gentlemen, the last couple of days I browsed the internet for the answer of a questions which seems to be a common problem ... but found now real solution: I would like to serve large files (100MB) to my clients using php: while (moreDataAvailable()) {

Re: [PHP] Links exchange with http://php-faq.com. OT - SPAM

2005-04-19 Thread Mattias Thorslund
Ann Clark wrote: Hello, We would like to exchange links between your site http://php-faq.com and our new exciting casino web site. Our site do NOT offer online gambling, it have information about different aspects of gambling and so it's very good and informative from our point of view. We

Re: [PHP] php output fills apache buffer for clients with slow internet

2005-04-19 Thread Martin Mandl
Try apaches' SendBufferSize config directive SendBufferSize sets the size of the TCP send buffer. Increasing the size would help only within high-speed networks to speed up the connection. However the 'slow-connection' clients are not in the same network. Thus increasing the TCP send buffer

Re: [PHP] email through PHP

2005-04-19 Thread Ken
On 19 Apr 2005 15:04:08 +0530, Balwant Singh [EMAIL PROTECTED] wrote: hi, I am using FEDORA 3 and PHP. I want to send email to outside by my above mentioned linux machine through PHP. For this i want to use my SMTP sever, which is on a WINDOWS machine Please inform what setting to be done

Re: [PHP] email through PHP

2005-04-19 Thread Balwant Singh
i want to use the SMTP server which is already exists. pls. give more details.. with best wishes balwant On Tue, 2005-04-19 at 15:59, Ken wrote: On 19 Apr 2005 15:04:08 +0530, Balwant Singh [EMAIL PROTECTED] wrote: hi, I am using FEDORA 3 and PHP. I want to send email to

RE: [PHP] Single SQL-statement in PHP to order...

2005-04-19 Thread Jared Williams
Hi there! I guess this is off-topic? but I want to know if this is possible. (If there's anyone out there that have a solution, I would appreciate it though) I want to know if there is anyway of showing tables in PHP in an order like this in a single SQL-statement...

[PHP] .htaccess

2005-04-19 Thread pete M
I'm trying to figure out out to put a directive in .htaccess to make the session timeout in 4 hours .. tried php_flag session.cookie_lifetime 240 and a few others can someone help ! tia -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] .htaccess

2005-04-19 Thread Mario de Frutos Dieguez
pete M escribió: I'm trying to figure out out to put a directive in .htaccess to make the session timeout in 4 hours .. tried php_flag session.cookie_lifetime 240 and a few others can someone help ! tia Try ini_set(session.gc_maxlifetime,2400); -- Mario de Frutos Dieguez División de Ingeniería

Re: [PHP] email through PHP

2005-04-19 Thread Angelo Zanetti
why dont you read the manual, thats what its for. I know you can specify your smtp server setttings in your php.ini file. so just set your smtp to the windows server address from PHP.ini [mail function] ; For Win32 only. SMTP = smtp.myserver.com ; for Win32 only ; For Win32 only. sendmail_from =

[PHP] Convert gif to jpg

2005-04-19 Thread Roman Duriancik
Hello, Is it possible to convert pictures in gif format to jpg format in php script ? Thank you for yours responses. Roman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Convert gif to jpg

2005-04-19 Thread Petar Nedyalkov
On Tuesday 19 April 2005 14:40, Roman Duriancik wrote: Hello, Is it possible to convert pictures in gif format to jpg format in php script ? Yes, Check http://www.php.net/manual/en/ref.image.php Thank you for yours responses. Roman -- Cyberly yours, Petar Nedyalkov Devoted Orbitel Fan

RE: [PHP] mysql blob datatype for documents

2005-04-19 Thread Mark Rees
It depends to some extent on who has access to the machine where you wish to store the documents, and how sensitive the documents are. When you are storing very sensitive documents with severe access restrictions it can make sense to use the DB for storage. You have to be careful when writing the

Re: [PHP] email through PHP

2005-04-19 Thread pete M
check out phpmailer http://phpmailer.sourceforge.net/ use it all the time - its brilliant !!! Balwant Singh wrote: hi, I am using FEDORA 3 and PHP. I want to send email to outside by my above mentioned linux machine through PHP. For this i want to use my SMTP sever, which is on a WINDOWS machine

Re: [PHP] email through PHP

2005-04-19 Thread Balwant Singh
thanks for your email, i read the manual and already tried the setting as told by you but its not working. i would like to again inform that i want to send email through PHP which is on a linux machine and our Company SMTP sever is on Windows Machine. i am certain the somebody has already

Re: [PHP] .htaccess

2005-04-19 Thread Martin Mandl
4 hours = 60 * 60 * 4 = 14400 Mario de Frutos Dieguez wrote: pete M escribió: I'm trying to figure out out to put a directive in .htaccess to make the session timeout in 4 hours .. tried php_flag session.cookie_lifetime 240 and a few others can someone help ! tia Try

Re: [PHP] .htaccess

2005-04-19 Thread Martin Mandl
and try php_value instead of php flag: php_value session.cookie_lifetime 14400 Martin Mandl wrote: 4 hours = 60 * 60 * 4 = 14400 Mario de Frutos Dieguez wrote: pete M escribió: I'm trying to figure out out to put a directive in .htaccess to make the session timeout in 4 hours .. tried php_flag

Re: [PHP] email through PHP

2005-04-19 Thread pete M
http://phpmailer.sourceforge.net/extending.html Balwant Singh wrote: hi, I am using FEDORA 3 and PHP. I want to send email to outside by my above mentioned linux machine through PHP. For this i want to use my SMTP sever, which is on a WINDOWS machine Please inform what setting to be done in

[PHP] Last visitors

2005-04-19 Thread Ryan A
Hey, Am a bit puzzled as to how to do this, I am modifying a profiles/dating site, the site works like this: if you are a guest you can see only limited details of a profile, if you have logged in, you see many more details. On the profile page there should be last 10 visitors, it will not

Re: [PHP] Last visitors

2005-04-19 Thread Ken
On 4/19/05, Ryan A [EMAIL PROTECTED] wrote: Hey, Am a bit puzzled as to how to do this, I am modifying a profiles/dating site, the site works like this: if you are a guest you can see only limited details of a profile, if you have logged in, you see many more details. On the profile page

Re: [PHP] Last visitors

2005-04-19 Thread Ryan A
clip the site works like this: if you are a guest you can see only limited details of a profile, if you have logged in, you see many more details. On the profile page there should be last 10 visitors, it will not register the guests, but if someone had logged in and visited your

Re: [PHP] Last visitors

2005-04-19 Thread Petar Nedyalkov
On Tuesday 19 April 2005 15:57, Ryan A wrote: Hey, Am a bit puzzled as to how to do this, I am modifying a profiles/dating site, the site works like this: if you are a guest you can see only limited details of a profile, if you have logged in, you see many more details. On the profile page

[PHP] Last visitors

2005-04-19 Thread Ken
On 4/19/05, Ryan A [EMAIL PROTECTED] wrote: clip the site works like this: if you are a guest you can see only limited details of a profile, if you have logged in, you see many more details. On the profile page there should be last 10 visitors, it will not register the guests,

Re: [PHP] Last visitors

2005-04-19 Thread Ryan A
I am not checking for the last people logged in, I want to see the last people who have viewed the profile... each profile will have its own last 10 people visited /* ah! i see. sorry for misunderstanding you. perhaps on the script for the profiles page, the logic should be like: profile for

FW: [PHP] Last visitors

2005-04-19 Thread Mark Rees
Couple of options: a CRON job/scheduled job which invokes a SQL command deleting all but the 10 most recent records, or do the same every time you insert a record. As to exactly how you decide which are the most recent 10 records to do this deletion, that is a little more complex. Something

Re: [PHP] Last visitors

2005-04-19 Thread Duncan Hill
On Tuesday 19 April 2005 14:27, Ryan A typed: SELECT * FROM profile_visits WHERE user='adam' ORDER by time_of_visit DESC LIMIT 10 As for cleaning up... that's the bit that I can't figure out myself :(. */ Hey, Thanks for replying. ah! i see. sorry for misunderstanding you. No problem,

RE: [PHP] Last visitors

2005-04-19 Thread Ryan A
Hey, As to exactly how you decide which are the most recent 10 records to do this deletion, that is a little more complex. Yep, for sure Something like DELETE FROM profile_visits WHERE user='billy' AND time_of_visit NOT IN ( Select time_of_visit FROM profile_visits WHERE

Re: [PHP] Last visitors

2005-04-19 Thread Ken
On 4/19/05, Ryan A [EMAIL PROTECTED] wrote: I am not checking for the last people logged in, I want to see the last people who have viewed the profile... each profile will have its own last 10 people visited /* ah! i see. sorry for misunderstanding you. perhaps on the script for the

RE: [PHP] Last visitors

2005-04-19 Thread Ryan A
Hey, Couple of options: a CRON job/scheduled job which invokes a SQL command deleting all but the 10 most recent records, **I dont think this would be very effective, as there might be thousands of profiles and each gets their last 10 visitors, some would be more popular than others or do the

Re: [PHP] Last visitors

2005-04-19 Thread Ken
what if you have something like 1000 users on your system. you'd have 1000 txt files! :( the DB seems to be a better idea as it's probably more expandable... you can do other queries to it and stuff... whereas 1000 txt files will be a pain in the butt to keep track of. On 4/19/05, Ryan A [EMAIL

Re: [PHP] mcrypt_generic_init(): Iv size incorrect

2005-04-19 Thread Mike Hummel
So this solution does work, however it doesn't answer the question as to why this is occurring in the first place. Rather then finding a work around for it, I'd like to know why PHP / mcrypt is throwing the error. Is it an issue in the library itself? Tom Rogers wrote: Hi, Saturday, April 9,

Re: [PHP] Last visitors

2005-04-19 Thread Ryan A
what if you have something like 1000 users on your system. you'd have 1000 txt files! :( the DB seems to be a better idea as it's probably more expandable... you can do other queries to it and stuff... whereas 1000 txt files will be a pain in the butt to keep track of. Too true :-(

Re: [PHP] Last visitors

2005-04-19 Thread Petar Nedyalkov
On Tuesday 19 April 2005 16:27, Ryan A wrote: I am not checking for the last people logged in, I want to see the last people who have viewed the profile... each profile will have its own last 10 people visited /* ah! i see. sorry for misunderstanding you. perhaps on the script for the

Re: [PHP] Last visitors (SOLVED?)

2005-04-19 Thread Ryan A
Hey! I think I solved this: select 11 latest visitors count to see if it returned 11 records, if (count == 11){ get the oldest (of the 11) visitors time delete everything from that record and older than that } else{} Pros: max 2 queries If i am missing anything or you see any problem in my

Re: [PHP] Last visitors (SOLVED?)

2005-04-19 Thread Petar Nedyalkov
On Tuesday 19 April 2005 17:03, Ryan A wrote: Hey! I think I solved this: select 11 latest visitors count to see if it returned 11 records, if (count == 11){ get the oldest (of the 11) visitors time delete everything from that record and older than that } else{} Pros: max 2 queries

Re: [PHP] explode a string

2005-04-19 Thread Jochem Maas
Richard Lynch wrote: On Mon, April 18, 2005 4:34 am, Sebastian said: $string = '4:gaming,5:hardware,3:software,8:security'; $idcats = explode(',', $string); while (list(, $idcat) = each($idcats)){ list($id, $cat) = explode(':', $idcat); echo \$id = $idbr /\n; echo \$cat = $catbr /\n; } The

Re: [PHP] explode a string

2005-04-19 Thread Petar Nedyalkov
On Tuesday 19 April 2005 17:03, Jochem Maas wrote: Richard Lynch wrote: On Mon, April 18, 2005 4:34 am, Sebastian said: $string = '4:gaming,5:hardware,3:software,8:security'; $idcats = explode(',', $string); while (list(, $idcat) = each($idcats)){ list($id, $cat) = explode(':',

Re: [PHP] Last visitors

2005-04-19 Thread John Nichel
Petar Nedyalkov wrote: snip You can store only 10 records for each user by using the following logic: mysql show create table profile_log\G *** 1. row *** Table: profile_log Create Table: CREATE TABLE `profile_log` ( `profile_id` int(10)

Re: [PHP] Last visitors

2005-04-19 Thread Petar Nedyalkov
On Tuesday 19 April 2005 17:08, John Nichel wrote: Petar Nedyalkov wrote: snip You can store only 10 records for each user by using the following logic: mysql show create table profile_log\G *** 1. row *** Table: profile_log

Re: [PHP] Last visitors

2005-04-19 Thread John Nichel
Petar Nedyalkov wrote: snip MySQL 4.1.8 snip Damn, too bad. We're still using 4.0.x and aren't going to be upgrading anytime in the near future. Thanks for the info on that though...it's an interesting feature, and one more thing I can add to the list of reasons why we need to upgrade. --

Re: [PHP] Last visitors (SOLVED?)

2005-04-19 Thread Mike Hummel
just do a select limit 11 display up to 11... if less then 11, you might want to display them anyways. you should be able to deal with up to a million + records, so select will stay quick, esp if you make the right fields indexed. you can take care of purging via crons... you might find you want

Re: [PHP] Last visitors (SOLVED?)

2005-04-19 Thread Ryan A
Hey, Thanks for replying. Check my reply. I did, the problem is the client is on a box with mySql 3.23.x or 4.0.x, he is deciding to upgrade to a dedicated box but then the host he is looking at says they will charge him if they are to upgrade to mysql 4.1 (hence i cant even use sub-selects)

[PHP] mailing lists

2005-04-19 Thread Clive Zagno
Hi does anyone use any cool php mailing list software. clive -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Images - Converting TIFF Format?

2005-04-19 Thread The Disguised Jedi
Is there a quick way to convert a TIFF format picture to a GIF quickly? I can only find support for GIFs in PHP, but maybe I'm missing something. I have a client running a photography business, and I have designed an image watermark and resizing engine, and a server to check the request, serve

Re: [PHP] mailing lists

2005-04-19 Thread John Nichel
Clive Zagno wrote: snip Please turn of your request for read receipts when sending to a mailing list. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Last visitors

2005-04-19 Thread Tom Crimmins
On Tuesday, April 19, 2005 09:09, John Nichel wrote: Petar Nedyalkov wrote: snip You can store only 10 records for each user by using the following logic: mysql show create table profile_log\G *** 1. row *** Table: profile_log

[PHP] Re: mailing lists

2005-04-19 Thread Mike Hummel
Sonic Mail Pro is very usable, and very easy to setup. I have some very non-technical clients using it effectively. http://www.sensationdesigns.com/products/scripts/smpro/index.php Clive Zagno wrote: Hi does anyone use any cool php mailing list software. clive -- PHP General Mailing List

[PHP] Re: Images - Converting TIFF Format?

2005-04-19 Thread Mike Hummel
http://www.imagemagick.org/script/index.php The Disguised Jedi wrote: Is there a quick way to convert a TIFF format picture to a GIF quickly? I can only find support for GIFs in PHP, but maybe I'm missing something. I have a client running a photography business, and I have designed an image

Re: [PHP] Last visitors

2005-04-19 Thread Petar Nedyalkov
On Tuesday 19 April 2005 17:42, Tom Crimmins wrote: On Tuesday, April 19, 2005 09:09, John Nichel wrote: Petar Nedyalkov wrote: snip You can store only 10 records for each user by using the following logic: mysql show create table profile_log\G *** 1. row

Re: [PHP] Re: mailing lists

2005-04-19 Thread Clive Zagno
Hi i should of added, that it shoud preferable be free and opensource. I found these guys http://www.webinsta.com seem to be what i want, unless anyones got some comments. clive Mike Hummel wrote: Sonic Mail Pro is very usable, and very easy to setup. I have some very non-technical clients

[PHP] foreach sorting

2005-04-19 Thread Sebastian
when the if statement is true how do i make it appear as the last record in the loop? $tabarray = array('/games' = 'Games', '/news' = 'News'); foreach ($tabarray AS $loc = $item) { if(strpos($loc, $_SERVER['REQUEST_URI']) !== false) { $tabmenulist .= 'td class=tabsela

[PHP] get_parent_class-certification

2005-04-19 Thread blackwater dev
Hello, Running this code in Zend studio returns string(3) mom; class grandparent{ }; class mom extends grandparent{ }; class son extends mom{ }; echo var_dump(get_parent_class(son)); However, the Zend certification book has a question like this and says it should return grandparent...which is

[PHP] Re: mailing lists

2005-04-19 Thread pete M
check out hotscripts.com Clive Zagno wrote: Hi does anyone use any cool php mailing list software. clive -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] foreach sorting

2005-04-19 Thread Philip Hallstrom
when the if statement is true how do i make it appear as the last record in the loop? $tabarray = array('/games' = 'Games', '/news' = 'News'); foreach ($tabarray AS $loc = $item) { if(strpos($loc, $_SERVER['REQUEST_URI']) !== false) { $tabmenulist .= 'td class=tabsela

[PHP] Sessions - going back in browser

2005-04-19 Thread Craig Donnelly
Hello, I had an issue that I needed to be able to go back in the browser while in a session without getting page has expired, I was reading through the manual and came across a comment about adding the following to the sessions page to allow users to traverse back: header(Cache-control:

[PHP] Re:^^

2005-04-19 Thread Craig Donnelly
So now the page expires Any help appreciated. Craig Donnelly [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I had an issue that I needed to be able to go back in the browser while in a session without getting page has expired, I was reading through the manual and came

Re: [PHP] Sessions - going back in browser

2005-04-19 Thread Greg Donald
On 4/19/05, Craig Donnelly [EMAIL PROTECTED] wrote: I had an issue that I needed to be able to go back in the browser while in a session without getting page has expired, I was reading through the manual and came across a comment about adding the following to the sessions page to allow users

[PHP] post redirect

2005-04-19 Thread jem777
If I submit a post and then, serverside, I redirect the request to another page, do the post variables still live in the new page? Thanks, Jem777 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] post redirect

2005-04-19 Thread John Nichel
jem777 wrote: If I submit a post and then, serverside, I redirect the request to another page, do the post variables still live in the new page? Thanks, Jem777 Try it. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] post redirect

2005-04-19 Thread jem777
Thanks, but I need to know the php behaviour indipendently from my web server. John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] jem777 wrote: If I submit a post and then, serverside, I redirect the request to another page, do the post variables still live in the new

Re: [PHP] Last visitors (SOLVED?)

2005-04-19 Thread Christopher Fulton
I did, the problem is the client is on a box with mySql 3.23.x or 4.0.x, he is deciding to upgrade to a dedicated box but then the host he is looking at says they will charge him if they are to upgrade to mysql 4.1 (hence i cant even use sub-selects) (Sorry I didnt mention the MySql version

RE: [PHP] post redirect

2005-04-19 Thread Jay Blanchard
[snip] If I submit a post and then, serverside, I redirect the request to another page, do the post variables still live in the new page? [/snip] Nope. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] set cookie function problem

2005-04-19 Thread Ospinto
Hi, Can someone help me with this problem? setcookie('myCookie',blah); works fine. but when i try to set it with an expiry time, it doesn't. setcookie('myCookie',blah,time()+3600); I have cookies enabled on my browser of course. And the way I know the second statement is not working is cos I'm

Re: [PHP] set cookie function problem

2005-04-19 Thread Marek Kilimajer
Ospinto wrote: Hi, Can someone help me with this problem? setcookie('myCookie',blah); works fine. but when i try to set it with an expiry time, it doesn't. setcookie('myCookie',blah,time()+3600); I have cookies enabled on my browser of course. And the way I know the second statement is not working

Re: [PHP] set cookie function problem

2005-04-19 Thread Ospinto
ok...what does that have to do with my problem? Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Ospinto wrote: Hi, Can someone help me with this problem? setcookie('myCookie',blah); works fine. but when i try to set it with an expiry time, it doesn't.

Re: [PHP] set cookie function problem

2005-04-19 Thread Stephen Johnson
Nothing -- However - try adding a path to your cookie statement. It may not be the problem - but it has corrected this issue for me in the past. I.e : setcookie('myCookie',blah,time()+3600, /); ?php /* Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com [EMAIL PROTECTED]

Re: [PHP] set cookie function problem

2005-04-19 Thread Marek Kilimajer
Ospinto wrote: ok...what does that have to do with my problem? The time is send in GMT, and your computer is set to GMT -7. So the cookie is set to expire in the past. Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Ospinto wrote: Hi, Can someone help me with

Re: [PHP] explode a string

2005-04-19 Thread Jochem Maas
Petar Nedyalkov wrote: On Tuesday 19 April 2005 17:03, Jochem Maas wrote: Richard Lynch wrote: On Mon, April 18, 2005 4:34 am, Sebastian said: $string = '4:gaming,5:hardware,3:software,8:security'; $idcats = explode(',', $string); while (list(, $idcat) = each($idcats)){ list($id, $cat) =

[PHP] Sorting table columns dynamically on normalized MySQL tables

2005-04-19 Thread Leif Gregory
Hello php-general, I've been wrestling with this one for a bit and wanted to see if anyone had a nice magic bullet (yeah right) to do this. Let's just keep it simple (my DB is a bit more complex). We have a DB called Courses with three tables. Instructors - id name Locations id name

Re: [PHP] Sorting table columns dynamically on normalized MySQL tables

2005-04-19 Thread Chris Boget
I can do that, but is there a better way? How do you all handle dynamic sorting of normalized DBs? Firstly, what DB are you using? Secondly, just select and sort on the columns. An example query would be: SELECT course.name, location.name, instructor.name FROM course INNER JOIN

RE: [PHP] Sorting table columns dynamically on normalized MySQL tables

2005-04-19 Thread Jay Blanchard
[snip] I can do that, but is there a better way? How do you all handle dynamic sorting of normalized DBs? [/snip] Normalization has no effect on sort order where any DB is concerned. Sort order is determined in the sort clause in the query. So if you want to sort by location and you are using

[PHP] can I join two mp3 files with php

2005-04-19 Thread QT
dear sir, any idea how can I join two mp3 file with php best regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] can I join two mp3 files with php

2005-04-19 Thread Jay Blanchard
[snip] any idea how can I join two mp3 file with php [/snip] if(!function_exists('file_put_contents')) { function file_put_contents($filename, $data, $file_append = false) { $fp = fopen($filename, (!$file_append ? 'w+' : 'a+')); if(!$fp) { trigger_error('file_put_contents cannot

[PHP] parse error, unexpected T_CLASS

2005-04-19 Thread Dasmeet Singh
Hi! When i try to run the following line: echo (div class=pmini h1 $row[1] /h1 p Location- $row[4] br Property Type- $ptypebrMin Price- $row[9] /div); it gives an error.. Parse error: parse error, unexpected T_CLASS in /home/real/public_html/functions.php on line 162 Any idea..why? Probably

Re: [PHP] parse error, unexpected T_CLASS

2005-04-19 Thread Marek Kilimajer
Dasmeet Singh wrote: Hi! When i try to run the following line: echo (div class=pmini h1 $row[1] /h1 p Location- $row[4] br Property Type- $ptypebrMin Price- $row[9] /div); The above line is fine. Check the lines above. it gives an error.. Parse error: parse error, unexpected T_CLASS in

RE: [PHP] parse error, unexpected T_CLASS

2005-04-19 Thread Jay Blanchard
[snip] echo (div class=pmini h1 $row[1] /h1 p Location- $row[4] br Property Type- $ptypebrMin Price- $row[9] /div); it gives an error.. Parse error: parse error, unexpected T_CLASS in /home/real/public_html/functions.php on line 162 Any idea..why? Probably any stupid mistake .. :( [/snip]

Re: [PHP] parse error, unexpected T_CLASS

2005-04-19 Thread Dasmeet Singh
Jay Blanchard wrote: [snip] echo (div class=pmini h1 $row[1] /h1 p Location- $row[4] br Property Type- $ptypebrMin Price- $row[9] /div); it gives an error.. Parse error: parse error, unexpected T_CLASS in /home/real/public_html/functions.php on line 162 Any idea..why? Probably any stupid

Re: [PHP] parse error, unexpected T_CLASS

2005-04-19 Thread Marek Kilimajer
Dasmeet Singh wrote: Jay Blanchard wrote: [snip] echo (div class=pmini h1 $row[1] /h1 p Location- $row[4] br Property Type- $ptypebrMin Price- $row[9] /div); it gives an error.. Parse error: parse error, unexpected T_CLASS in /home/real/public_html/functions.php on line 162 Any

Re: [PHP] parse error, unexpected T_CLASS

2005-04-19 Thread Dasmeet Singh
Marek Kilimajer wrote: Dasmeet Singh wrote: Jay Blanchard wrote: [snip] echo (div class=pmini h1 $row[1] /h1 p Location- $row[4] br Property Type- $ptypebrMin Price- $row[9] /div); it gives an error.. Parse error: parse error, unexpected T_CLASS in

Re: [PHP] parse error, unexpected T_CLASS

2005-04-19 Thread Jason Barnett
Dasmeet Singh wrote: Jay Blanchard wrote: [snip] echo (div class=pmini h1 $row[1] /h1 p Location- $row[4] br Property Type- $ptypebrMin Price- $row[9] /div); it gives an error.. Parse error: parse error, unexpected T_CLASS in /home/real/public_html/functions.php on line 162 Any

Re: [PHP] can I join two mp3 files with php

2005-04-19 Thread QT
hi, is it easy like this, I tried and works good. Shouldn't I need to handle something inside mp3? just easy to put each file together in the another file? Best Regards Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] any idea how can I join two mp3 file with php

[PHP] mp3 convert to amr

2005-04-19 Thread QT
dear sirs, how can I convert mp3 to amr with php? any document source? best regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] can I join two mp3 files with php

2005-04-19 Thread QT
thank you very much it works with mp3 good. But when I try with amr, it doenst work. I think first amr files put some time limit and player stop at time limit. Now I am looking to find how can I convert mp3 to amr. Because I need to have amr file at the end best regards Jay Blanchard [EMAIL

RE: [PHP] mp3 convert to amr

2005-04-19 Thread Jay Blanchard
[snip] how can I convert mp3 to amr with php? any document source? [/snip] You cannot with PHP, you will need to search for AMR converters on google -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] can I join two mp3 files with php

2005-04-19 Thread Marek Kilimajer
QT wrote: thank you very much it works with mp3 good. But when I try with amr, it doenst work. I think first amr files put some time limit and player stop at time limit. Now I am looking to find how can I convert mp3 to amr. Because I need to have amr file at the end The mp3 file is technicaly

Re: [PHP] post redirect

2005-04-19 Thread Marek Kilimajer
jem777 wrote: Thanks, but I need to know the php behaviour indipendently from my web server. It's independent. John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] jem777 wrote: If I submit a post and then, serverside, I redirect the request to another page, do the post variables

Re: [PHP] can I join two mp3 files with php

2005-04-19 Thread QT
I found an exe file, can I run that ms-dos exe file on linux machine with php? I didn't try anything like this before Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] QT wrote: thank you very much it works with mp3 good. But when I try with amr, it doenst work. I

Re: [PHP] Re: Session variables are not stored when set in implicitly calledconstructor!??

2005-04-19 Thread Adam
Hallo again, thank You for Your response. // singleton for request class Request { function __destructor() { $_SESSION[variable] = hallo; The __destructor() method is supposed to be about killing the class (Request). It's probably bad practice to be changing $_SESSION

Re: [PHP] can I join two mp3 files with php

2005-04-19 Thread Marek Kilimajer
QT wrote: I found an exe file, can I run that ms-dos exe file on linux machine with php? I didn't try anything like this before First, check if it's really for ms-dos. Command line does not mean ms-dos, it can be a WIN32 command line binary. If it's really ms-dos executable, use dosemu. If it's

  1   2   >