php-windows Digest 18 Mar 2001 07:44:15 -0000 Issue 497 Topics (messages 6114 through 6117): Re: How to use COM 6114 by: John Lim explode! 6115 by: Bacon Luvva Cookies In IE5.5 6116 by: Ben Cairns Re: php&win98 6117 by: Aleksey Filimonov Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
Visit http://php.weblogs.com/com_php for more info on COM with PHP. john "Thomas" <[EMAIL PROTECTED]> wrote in message 98omg2$2n4$[EMAIL PROTECTED]">news:98omg2$2n4$[EMAIL PROTECTED]... > Hi all again, > > i' am a very bloody greenhorne with php and maybe i have many questions. > Heres one another: > > Who can exlpain to use com in php. > How can i execute methods and read attributes? > I only know how i can craete an object: > > $object = new ("adodb.recordset") for exsample, is it not so? > But how can i get the attributes and execute the methods? > And why the Documentation speaks from com_load,com_invoke and so on. > No once of them are working. I only get the message: > > Call to undefined function.... and so on.. > > Thanks for Help, > > Thomas > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
I have a news database. One of the fields in the database is a field that describes the path to an image on the server. ie: ../images/imagefile.gif I have a script that deletes news stories from the database and this is where I am stuck. Everything works okay when deleting the story but when it comes to the deletion of the image file... no go. I have used the unlink function if ( ! ($delimage=unlink($imagefield))) { DisplayErrMsg(sprint("internal error %d:%s\n", mysql_errno(), mysql_error())); exit(); } The function fails with: Warning: Unlink failed (No such file or directory) in c:\Inetpub\wwwroot/news/admin/delete_news.php on line 24 internal error 0: I know that the info in the database is a URL (../images/imagefile.gif) and not an actual path. Is there a way to strip the url back to the image name and replace it with the path so the file can be removed?. I have explored the possibilities of the explode function and believe this is the function I need to use? (so far without much success!) Thus I have come to you fine folk for some help on how I might do this. Grateful for any pointers on this one, Regards, Karl.
How do I set a cookie in IE5, I cant do it, it just wont let me...I have looked at php.net and have tried the examples there, but they don't seem to work! HELP, Please!!!! -- Ben Cairns E-Mail: [EMAIL PROTECTED] Just Because It Works, Doesn't Mean It Isn't Broken
Well.... in version apache-1.3.19 this bug presence too.... "Tom Mathews" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Yep - Apache bug - upgrade it! > > Aleksey Filimonov wrote: > > > Hi all, > > > > I have some problems installing php-4.0.4pl1 on apache-1.3.14 on win98... > > The apache server is running fine before adding this line in httpd.conf: > > LoadModule php4_module c:/php/sapi/php4apache.dll > > After adding module apache crash with alert: > > This program has performed an illegal operation and will be shut down. > > details: > > APACHE caused an invalid page fault in > > module MSVCRT.DLL at 0177:7800d269. etc. > > > > Any ideas???? > > > > Aleks Filimonov > > ([EMAIL PROTECTED]) > >