Re: [PHP-WIN] modifying a substring

2004-04-26 Thread Jason Barnett
William Candillon wrote: Use xml_parse_into_struct () : I was going to suggest preg_replace, but I kind of like xml_parse_into_struct(). But, won't they have a problem if there's no root tags wrapping the entire string? To show the code out the : ", $fp)== false) { ++$i $fp = fread($string

[PHP-WIN] Re: most latest file

2004-04-26 Thread Jason Barnett
Harpreet wrote: Actually I have a backups folder that gets once a day backups of the database automaticcaly. I want to be able to know the name fo the the latest file to do the restore. The name of the files have the time stamp and plus file has a time last mdified date attached to it. How can I k

[PHP-WIN] Re: PHP and Authentication

2004-04-26 Thread Jason Barnett
Kc2lto - Andrew Ragone wrote: Hello, one of the servers I am working on is being switched from UNIX to Windows. There is nothing I can do about this but I am wondering how to get the former USER_AUTH and such variables to work with IIS through a popup login window. I noticed that it still works wi

[PHP-WIN] Re: Re PEAR

2004-04-26 Thread Jason Barnett
Sudar wrote: Hai Janson Thanks for responding. The problem with me is that, right now I don't have access to the server. I have just got a virtual directory in which I have to upload my files and execute. And recently I PEAR files could be put under your document root, you don't *have* to have a

[PHP-WIN] Re: modifying a substring

2004-04-26 Thread Jason Barnett
John Yu wrote: Hi guys I want to do some fancy syntax highlighting so I added to my input text. Is there a way to take the entire input text, but only take the substring between those tags, do something to the substring and put it back into the original text? Thanks in advance John PHP

[PHP-WIN] Order By........

2004-04-26 Thread Will
Hello All, I have a question regarding the order by: Here is my code: $get_post = "select * from $table_name2 where cat_id = '$_POST[cat_id]' ORDER BY posted"; It is not taking the last post and putting it first. I think there is something else I have to put there but I cannot figure it out. Can

[PHP-WIN] PHP and Authentication

2004-04-26 Thread Kc2LTO - Andrew Ragone
Hello, one of the servers I am working on is being switched from UNIX to Windows. There is nothing I can do about this but I am wondering how to get the former USER_AUTH and such variables to work with IIS through a popup login window. I noticed that it still works with PhpMyAdmin. Thanks

RE: [PHP-WIN] using filemtime

2004-04-26 Thread William CANDILLON
If the code which execute the code is at c:\ : $dir = '/backups' -Message d'origine- De : Harpreet [mailto:[EMAIL PROTECTED] Envoyé : lundi 26 avril 2004 22:29 À : [EMAIL PROTECTED] Objet : [PHP-WIN] using filemtime The filemtime works for the following but the minute i use a server nam

[PHP-WIN] most latest file

2004-04-26 Thread Harpreet
Actually I have a backups folder that gets once a day backups of the database automaticcaly. I want to be able to know the name fo the the latest file to do the restore. The name of the files have the time stamp and plus file has a time last mdified date attached to it. How can I know which file g

[PHP-WIN] using filemtime

2004-04-26 Thread Harpreet
The filemtime works for the following but the minute i use a server name as my direcotry path it gives me an error Warning: filemtime(): Stat failed for \\servername\c (errno=2 - No such file or directory) in Like this works $dir='c:\backups'; echo date("m-d-y H:i:s",filemtime($dir)); if i change

RE: [PHP-WIN] modifying a substring

2004-04-26 Thread William CANDILLON
Or: ', $string); Echo ($text[0]); ?> -Message d'origine- De : William CANDILLON [mailto:[EMAIL PROTECTED] Envoyé : lundi 26 avril 2004 21:16 À : [EMAIL PROTECTED] Objet : RE: [PHP-WIN] modifying a substring Use xml_parse_into_struct () : To show the code out the : ", $fp)== false

RE: [PHP-WIN] modifying a substring

2004-04-26 Thread William CANDILLON
Use xml_parse_into_struct () : To show the code out the : ", $fp)== false) { ++$i $fp = fread($string, $i); } $txt = substr ($fp, -6); Echo ($txt); ?> -Message d'origine- De : John Yu [mailto:[EMAIL PROTECTED] Envoyé : lundi 26 avril 2004 18:44 À : [EMAIL PROTECTED] Objet : [PHP-WI

[PHP-WIN] Re PEAR

2004-04-26 Thread sudar
Hai Janson Thanks for responding. The problem with me is that, right now I don't have access to the server. I have just got a virtual directory in which I have to upload my files and execute. And recently I heard about PEAR and how it simplies the job, but I cannot explain this to my Sys Admin as

[PHP-WIN] modifying a substring

2004-04-26 Thread John Yu
Hi guys I want to do some fancy syntax highlighting so I added to my input text. Is there a way to take the entire input text, but only take the substring between those tags, do something to the substring and put it back into the original text? Thanks in advance John

[PHP-WIN] [Help] Setting the value of COM object's Attribute property

2004-04-26 Thread Steven Kidd
Hi, Any one who has experiences in setting the value of COM object's Attribute property please help... The COM runs well in ASP: <%asp 'The Attribute property specifies and retrieves name-value pairs. ' 'Syntax: ' 'Header.Attribute(bstrName) = String 'String = Header.Attribute(bstrName) ' 'Par