RE: [PHP] Protecting database passwords
> argh. just make the file readable by root and the user that runs > apache/php and you're done. Which unfortunately is installation specific. I.e., if I am distributing a program and want to install a file which the user modifies to contain the passwords, I have to direct the user to manually update the permissions of that file to suit his site. > p.s. btw hashes will help you (keep the contents of the file secure > which is your ultimate goal is it not?). How can I use a password hash to log on to a database server (or for any other login for that matter)? -Bob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Protecting database passwords
> Hashing ... but i guess he wants to protected the password > needed to access the DB not a PW stored in the DB. Yes, this is what I am concerned about, access to the file by local users on the server. Hashes won't help me. -Bob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Thumbnail generation
Is there some common utilities recommended ? From: Rasmus Lerdorf <[EMAIL PROTECTED]> To: Centaur zeus <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: [PHP] Thumbnail generation Date: Sun, 22 Dec 2002 21:07:35 -0800 (PST) You are going to have to depend on something. If you don't want to use GD, you are going to need some external mechanism which will have to be available. -Rasmus On Mon, 23 Dec 2002, Centaur zeus wrote: > Hi all , > > i want to generate the thumbnail of an image but I want my php to be > portable. How can I generate thumbnail without depending on php host > configuration (like --with-gd) ? > > Thanks . > > Perseus > > > > _ > The new MSN 8: smart spam protection and 3 months FREE*. > http://join.msn.com/?page=features/junkmail&xAPID=42&PS=47575&PI=7324&DI=7474&SU= > http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_smartspamprotection_3mf > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Thumbnail generation
Hi all , i want to generate the thumbnail of an image but I want my php to be portable. How can I generate thumbnail without depending on php host configuration (like --with-gd) ? Thanks . Perseus _ The new MSN 8: smart spam protection and 3 months FREE*. http://join.msn.com/?page=features/junkmail&xAPID=42&PS=47575&PI=7324&DI=7474&SU= http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_smartspamprotection_3mf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Easy News Script
True but hehe I can't seem to do it witht he datetime thing. I'm not sure how am I going to insert the date and time into the mySQL database. - Original Message - From: Chris Anderson <[EMAIL PROTECTED]> To: Zeus <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, 13 April, 2001 1:27 AM Subject: Re: [PHP] Easy News Script > I prefer to write my own > - Original Message - > From: "Zeus" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, April 12, 2001 10:11 AM > Subject: [PHP] Easy News Script > > > I'm sure many of you heard of newsphp ? (the newspro-clone). > > Somehow I felt attached to it except that it doesn't use databases for its > file storing. > > Does anyone know a good similar script (easy to setup) that uses mySQL? > > > > > -- > PHP General 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] > > -- PHP General 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]
[PHP] Easy News Script
I'm sure many of you heard of newsphp ? (the newspro-clone). Somehow I felt attached to it except that it doesn't use databases for its file storing. Does anyone know a good similar script (easy to setup) that uses mySQL?
Re: [PHP] Are calling COM applications a trojan?
Honestly, I still don't get you. How can the client's Word not open if the script didn't make it open with COM. - Original Message - From: Hoover, Josh <[EMAIL PROTECTED]> To: 'Pierre-Yves Lemaire' <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, 11 April, 2001 10:31 PM Subject: RE: [PHP] Are calling COM applications a trojan? > >And, I read a book saying that you can open a word document on the client > >side and insert words in it. > > Are you sure this was done on the client side and not on the server side? > Here is a common example used to show a simple use of COM and PHP: > > $word=new COM("word.application") or die("Cannot start word for you"); > print "Loaded word version ($word->Version)\n"; > $word-visible =1 ; > $word->Documents->Add(); > $word->Selection->Typetext("Dit is een test"); > $word->Documents[1]->SaveAs("burb ofzo.doc"); > $word->Quit(); > > This does not work on the client. PHP is on the server side. COM is used > to access local objects, not remote ones. So, in the example, PHP is using > word on the server and opening a document and saving it on the server. This > has nothing to do with a client. The use of COM and PHP would mainly be for > PHP to access COM objects that a business has currently in other > applications. Many times it would be nice for PHP to utilize objects > already written, and in the Windows world right now those objects are > normally accessible via COM if they're accessible at all. > > Josh Hoover > KnowledgeStorm, Inc. > [EMAIL PROTECTED] > > Searching for a new IT solution for your company? Need to improve your > product marketing? > Visit KnowledgeStorm at www.knowledgestorm.com to learn how we can simplify > the process for you. > KnowledgeStorm - Your IT Search Starts Here > -- PHP General 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]
Re: [PHP] Are calling COM applications a trojan?
download dialog? what will be in that dialog box? And, I read a book saying that you can open a word document on the client side and insert words in it. - Original Message - From: Pierre-Yves Lemaire <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, 11 April, 2001 3:54 PM Subject: Re: [PHP] Are calling COM applications a trojan? > > It can't. > If you put the appropriate header type (ms-word in this case), IE will open > word. Netscape > and other browser will open a download dialog box of the document. > > py > > > At 04:57 PM 4/11/01 +0800, you wrote: > >Then, how can it open a words document on the client side? > > > >- Original Message - > >From: Delbono <[EMAIL PROTECTED]> > >To: Zeus <[EMAIL PROTECTED]> > >Sent: Wednesday, 11 April, 2001 4:32 PM > >Subject: Re: [PHP] Are calling COM applications a trojan? > > > > > > > Com Apps, are not called on a client side. > > > Actually, if you print out the version of the com application, it displays > > > the version of the software installed on the server, not the one on the > > > client. > > > > > > If I have Word2000 on m local PC and on the server I have Word97, > > > > > > a script taht prints App.Version, will print MSWord97. > > > > > > > > > Sent: Wednesday, April 11, 2001 10:26 AM > > > Subject: [PHP] Are calling COM applications a trojan? > > > > > > > > > I'm sure many of you seasoned developers have used COM before (not > >necessary > > > with PHP) but if PHP is a server-side language, how can it call a program > >on > > > the client to open. Isn't it as deadly as a hacker opening your computer? > > > > > > Lets see some sides :) > > > > > > -- > > > David Chua aka. Zeus > > > Founder, Frozened.com > > > -- > > > > > > > > > > > > > > >-- > >PHP General 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] > > > + == > + Pierre-Yves Lem@ire > + E-MedHosting.com > + (514) 729-8100 > + [EMAIL PROTECTED] > + == > > > -- > PHP General 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] > -- PHP General 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]
Re: [PHP] Mail Function
Check your SMTP settings. Its not a PHP problem anymore :) See if the mail that its sending is your email address and if the Sendmail\SMTP is properly configured. - Original Message - From: RealGM <[EMAIL PROTECTED]> To: Zeus <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, 11 April, 2001 5:40 PM Subject: Re: [PHP] Mail Function > Thanks for the reply... > > It comes back mail sent, but nothing is actually arriving.. > > - Original Message - > From: Zeus <[EMAIL PROTECTED]> > To: RealGM <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Wednesday, April 11, 2001 7:29 PM > Subject: Re: [PHP] Mail Function > > > > Try adding a > > > > if (!mail(blah blah, balh blah )) { > > echo "Mail not sent"; > > } > > > > if (mail(blah bal.)) { > > echo "Mail sent"; > > } > > > > Try these and subsitute what ever is in the mail() with your relevant > > information. > > > > - Original Message - > > From: RealGM <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Wednesday, 11 April, 2001 5:16 PM > > Subject: [PHP] Mail Function > > > > > > > > Hi, > > > > Tonight was my first attempt at using the mail() function, and running the > > script I had no problems with execution. Everything seemed to go > smoothly, > > except for one thing. I never received an email. > > > > I have consulted the manual and found nothing on the questions I am about > to > > ask. Is there any way of confirming whether an email was actually sent, > or > > if there like a log file I can check? The server is running php4 via > apache > > on a linux machine. > > > > Any help would be appeciated, as I have no idea what could (or could not) > be > > happening. > > > > Thank you, > > Michael. > > > > > > > -- PHP General 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]
Re: [PHP] Mail Function
Try adding a if (!mail(blah blah, balh blah )) { echo "Mail not sent"; } if (mail(blah bal.)) { echo "Mail sent"; } Try these and subsitute what ever is in the mail() with your relevant information. - Original Message - From: RealGM <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, 11 April, 2001 5:16 PM Subject: [PHP] Mail Function Hi, Tonight was my first attempt at using the mail() function, and running the script I had no problems with execution. Everything seemed to go smoothly, except for one thing. I never received an email. I have consulted the manual and found nothing on the questions I am about to ask. Is there any way of confirming whether an email was actually sent, or if there like a log file I can check? The server is running php4 via apache on a linux machine. Any help would be appeciated, as I have no idea what could (or could not) be happening. Thank you, Michael. -- PHP General 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]
Re: [PHP] Are calling COM applications a trojan?
Then, how can it open a words document on the client side? - Original Message - From: Delbono <[EMAIL PROTECTED]> To: Zeus <[EMAIL PROTECTED]> Sent: Wednesday, 11 April, 2001 4:32 PM Subject: Re: [PHP] Are calling COM applications a trojan? > Com Apps, are not called on a client side. > Actually, if you print out the version of the com application, it displays > the version of the software installed on the server, not the one on the > client. > > If I have Word2000 on m local PC and on the server I have Word97, > > a script taht prints App.Version, will print MSWord97. > > > Sent: Wednesday, April 11, 2001 10:26 AM > Subject: [PHP] Are calling COM applications a trojan? > > > I'm sure many of you seasoned developers have used COM before (not necessary > with PHP) but if PHP is a server-side language, how can it call a program on > the client to open. Isn't it as deadly as a hacker opening your computer? > > Lets see some sides :) > > -- > David Chua aka. Zeus > Founder, Frozened.com > -- > > > -- PHP General 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]
[PHP] Are calling COM applications a trojan?
I'm sure many of you seasoned developers have used COM before (not necessary with PHP) but if PHP is a server-side language, how can it call a program on the client to open. Isn't it as deadly as a hacker opening your computer? Lets see some sides :) -- David Chua aka. Zeus Founder, Frozened.com --
Re: [PHP] Inserting time + date entry into mySQL DB
I want it such that when a user reads the news, he sees something like --- Saturday 25th March 2001 New mirror up on PHP - posted by Zeus @ 00:00 GMT +8 news news news news news news news news news news news news news --- That sort of thing, how can I go about? - Original Message - From: elias <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, 11 April, 2001 7:23 AM Subject: Re: [PHP] Inserting time + date entry into mySQL DB > No under windows doesn't work. > you have to enter a value in that field with value NOW() > > -elias > http://www.kameelah.org/eassoft > > "Michael Hall" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > > > > Create a field in your table called something like 'date' and make its > > data type TIMESTAMP. MySQL will automatically add a timestamp with each > > new entry ... assuming you're using UNIX, I don't know about windows. > > > > Mick > > > > > I know this has been brought up repeatedly but I couldn't find the > archives website. > > > I'm doing a news publishing script (something like newsphp \ php-nuke) > but uses mySQL to store all the data instead of flat files. > > > I would like to make it such that everytime I submit an news entry, the > time\date will automatically be inserted in that row. > > > Could someone give me some suggestions? > > > > > > -- > > PHP General 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] > > > > > > -- > PHP General 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] > -- PHP General 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]
Re: [PHP] php site down?
If you want to view it now, you can try going to http://php.intermedia.com.sg - Its a mirror. - Original Message - From: Nick Davies <[EMAIL PROTECTED]> To: Michael Hall <[EMAIL PROTECTED]> Cc: PHP List <[EMAIL PROTECTED]> Sent: Tuesday, 10 April, 2001 6:46 PM Subject: Re: [PHP] php site down? > > There seems to be some routing problem at ALTER.NET (from the uk anyway). > > Nick. > > On Tue, 10 Apr 2001, Michael Hall wrote: > > > I've been trying to get to the annotated manual all afternoon but can't > > get through to www.php.net. Anyone else have the same problem? > > > > Mick > > > > > > > > > -- > PHP General 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] > -- PHP General 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]
[PHP] Inserting time + date entry into mySQL DB
Hi, I know this has been brought up repeatedly but I couldn't find the archives website. I'm doing a news publishing script (something like newsphp \ php-nuke) but uses mySQL to store all the data instead of flat files. I would like to make it such that everytime I submit an news entry, the time\date will automatically be inserted in that row. Could someone give me some suggestions? - David Chua aka. Zeus -
Re: [PHP] while loop
That was detailed :) Thanks Jack, it fixed my misconception of the = and == operators. BUT ... > mysql_fetch_array keeps track of where it is in the array. > after each while loop it moves a 'step ahead' in the result the mysql_fetch_array fetches the results in an array but should it be an one time affair ? -- PHP General 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]
Re: [PHP] while loop
Isn't the '=' operator suppose to be used for assigning and not for evaluation. I thought '==' should be used in this context? Zeus - Original Message - From: David Robley <[EMAIL PROTECTED]> To: Zeus <[EMAIL PROTECTED]>; Michael Hall <[EMAIL PROTECTED]>; Jacky <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, 10 April, 2001 1:53 PM Subject: Re: [PHP] while loop > On Tue, 10 Apr 2001 15:16, Zeus wrote: > > > $query = mysql_query("some SQL here"); > > > while ($row = mysql_fetch_array($query)) { > > > do stuff; > > > } > > > > Isn't this suppose to be an infinite loop? > > > > while ($row is assigned to mysql_fetch_array($query)) { > > do stuffs; > > } > > > > someone correct me if I'm wrong? > > > > Zeus > > Consider yourself corrected :-) mysql_fetch-array returns an array > corresponding to the fetched row, or _false if there are no more rows_ > > So as soon as there are no more rows, $row = mysql_fetch_array($query) > evaluates to false and the while exits. > > -- > David Robley| WEBMASTER & Mail List Admin > RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ > AusEinet| http://auseinet.flinders.edu.au/ > Flinders University, ADELAIDE, SOUTH AUSTRALIA -- PHP General 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]
Re: [PHP] while loop
> $query = mysql_query("some SQL here"); > while ($row = mysql_fetch_array($query)) { > do stuff; > } Isn't this suppose to be an infinite loop? while ($row is assigned to mysql_fetch_array($query)) { do stuffs; } someone correct me if I'm wrong? Zeus -- PHP General 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]
Re: [PHP] where might I find a good php page
PHP.NET :) where have you been hiding - Original Message - From: Engström <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, 08 April, 2001 11:12 PM Subject: [PHP] where might I find a good php page I'd really like to learn PHP but where ? I know some basic perl but havent lookt that deep in PHP yet. any leads ?? =) sincerly // Ken -- PHP General 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]
Re: [PHP] "YourName.BEST321.com" FREE §K¶O°ì¦W !!!!!
I somehow got a feeling, someone is purposely, selling the php-general list to some spam companies ;P - Original Message - From: Water <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 05, 2001 6:12 PM Subject: [PHP] "YourName.BEST321.com" FREE §K¶O°ì¦W ! > Dear Webmaster, > Does your homepage address look long and difficult to remember like this: http://www.myhomepage.com/entertainment/w/love/index.html? > Wouldn't you like it better if it was like http://YOURNAME.best321.com > In that case, Cool168 has the solution for you, and the best thing about it all is that it's totally free! > JOIN IT NOW!!! > http://best321.com/forward/script.pl?do=step1 > > §Ú̱À¥Xªº§K¶O°ì¦W¡A¬°±z´£¨ÑYourSiteName.BEST321.comªºÂà¦V°ì¦W¡A¨Ï±zªº¯¸ÂI§ó ®e©ö³Q¤H°O¦í¡A¦}¥i¬°±z«Ø¥ß¤@©wªºÊI¯¸«~µP¡A¹ï±zªº¯¸ÂIªºµo®i¤j¦³À°§U¡C§Ú̪º§K ¶O¤¤Âà°ì¦W¹ï±zªºÊI¯¸ªº¤º®e¤£°µ¯S§O¨î¡F§Ú̱o¨ì®ü¥~°Ó·~¶°¹Îªº¤ä«ù¡A¨Ï¥Î°ª³t ªºªA°È¾¹¡Aéw©Ê¦n¡F§Ú̪º°ì¦Wµn°Oקﳣ«D±`¤è«K¡A¦b¤L¤ÀÄÁ¤º´N¥i±o¨ìÄݤ_±z¦Û ¤vªºÂà¦V°ì¦W¡CBEST321.com§K¶O°ì¦W¡A¦b¦PÃþªA°È¤¤µ´¹ï¬O±zªºº¿ï¡I > JOIN NOW! > http://best321.com/forward/script.pl?do=step1 > > Yours, > Water > > > > - > To be removed from this mailing list > click on the link below > http://www.best321.com/mail/mail.cgi?[EMAIL PROTECTED] > > > > -- > PHP General 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] > -- PHP General 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]