RE: [PHP] ssh command in php script

2003-11-11 Thread Warren Vail
Don't know if this will help, but I worked on one implementation that involved writing a daemon (we used perl, but php would work as well) which runs as a user privileged script (started from cron), and waits for a connection from my web app, and verifies that the request is coming from the proper

[PHP] Re: ssh within PHP

2003-11-11 Thread tirumal b
Hello All, Its enough if i have the apache privileges. Can i login to apache user and to remote computer apache user with public key authentication and run some command there. thank you On Tue, 2003-11-11 at 01:34, tirumal b wrote: Hello All I have written the following command in PHP

Re: [PHP] Re: ssh within PHP

2003-11-11 Thread Eugene Lee
On Mon, Nov 10, 2003 at 11:05:02PM -0800, tirumal b wrote: : : Its enough if i have the apache privileges. Can i : login to apache user and to remote computer apache : user with public key authentication and run some : command there. Usually, the user that Apache runs under does not have a real

[PHP] Share Folder...

2003-11-11 Thread D. Jame
Hi, I have three machine 1, 2, 3. all online have unique IP. one of them (no. 3) running web server which configured with PHP, now my problem is I want to show share directory on Web page to my users. when they enter IP of machine 1 or 2... anyone to know...plz help me.. jame

[PHP] Reset auto_increment field

2003-11-11 Thread Christian Ista
Hello, It's not really a PHP question, sorry. How reset a MySQL auto_incrment field ? Thanks, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Reset auto_increment field

2003-11-11 Thread Pavel Jartsev
Christian Ista wrote: How reset a MySQL auto_incrment field ? ALTER TABLE table_name AUTO_INCREMENT = value -- Pavel a.k.a. Papi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Reset auto_increment field

2003-11-11 Thread Eugene Lee
On Tue, Nov 11, 2003 at 10:34:17AM +0100, Christian Ista wrote: : : It's not really a PHP question, sorry. : : How reset a MySQL auto_incrment field ? There are several suggestions in the User Comments of MySQL's online documentation. You should check them out.

[PHP] get method http 1.1 eror

2003-11-11 Thread QT
Dear Sirs, I am using following method for GET but I am getting this error from server; HTTP/1.1 505 HTTP Version Not Supported Content-Type: text/plain Date: Tue, 11 Nov 2003 10:08:44 GMT Server: Apache Coyote/1.0 Connection: close ?php $fp = fsockopen (www.example.com, 80, $errno, $errstr,

[PHP] HTML2PDF on the fly

2003-11-11 Thread K. Praveen Kumar
Hi all, Can anybody tell me how can I convert the HTML to PDF on the fly. I have a HTML form which should be converted into PDF after filling and submitting it. Please give me your valuable suggestions. I have been using HTMLDOC-1.8.23. executing the below code giving error.This code is

Re: [PHP] get method http 1.1 eror

2003-11-11 Thread Marek Kilimajer
QT wrote: Dear Sirs, I am using following method for GET but I am getting this error from server; HTTP/1.1 505 HTTP Version Not Supported Content-Type: text/plain Date: Tue, 11 Nov 2003 10:08:44 GMT Server: Apache Coyote/1.0 Connection: close Weird. Use HTTP/1.1 then. And add Connection: close

Re: [PHP] HTML2PDF on the fly

2003-11-11 Thread Burhan Khalid
K. Praveen Kumar wrote: Hi all, Can anybody tell me how can I convert the HTML to PDF on the fly. I have a HTML form which should be converted into PDF after filling and submitting it. Please give me your valuable suggestions. I have been using HTMLDOC-1.8.23. http://www.fpdf.org

Re: [PHP] displaying numbers up to 2 places of decimal.

2003-11-11 Thread Burhan Khalid
Binay wrote: Hi all ! I want to display numbers(integer,float,double) up to 2 places of decimal i.e if number is interger say 10, then i want to display it like 10.00. STFA this question comes up one every 2 days. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com

Re: [PHP] HTML2PDF on the fly

2003-11-11 Thread K. Praveen Kumar
This is the error I am getting while executing the script. File does not begin with '%PDF-'. -- Thanks Regards Praveen Kumar SoftPro Systems Ltd On Tue, 2003-11-11 at 16:29, Burhan Khalid wrote: K. Praveen Kumar wrote: Hi all, Can anybody tell me how can I convert the HTML to PDF on

Re: [PHP] DW Php update record form with menu from another table

2003-11-11 Thread Burhan Khalid
Robb Kerr wrote: I'm using Dreamweaver's Update Record form wizard to create a record update page. Most of the fields are text, one is file and I want one of them to be a menu. The menu field should be populated with the fields of another table. Here's the problem... If I leave all of the fields

Re: [PHP] help create community newbie guide to security

2003-11-11 Thread Lawrence Kennon
Chris Shiflett wrote: In some cases, the developer may want certain HTML elements interpreted rather than escaped in this way. Perhaps you could mention that something like str_replace() can be used to convert specific HTML entities back to their original form. This method should

Re: [PHP] \n and br

2003-11-11 Thread Burhan Khalid
Chris Shiflett wrote: --- Eugene Lee [EMAIL PROTECTED] wrote: Warning: nl2br() is not safe because it emits br / tags which do not always work on all browsers (especially browsers not explicitly advertised to be XHTML-compliant). Can you name a single browser that cannot properly render a br /

Re: [PHP] Dose this exist?

2003-11-11 Thread Burhan Khalid
Dave Carrera wrote: Hi List, Is there such a tool that will generate a form and relevant code when given the mysql db-table-fields to update, select, insert etc ? I ask as hand coding forms and the relevant php code is becoming very time consuming and I need to speed up this operation. Any URL's

Re: [PHP] HTML2PDF on the fly

2003-11-11 Thread Marek Kilimajer
Save the file and look at its content, you might have php errors in it. K. Praveen Kumar wrote: This is the error I am getting while executing the script. File does not begin with '%PDF-'. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] First test release of BTportal made!!!!

2003-11-11 Thread Burhan Khalid
Bas wrote: It's avaiable on: http://members.home.nl/famde.jong/portalBT-0.0.1.zip Get your own list. php.general is not your personal announcement list. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- Documentation is like sex: when it is good, it

RE: [PHP] mysql_list_fields() bug?

2003-11-11 Thread Jay Blanchard
[snip] Ok, this ended up working well. I'm still wondering why in my example function two() works, without needing to provide the resource identifier to mysql_query(), how can mysql_query() pick up the resource identifier automatically while mysql_list_fields does not? [/snip] From

Re: [PHP] Share Folder...

2003-11-11 Thread Raditha Dissanayake
what os? D. Jame wrote: Hi, I have three machine 1, 2, 3. all online have unique IP. one of them (no. 3) running web server which configured with PHP, now my problem is I want to show share directory on Web page to my users. when they enter IP of machine 1 or 2... anyone to

[PHP] CDONTS Mail problem

2003-11-11 Thread PHPLover
Dear all, I am not able to attach file using CDONTs component. Could any one trace out what the problem is ?? The code I use is given below and I run on IIS on Windows 2000 @$CDONTS = new COM(CDONTS.NewMail); @$CDONTS-From = [EMAIL PROTECTED]; @$CDONTS-To = [EMAIL PROTECTED];

[PHP] Delete Temporary Internet Files

2003-11-11 Thread Joe Mack
I am trying to use PHP to delete temporary internet files in IE6. I would also like to access other Internet Options functions. Any assistance would be appreciated. Thanks. Joe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP, Java, a strange number...

2003-11-11 Thread Dom S
Hi, I am having problems trying to get PHP to return a Java .jar file. Basically, the jar is reported as corrupted by Opera, or any browser and Java 1.3. I have tracked this down to a strange number at the start of the message body: If I access the jar file directly (no PHP), I get (viewed by

Re: [PHP] Delete Temporary Internet Files

2003-11-11 Thread Marek Kilimajer
Joe Mack wrote: I am trying to use PHP to delete temporary internet files in IE6. I would also like to access other Internet Options functions. Any assistance would be appreciated. PHP is server side, it cannot mess with browser this way. As on another list. -- PHP General Mailing List

Re: [PHP] CDONTS Mail problem

2003-11-11 Thread Marek Kilimajer
PHPLover wrote: Dear all, I am not able to attach file using CDONTs component. Could any one trace out what the problem is ?? The code I use is given below and I run on IIS on Windows 2000 @$CDONTS = new COM(CDONTS.NewMail); @$CDONTS-From = [EMAIL PROTECTED]; @$CDONTS-To = [EMAIL PROTECTED];

[PHP] problem with mssql_query

2003-11-11 Thread bob pillford
Hi all i have the following code which isnt working correctly and i cant work out why. Any help would be greatly appreciated as its sending me crazy! $query = select refno from campaign where appdate between 'nov 07 2003' and 'nov 08 2003' ; $result=mssql_query($query,$numero);

Re: [PHP] get method http 1.1 eror

2003-11-11 Thread Chris Shiflett
--- QT [EMAIL PROTECTED] wrote: I am using following method for GET but I am getting this error from server; HTTP/1.1 505 HTTP Version Not Supported This means that the version of HTTP that you are using is not supported by the server you are sending your request to. fputs ($fp, GET /

Re: [PHP] help create community newbie guide to security

2003-11-11 Thread Chris Shiflett
--- Lawrence Kennon [EMAIL PROTECTED] wrote: For a BBS I would like to let users post links to various resources. They 'post' a message to the BBS via a form and that is stored in a MySQL db, then the content of their 'post' is available to other users on the BBS. Currently I strip out all

[PHP] Re: PHP, Java, a strange number...

2003-11-11 Thread Dom S
Please ignore - now posted to bug newsgroup Dom S [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I am having problems trying to get PHP to return a Java .jar file. Basically, the jar is reported as corrupted by Opera, or any browser and Java 1.3. I have tracked this down to

Re: [PHP] \n and br

2003-11-11 Thread Brian V Bonini
On Mon, 2003-11-10 at 20:21, Eugene Lee wrote: On Mon, Nov 10, 2003 at 04:05:07PM -0800, Chris Shiflett wrote: : : --- Eugene Lee [EMAIL PROTECTED] wrote: : : Warning: nl2br() is not safe because it emits br / tags which do : not always work on all browsers (especially browsers not

[PHP] Need OSC guru for some overflow...

2003-11-11 Thread Brian V Bonini
I've got some overflow work that requires some modifications to the functionality of OSC. Would prefer to work with someone who's already VERY VERY familiar with OSC, don't want to pay for learning time. Please contact me @ [EMAIL PROTECTED]dotcom (remove 'dot' obviously) if interested with 'OSC

Re: [PHP] help create community newbie guide to security

2003-11-11 Thread Adam i Agnieszka Gasiorowski FNORD
Chris W. Parker wrote: 10. Use htmlentities() on data that will be put through a SQL query to prevent XSS attacks. http://php.net/htmlentities How is it going to interact with MySQL FULLTEXT search SQL queries, where the characters and are in use as modifiers? -- Seks, seksi,

Re: [PHP] help create community newbie guide to security

2003-11-11 Thread Chris Shiflett
--- Adam i Agnieszka Gasiorowski FNORD [EMAIL PROTECTED] wrote: Chris W. Parker wrote: 10. Use htmlentities() on data that will be put through a SQL query to prevent XSS attacks. http://php.net/htmlentities How is it going to interact with MySQL FULLTEXT search SQL queries, where

[PHP] Passing header info for use in downloading files...?

2003-11-11 Thread Tristan . Pretty
I have a page where the user clicks a link to download a file, but the file is out side of the root DIR. passing certain variables in the link, (type, file_name) I call the correct file... However, it's stopped working? My code below shows how I select the correct mime info to pass to the

[PHP] shell_exec with pipes

2003-11-11 Thread Mario Ohnewald
Hello List! I have tried to get this command working with php for about 2Weeks now, and i would like you to try to get this thing working. This shell command: /usr/local/bin/mplayer -identify -frames 0 /tmp/pitstop.mpeg 2/dev/null| grep ID_LENGTH | cut -d = -f 2 gives me the result 16 back, the

Re: [PHP] shell_exec with pipes

2003-11-11 Thread Aaron Gould
Have you tried escaping the pipes and quotes? Try this: $var=shell_exec(/usr/local/bin/mplayer -identify -frames 0 /tmp/pitstop.mpeg 2/dev/null\| grep ID_LENGTH \| cut -d \=\ -f 2); Mario Ohnewald wrote: $var=shell_exec(/usr/local/bin/mplayer -identify -frames 0 /tmp/pitstop.mpeg 2/dev/null|

[PHP] getaddrinfo failed in fsockopen()

2003-11-11 Thread Manuel Rodríguez Cayetano
Hi, I am having problems while executing this simple php script: ? $fp = fsockopen (www.example.com, 80, $errno, $errstr, 30); if (!$fp) { echo $errstr ($errno)br\n; } else { fputs ($fp, GET / HTTP/1.0\r\nHost: www.example.com\r\n\r\n); while

[PHP] LDAP and PHP

2003-11-11 Thread Dave Dash
I'm having trouble getting LDAP to work with PHP. ldap_connect results in: Fatal error: Call to undefined function: ldap_connect() in /home/davedash/public_html/ldap.php on line 3 and when I compiled I enabled --enable-ldap. Am I missing something else here? I've got openldap installed as

Re: [PHP] shell_exec with pipes

2003-11-11 Thread Mario Ohnewald
Have you tried escaping the pipes and quotes? Try this: $var=shell_exec(/usr/local/bin/mplayer -identify -frames 0 /tmp/pitstop.mpeg 2/dev/null\| grep ID_LENGTH \| cut -d \=\ -f 2); nope, still get nothing back. Mario Ohnewald wrote: $var=shell_exec(/usr/local/bin/mplayer -identify

Re: [PHP] Passing header info for use in downloading files...?

2003-11-11 Thread John Nichel
[EMAIL PROTECTED] wrote: I have a page where the user clicks a link to download a file, but the file is out side of the root DIR. passing certain variables in the link, (type, file_name) I call the correct file... However, it's stopped working? My code below shows how I select the correct mime

[PHP] imagejpeg

2003-11-11 Thread Egil Berntsen
My site need to create some images on-the-fly(with user data) for every user but I have some problem with the creating of the jpeg-image. I put these images in my MySQL database for later use. This have to do somthing with write protection because this is not a problem when I'm working on

Re: [PHP] imagejpeg

2003-11-11 Thread Marek Kilimajer
Egil Berntsen wrote: My site need to create some images on-the-fly(with user data) for every user but I have some problem with the creating of the jpeg-image. I put these images in my MySQL database for later use. This have to do somthing with write protection because this is not a problem when

RE: [PHP] Passing header info for use in downloading files...?

2003-11-11 Thread Erik Osterman
Look's correct... you could consider adding Header(Content-transfer-encoding: binary); But I highly doubt that would fix things. It would help much more if you pasted the output by the server... The link you pasted us is not sending any of the headers you set. Maybe you already expired this

RE: [PHP] shell_exec with pipes

2003-11-11 Thread Jay Blanchard
[snip] $var=shell_exec(/usr/local/bin/mplayer -identify -frames 0 /tmp/pitstop.mpeg 2/dev/null\| grep ID_LENGTH \| cut -d \=\ -f 2); [/snip] $var=shell_exec(/usr/local/bin/mplayer -identify -frames 0 /tmp/pitstop.mpeg 2/dev/null | grep ID_LENGTH | cut -d \=\ -f 2); Try just escaping the

Re: [PHP] help create community newbie guide to security

2003-11-11 Thread John W. Holmes
Lawrence Kennon wrote: For a BBS I would like to let users post links to various resources. They 'post' a message to the BBS via a form and that is stored in a MySQL db, then the content of their 'post' is available to other users on the BBS. Currently I strip out all PHP/HTML with the

[PHP] _GET arguments question

2003-11-11 Thread Duncan
Hi, just a quick question: I'm writing a script, where arguments get added to a dynamicaly created URL. The only problem is that if there are no arguments in the URL already I get the following: http://localhost/dir_to_my_script/test.php?arg1=1arg2=2 notice the ? bit. I'm just curious, since

RE: [PHP] Passing header info for use in downloading files...?

2003-11-11 Thread Chris Shiflett
--- Erik Osterman [EMAIL PROTECTED] wrote: Look's correct... you could consider adding Header(Content-transfer-encoding: binary); Because Content-transfer-encoding is not a valid HTTP header, this will have no effect. Content-Encoding and Transfer-Encoding are valid headers, but binary is

[PHP] configure hangs on pwrite

2003-11-11 Thread John Nichel
Hi, Trying to get php 4.3.4 to configure on a Fedora 1 box, and the configure script keeps hanging on checking whether pwrite works... I've tried it with and without mm support for sessions, but to no avail (it's checking for pwrite right after is does the session check). Can anyone lend a

Re: [PHP] _GET arguments question

2003-11-11 Thread Chris Shiflett
--- Duncan [EMAIL PROTECTED] wrote: The only problem is that if there are no arguments in the URL already I get the following: http://localhost/dir_to_my_script/test.php?arg1=1arg2=2 notice the ? bit. Rather than trying to see whether this might work on most browser, you should try to make

RE: [PHP] Passing header info for use in downloading files...?

2003-11-11 Thread Erik Osterman
Didn't know that it's RFC 1521 specific header and not valid in HTTP. =) Thanks, Erik Osterman http://osterman.com/ -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 9:21 AM To: Erik Osterman; [EMAIL PROTECTED]; [EMAIL PROTECTED]

Re: [PHP] help create community newbie guide to security

2003-11-11 Thread Lowell Allen
Lawrence Kennon wrote: For a BBS I would like to let users post links to various resources. They 'post' a message to the BBS via a form and that is stored in a MySQL db, then the content of their 'post' is available to other users on the BBS. Currently I strip out all PHP/HTML with the

[PHP] How to adpated a javascrip with php...

2003-11-11 Thread Payne
Hi, I have a Javascript that I like to use with PHP/MYSQL, But I don't know how to mix the two... SCRIPT LANGUAGE = JavaScript bName = navigator.appName; bVer = parseInt(navigator.appVersion); if ((bName == Netscape bVer = 3) || (bName == Microsoft Internet Explorer bVer = 4)) br

Re: [PHP] configure hangs on pwrite

2003-11-11 Thread John Nichel
John Nichel wrote: Hi, Trying to get php 4.3.4 to configure on a Fedora 1 box, and the configure script keeps hanging on checking whether pwrite works... I've tried it with and without mm support for sessions, but to no avail (it's checking for pwrite right after is does the session check).

Re: [PHP] \n and br

2003-11-11 Thread Marek Kilimajer
Brian V Bonini wrote: So just change it $string = nl2br($content-page_content); $string = eregi_replace(br /, br, $string); Why not directly str_replace(array(\r\n,\r,\n), 'br', $content-page_content); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Philadelphia PHP Users Group

2003-11-11 Thread Edward Dudlik
From all that I've gathered, the greater Philadelphia, PA, area is woefully lacking in a PHP Users Group. Last I checked, we were still one of the ten largest cities in the country, so to quote Chris Rock, That ain't right! I have already done some legwork, but before I dive too deeply into

Re: [PHP] \n and br

2003-11-11 Thread Brian V Bonini
On Tue, 2003-11-11 at 14:51, Marek Kilimajer wrote: Brian V Bonini wrote: So just change it $string = nl2br($content-page_content); $string = eregi_replace(br /, br, $string); Why not directly str_replace(array(\r\n,\r,\n), 'br', $content-page_content); You say tomato I

Re: [PHP] location= Construct Doc

2003-11-11 Thread Mark
--- Lee Stewart [EMAIL PROTECTED] wrote: It's version 4.0.3 Lee In v4.3.2, it throws a Parse error: parse error, unexpected '=' in /path/to/file/test.php on line 23. Chris Shiflett wrote: --- Lee Stewart [EMAIL PROTECTED] wrote: Here's a *working* section of code... Note the

[PHP] whois api's

2003-11-11 Thread Rolf Brusletto
Hey all - I'm currently working on a project which requires domain name information. Has anybody used, or can anybody suggest php tools to get whois information regarding any domain name? I'm trying to check out all options before having to register as a registrar for get access to a paid

RE: [PHP] How to adpated a javascrip with php...

2003-11-11 Thread Martin Towell
I have a Javascript that I like to use with PHP/MYSQL, But I don't know how to mix the two... SCRIPT LANGUAGE = JavaScript bName = navigator.appName; bVer = parseInt(navigator.appVersion); if ((bName == Netscape bVer = 3) || (bName == Microsoft Internet Explorer bVer

[PHP] Miami User Group

2003-11-11 Thread Cesar Cordovez
And talking about user groups, is anybody interested in creating a Miami/Fort Lauderdale/Palm Beaches PHP user group? Contact me, off the list please. Cesar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to adpated a javascrip with php...

2003-11-11 Thread Burhan Khalid
Payne wrote: Hi, I have a Javascript that I like to use with PHP/MYSQL, But I don't know how to mix the two... Here is an example. ?php /* do php stuff here, like set a value to $x */ $x = 3; ? script funtion x() { var foo = ?php echo $x; ?; alert(foo); } /script -- Burhan Khalid

Re: [PHP] location= Construct Doc

2003-11-11 Thread Eugene Lee
On Tue, Nov 11, 2003 at 01:46:33PM -0800, Mark wrote: : : --- Lee Stewart [EMAIL PROTECTED] wrote: : : Here's a *working* section of code... Note the :location = browse.php; : on line 23 : : In v4.3.2, it throws a Parse error: parse error, unexpected '=' in :

RE: [PHP] whois api's

2003-11-11 Thread Vail, Warren
I believe network solutions and all other sources of this kind of information have been tightening access to more than the IP address, because, it seems, some unscrupulous individuals have been using the information to spam domain owners. Since it appears that you are not a domain registrar, or

[PHP] Unique ID

2003-11-11 Thread Dimitri Marshall
Hi there, Here's my situation: I'm making a message board and I've decided the best way to go about the structure is to have 3 tables, two of them will be Posts and Replys. Now, in order for this ti work, each post has to have a UniqueID - same with the replys. Looking at another program, I can

Re: [PHP] Unique ID

2003-11-11 Thread Marek Kilimajer
Dimitri Marshall wrote: Hi there, Here's my situation: I'm making a message board and I've decided the best way to go about the structure is to have 3 tables, two of them will be Posts and Replys. Now, in order for this ti work, each post has to have a UniqueID - same with the replys. Looking at

RE: [PHP] Unique ID

2003-11-11 Thread Javier Muniz
auto_increment is not in the SQL standard, and not everyone uses MySQL. To be cross-compatible between databases use a Sequence: http://pear.php.net/manual/en/package.database.db.intro-sequences.php provides a brief introduction, the PEAR::DB class allows you to use sequences easily. Neither

[PHP] Time problem

2003-11-11 Thread Erin
Hi All, Sorry if this has been asked a 1000 times and if its easy to find in the php manual but i cant seam to solve this. How do i convert a timestamp in to a normal readable time date ie 2003155023 into 11th November 2003 @ 15:50:23 Many thanks, thought id ask someone is bound to

Re: [PHP] Unique ID

2003-11-11 Thread Boyan Nedkov
Dimitri Marshall wrote: Hi there, Here's my situation: I'm making a message board and I've decided the best way to go about the structure is to have 3 tables, two of them will be Posts and Replys. Now, in order for this ti work, each post has to have a UniqueID - same with the replys. Looking at

Re: [PHP] Unique ID

2003-11-11 Thread John W. Holmes
Marek Kilimajer wrote: Dimitri Marshall wrote: I'm making a message board and I've decided the best way to go about the structure is to have 3 tables, two of them will be Posts and Replys. Now, in order for this ti work, each post has to have a UniqueID - same with the replys. Looking at another

Re: [PHP] Time problem

2003-11-11 Thread Chris Shiflett
--- Erin [EMAIL PROTECTED] wrote: How do i convert a timestamp in to a normal readable time date ie 2003155023 into 11th November 2003 @ 15:50:23 That's not a timestamp, first of all. It looks to me like you just need to use substr() to parse out the elements however you want. You

RE: [PHP] Time problem

2003-11-11 Thread Vail, Warren
Not sure how others would tackle this, but I would use something like $readabledate = date(dS F Y @ H:i:s, strtotime(substr($timestamp,0,4).- .substr($timestamp,4,2).- .substr($timestamp,6,2).

[PHP] Re: whois api's

2003-11-11 Thread Al
There is a PEAR Project that does exactly what you want: http://pear.php.net/package/Net_Whois Al Rolf Brusletto [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hey all - I'm currently working on a project which requires domain name information. Has anybody used, or can anybody

[PHP] sorting files by date

2003-11-11 Thread Justin French
Hi, I have a dir of files saved in the following format: -MM-DD.mp4. I know how to get the file names into an array, but I don't know how to sort the array so that the files appear in date order. My guess was to use strtotime() to get the date into a timestamp, then sort on the

RE: [PHP] sorting files by date

2003-11-11 Thread Martin Towell
surely sort() would do the trick? Martin -Original Message- From: Justin French [mailto:[EMAIL PROTECTED] Sent: Wednesday, 12 November 2003 12:13 PM To: php Subject: [PHP] sorting files by date Hi, I have a dir of files saved in the following format: -MM-DD.mp4. I

Re: [PHP] Time problem

2003-11-11 Thread John W. Holmes
Erin wrote: Hi All, Sorry if this has been asked a 1000 times and if its easy to find in the php manual but i cant seam to solve this. How do i convert a timestamp in to a normal readable time date ie 2003155023 into 11th November 2003 @ 15:50:23 IFF the timestamp is coming from MySQL

Re: [PHP] sorting files by date

2003-11-11 Thread David T-G
Justin -- ...and then Justin French said... % % Hi, Hi! % % I have a dir of files saved in the following format: -MM-DD.mp4. I OK. So what are you filming? :-) % know how to get the file names into an array, but I don't know how to % sort the array so that the files appear in date

Re: [PHP] Miami User Group

2003-11-11 Thread David T-G
Hi, all -- [Yes, this is intended to be a new thread.] ...and then Cesar Cordovez said... % % And talking about user groups, is anybody interested in creating a % Miami/Fort Lauderdale/Palm Beaches PHP user group? Or US-GA-Atlanta :-) % % Contact me, off the list please. Same here.

[PHP] I meant 'PHP Atlanta user group'...

2003-11-11 Thread David T-G
Hi again -- ...and then David T-G said... % % [Yes, this is intended to be a new thread.] GRRR... It would help if I remembered to change the Subject: line, too. Anyway, I'd like to see more PHP in Atlanta. HAND :-D -- David T-G * There is too much animal courage in

[PHP] Execute Background Process

2003-11-11 Thread apur kurub ver.1
dear all i will execute background process like $program is there posible in php to process that statement? and return to php immediately; --- rgds [xm] http://ilkomerz36.blogspot.com http://geocities.com/amadarum -- PHP General Mailing List

[PHP] nusoap

2003-11-11 Thread Larry Brown
Does anyone here have any solid experience with nusoap? Their list has low volume and I am finding it difficult to find any useable examples or descriptions of real life uses and how to configure the server/client. In particular I'm currently trying to figure out the correct syntax to produce

[PHP] Pear

2003-11-11 Thread Gary
I have recently up graded to 4.3.4 and now my links to pear have quite working. I have tried replace pear with go-pear and it is not working. What am I doing wrong? Old ini_set('include_path', 'C:/php/pear/'); require_once 'PEAR.php'; require_once 'DB.php'; TIA Gary -- PHP General Mailing List

[PHP] Help with scripts to add records to a database

2003-11-11 Thread Mark
I am following the tutorial at http://www.freewebmasterhelp.com/tutorials/phpmysql/ The source code is on the website on the left hand side http://www.freewebmasterhelp.com/static/tutorials/phpmysql/example.zip My software: PHP version 4.3.4 on Windows 2000 MYSQL version 4.0.16 on Windows 2000

[PHP] Can sudo be used for apache

2003-11-11 Thread tirumal b
hello All, Can i use sudo to assign certain privileges for the apache account as the webserver is running on that account. Will it be possible. Thank you Tirumal __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard

RE: [PHP] Help with scripts to add records to a database

2003-11-11 Thread Mark
Sorry guys, I have tried all the suggestions so far with no luck. Regards, Mark try to include field name: $query = INSERT INTO contacts(first,$last,phone,mobile,fax,email,web) VALUES ('$first','$last','$phone','$mobile','$fax','$email','$web'); mysql_query($query);

Re: [PHP] Help with scripts to add records to a database

2003-11-11 Thread Rolf Brusletto
Mark wrote: Sorry guys, I have tried all the suggestions so far with no luck. Regards, Mark try to include field name: $query = INSERT INTO contacts(first,$last,phone,mobile,fax,email,web) VALUES ('$first','$last','$phone','$mobile','$fax','$email','$web'); mysql_query($query);

Re: [PHP] Help with scripts to add records to a database

2003-11-11 Thread zhuravlev alexander
On Tue, Nov 11, 2003 at 07:44:58PM -0800, Mark wrote: I am following the tutorial at http://www.freewebmasterhelp.com/tutorials/phpmysql/ The source code is on the website on the left hand side http://www.freewebmasterhelp.com/static/tutorials/phpmysql/example.zip My software: PHP