Re: [PHP] Mixing PHP code with phplib templates... possible?
Hello derek, Tuesday, February 06, 2001, 2:28:23 AM, you wrote: df> Hi, df> Is there a way to embed PHP code in phplib's template files? No. df> I need df> to run all hyperlinks through a function in order to maintain state df> and pass other variables from script to script. I figure this must df> be possible, but I'm new at using phplib, so I'm not all that clear df> on it... Set the links as template variables and then substitute them with values using Template's set_var(). -- Best regards, Max A. Derkachev mailto:[EMAIL PROTECTED] Symbol-Plus Publishing Ltd. phone: +7 (812) 324-53-53 http://www.Books.Ru -- All Books of Russia -- 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-CVS] cvs: php4 /ext/standard mail.c php_mail.h
On Mon, 5 Feb 2001, Sterling Hughes wrote: > > @- Added a new parameter to mail() which appends aditional command line > > @ parameters to the mail program. (Derick) > > This won't be portable, on windows it uses raw smtp code... I know this... it should probably be noted in the docs. > Are you sure we should be adding that option to the mail() command? If the > user really needs the advanced features provided by sendmail, they can > easily use popen() to achieve this... I think the -f option to sendmail is not advanced, and that because that without this -f option, all mail seems to come from nobody@localhost, this clutters up the logs, and no stats can be gegenerated about the usage of the scripts that send mail. The popen is possible too of course, but I think it's not that easy to do for almost not experienced users. To lower the bar for these users (and for making the transistion easier) I think this functionality is justified to be included in the CVS tree. For security, I thought about makeing the fifth parameter only be used for the -f option only, but this would be troublesome for other mailers probably. However, I really think that restricting it to the -f option is better. Derick Rethans - PHP: Scripting the Web - www.php.net - [EMAIL PROTECTED] - JDI Media Solutions - www.jdimedia.nl - [EMAIL PROTECTED] H.v. Tussenbroekstraat 1 - 6952 BL Dieren - The Netherlands - -- PHP CVS 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-CVS] cvs: php4 /ext/standard mail.c php_mail.h
Derick Rethans wrote: > > On Mon, 5 Feb 2001, Sterling Hughes wrote: > > > > @- Added a new parameter to mail() which appends aditional command line > > > @ parameters to the mail program. (Derick) > > > > This won't be portable, on windows it uses raw smtp code... > > I know this... it should probably be noted in the docs. > > > Are you sure we should be adding that option to the mail() command? If the > > user really needs the advanced features provided by sendmail, they can > > easily use popen() to achieve this... > > I think the -f option to sendmail is not advanced, and that because that > without this -f option, all mail seems to come from nobody@localhost, this > clutters up the logs, and no stats can be gegenerated about the usage of > the scripts that send mail. > Set the additional headers (FROM:), it seems to work for me. In perl, most people will open up a pipe to sendmail and set the from header, its been working there to... If this doesn't work, its a bug and should be fixed. > The popen is possible too of course, but I think it's not that easy to do > for almost not experienced users. To lower the bar for these users (and > for making the transistion easier) I think this functionality is justified > to be included in the CVS tree. > If you know about the -f sendmail option, then you pretty much know how to use sendmail. Opening a pipe to an external program is pretty basic. > For security, I thought about makeing the fifth parameter only be > used for the -f option only, but this would be troublesome for other > mailers probably. However, I really think that restricting it to the -f > option is better. Why have it then, just properly set the from: header and it *should* work. I really don't like the current solution because its only specific to one system, and can be done differently... -Sterling -- PHP CVS 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] Re: [PHP-WIN] COM and PHP
Look at this example : http://www.phpbuilder.com/columns/alain20001003.php3?page=3 I think you forgot to activate the workbook, then to select the sheet and then to activate the sheet before writing into the cell ! Yoann. - Original Message - From: Conover, Ryan <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, February 05, 2001 9:03 PM Subject: [PHP-WIN] COM and PHP > I have been trying the following example from the PHP developer's cookbook > and it keeps giving me the following error. > > Parse error: parse error in c:\Inetpub\wwwroot/temp.php on line 4 > $excel_handle = new COM("excel.application"); file://line2 > $excel_handle->Visible = false; file://line3 > $worksheet->Cells(1,1)->value = "Name"; file://line4 > $worksheet->SaveAs("temp.xls"); file://line5 > $excel_handle->quit(); file://line6 > file://line7 > ?> file://line8 > > Anyone that has Com and PHP experience help please > > Ryan > > > > -- > 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] > > -- 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-CVS] cvs: php4 /ext/standard mail.c php_mail.h
On Tue, 6 Feb 2001, sterling hughes wrote: > Derick Rethans wrote: > > > > I know this... it should probably be noted in the docs. > > > > > Are you sure we should be adding that option to the mail() command? If the > > > user really needs the advanced features provided by sendmail, they can > > > easily use popen() to achieve this... > > > > I think the -f option to sendmail is not advanced, and that because that > > without this -f option, all mail seems to come from nobody@localhost, this > > clutters up the logs, and no stats can be gegenerated about the usage of > > the scripts that send mail. > > > > Set the additional headers (FROM:), it seems to work for me. If you look clearly it sets the From: header correctly, but not the ReturnPath header, and in the logs there still will be nobody@localhost. > > In perl, most people will open up a pipe to sendmail and set the from > header, its been working there to... The learning curve for perl is much steeper than the one for PHP :) and I suppose it doesn't work from Perl either. (I'm not talking about the From: header, but about the ReturnPath and log messages. The reason why I made this patch is that when some user fills in a false e-mail adres into a form which then tries to mail something back to the e-mail adres entered, the maillog will become full of things and the sysadm gets shitloads of warnings :) > > If this doesn't work, its a bug and should be fixed. > > > The popen is possible too of course, but I think it's not that easy to do > > for almost not experienced users. To lower the bar for these users (and > > for making the transistion easier) I think this functionality is justified > > to be included in the CVS tree. > > > > If you know about the -f sendmail option, then you pretty much know how > to use sendmail. Opening a pipe to an external program is pretty basic. Therefore I would recommend the fifth parameter only to be used for the -f parameter only. > > > For security, I thought about makeing the fifth parameter only be > > used for the -f option only, but this would be troublesome for other > > mailers probably. However, I really think that restricting it to the -f > > option is better. > > Why have it then, just properly set the from: header and it *should* > work. I really don't like the current solution because its only > specific to one system, and can be done differently... You're right about the problem occurring with other mail servers. I think it's also possible to make an ini entry for the name of the parameter, as opposed to code it hard into the source. Derick -- PHP CVS 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-CVS] cvs: php4 /ext/standard mail.c php_mail.h
Derick Rethans wrote: > > On Tue, 6 Feb 2001, sterling hughes wrote: > > > Derick Rethans wrote: > > > > > > I know this... it should probably be noted in the docs. > > > > > > > Are you sure we should be adding that option to the mail() command? If the > > > > user really needs the advanced features provided by sendmail, they can > > > > easily use popen() to achieve this... > > > > > > I think the -f option to sendmail is not advanced, and that because that > > > without this -f option, all mail seems to come from nobody@localhost, this > > > clutters up the logs, and no stats can be gegenerated about the usage of > > > the scripts that send mail. > > > > > > > Set the additional headers (FROM:), it seems to work for me. > > If you look clearly it sets the From: header correctly, but not the > ReturnPath header, and in the logs there still will be nobody@localhost. > > > > > In perl, most people will open up a pipe to sendmail and set the from > > header, its been working there to... > > The learning curve for perl is much steeper than the one for PHP :) and I > suppose it doesn't work from Perl either. (I'm not talking about the From: > header, but about the ReturnPath and log messages. > Well in perl you simply open up a pipe, so you can do more in perl than you can in PHP with the mail() command. > The reason why I made this patch is that when some user fills in a > false e-mail adres into a form which then tries to mail something back to > the e-mail adres entered, the maillog will become full of things and the > sysadm gets shitloads of warnings :) > > > > > If this doesn't work, its a bug and should be fixed. > > > > > The popen is possible too of course, but I think it's not that easy to do > > > for almost not experienced users. To lower the bar for these users (and > > > for making the transistion easier) I think this functionality is justified > > > to be included in the CVS tree. > > > > > > > If you know about the -f sendmail option, then you pretty much know how > > to use sendmail. Opening a pipe to an external program is pretty basic. > > Therefore I would recommend the fifth parameter only to be used for the -f > parameter only. > > > > > > For security, I thought about makeing the fifth parameter only be > > > used for the -f option only, but this would be troublesome for other > > > mailers probably. However, I really think that restricting it to the -f > > > option is better. > > > > Why have it then, just properly set the from: header and it *should* > > work. I really don't like the current solution because its only > > specific to one system, and can be done differently... > > You're right about the problem occurring with other mail servers. I think > it's also possible to make an ini entry for the name of the parameter, as > opposed to code it hard into the source. > Not only that, but why not just provide a special header so that we can provide this functionality transparently on all systems, or, if its just sendmail that has problems with it, detect whether or not we are using sendmail (which we do on all *nix and BSD systems, if I'm not mistaken), if so, replace the header with the -f command to sendmail. _Sterling -- PHP CVS 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] 20 Million Fresh E-mail Addresses
TO BE REMOVED FROM FUTURE MAILINGS, SIMPLY REPLY TO THIS MESSAGE AND PUT "REMOVE" IN THE SUBJECT. 20 MILLION E-MAIL ADDRESSES FOR ONLY $249 **Over Night International Shipping Included** Many Call This "The "Perfect E-Mail List" Over 20-Million Of The Best E-Mail Addresses Available _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ Our research has found that many people have tried one or more of the following... Free Classifieds? (Don't work anymore) Web Site? (Takes thousands of visitors) Banners? (Expensive and losing their punch) E-Zine? (Hope they have a *huge* subscriber list) Search Engines? (Forget it, unless you're in the top 20) S O W H A T W I L L W O R K ? Although often misunderstood, there is one method that has proven to succeed time-after-time. E - M A I L M A R K E T I N G ! ! IT'S A FACT... If you're not using your computer to generate income, GOOD income, you're leaving money on the table. Here's what the experts have to say about E-Mail Marketing: "E-mail is an incredible lead generation tool" -Crains Magazine "A gold mine for those who can take advantage of bulk e-mail programs" - The New York Times "Blows away traditional Mailing" - Advertising Age Here's an example of your potential earnings if you have a product or service that brings you a profit of around $30. Remember, on the Internet, you can make money 7 days a week, 24 hours a day... even while you sleep, orders come from all over the world! Orders Per DayWeekly Monthly Yearly 1 $ 210 $ 840 $ 10,080 2 4201,68020,160 3 6302,52030,240 51,0504,20050,400 102,1008,400 100,000 153,150 12,600 151,200 THE QUESTION IS... how do you generate those orders? The least expensive and fastest way is through E-Mail Marketing. You want to make some money? I can put you in touch with over 20 million people at virtually no cost. Can you make one cent from each of theses names? If you can you have a profit of over $200,000.00 That's right, I have over 20 Million Fresh email addresses that I will sell for only $249. These are all fresh addresses that include almost every English person on the Internet today, with no duplications. They are all sorted and ready to be mailed. That is the best deal anywhere today! Don't believe it? People are making that kind of money right now by doing the same thing, that is why you get so much email from people selling you their productit works! These 20 Million email addresses are yours to keep, so you can use them over and over. This offer is not for everyone. If you can not see just how excellent the risk / reward ratio in this offer is then there is nothing I can do for you. To make money you must stop dreaming and TAKE ACTION. Over the past 2 years, we have gained a reputation for having the cleanest, most responsive e-mail address lists in the industry. No one has gone to the work it takes to produce an e-mail address list of this quality. Here's how we prepare our e-mail lists: 1. We clean and eliminate all duplicates. 2. Next, we use a filter list of 400+ words/phrases to clean even more. No address with inappropriate or profane wording survives! 3. Then we use our private database of thousands of known Internet "extremists", those opposed to any kind of commercial e-mail, and kicked off every one we could find. 4. All domains were verified to insure they're valid. 5. And finally, we sorted the list into easy-to-manage packets of 20,000 addresses in simple text (.txt) format that will work with any computer operating system. ** It is time to order! Shipping is not an issue. **FedEx next day world wide shipping included As soon as we receive payment we will FedEx your e-mail list via CD straight to your door anywhere in the world FedEx next day guaranteed. **International Orders Welcome* US funds paid via paypal.com welcomed PayPal is now available in the following countries: Australia Austria Belgium Brazil Canada Denmark France Germany Hong Kong Ireland Israel Italy Japan Mexico Netherlands New Zealand Norway Portugal Singapore South Africa South Korea Spain Sweden Switzerland United Kingdom PayPal.com is very easy to sign up to. They accept wire transfers, checks and credit cards from any of the countries listed above. This payment process is in your own interest of safety. Paypal.com processes all transactions and keeps all your personal information secret. After signing up please send the U.S. equivalent of $249 to [EMAIL PROTECTED] last name Smith. If there is another way you would like to pay please e-mail me at [EMAIL PROTECTED] and I will get back to you. ***Wond
[PHP-I18N] 20 Million Fresh E-mail Addresses
TO BE REMOVED FROM FUTURE MAILINGS, SIMPLY REPLY TO THIS MESSAGE AND PUT "REMOVE" IN THE SUBJECT. 20 MILLION E-MAIL ADDRESSES FOR ONLY $249 **Over Night International Shipping Included** Many Call This "The "Perfect E-Mail List" Over 20-Million Of The Best E-Mail Addresses Available _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ Our research has found that many people have tried one or more of the following... Free Classifieds? (Don't work anymore) Web Site? (Takes thousands of visitors) Banners? (Expensive and losing their punch) E-Zine? (Hope they have a *huge* subscriber list) Search Engines? (Forget it, unless you're in the top 20) S O W H A T W I L L W O R K ? Although often misunderstood, there is one method that has proven to succeed time-after-time. E - M A I L M A R K E T I N G ! ! IT'S A FACT... If you're not using your computer to generate income, GOOD income, you're leaving money on the table. Here's what the experts have to say about E-Mail Marketing: "E-mail is an incredible lead generation tool" -Crains Magazine "A gold mine for those who can take advantage of bulk e-mail programs" - The New York Times "Blows away traditional Mailing" - Advertising Age Here's an example of your potential earnings if you have a product or service that brings you a profit of around $30. Remember, on the Internet, you can make money 7 days a week, 24 hours a day... even while you sleep, orders come from all over the world! Orders Per DayWeekly Monthly Yearly 1 $ 210 $ 840 $ 10,080 2 4201,68020,160 3 6302,52030,240 51,0504,20050,400 102,1008,400 100,000 153,150 12,600 151,200 THE QUESTION IS... how do you generate those orders? The least expensive and fastest way is through E-Mail Marketing. You want to make some money? I can put you in touch with over 20 million people at virtually no cost. Can you make one cent from each of theses names? If you can you have a profit of over $200,000.00 That's right, I have over 20 Million Fresh email addresses that I will sell for only $249. These are all fresh addresses that include almost every English person on the Internet today, with no duplications. They are all sorted and ready to be mailed. That is the best deal anywhere today! Don't believe it? People are making that kind of money right now by doing the same thing, that is why you get so much email from people selling you their productit works! These 20 Million email addresses are yours to keep, so you can use them over and over. This offer is not for everyone. If you can not see just how excellent the risk / reward ratio in this offer is then there is nothing I can do for you. To make money you must stop dreaming and TAKE ACTION. Over the past 2 years, we have gained a reputation for having the cleanest, most responsive e-mail address lists in the industry. No one has gone to the work it takes to produce an e-mail address list of this quality. Here's how we prepare our e-mail lists: 1. We clean and eliminate all duplicates. 2. Next, we use a filter list of 400+ words/phrases to clean even more. No address with inappropriate or profane wording survives! 3. Then we use our private database of thousands of known Internet "extremists", those opposed to any kind of commercial e-mail, and kicked off every one we could find. 4. All domains were verified to insure they're valid. 5. And finally, we sorted the list into easy-to-manage packets of 20,000 addresses in simple text (.txt) format that will work with any computer operating system. ** It is time to order! Shipping is not an issue. **FedEx next day world wide shipping included As soon as we receive payment we will FedEx your e-mail list via CD straight to your door anywhere in the world FedEx next day guaranteed. **International Orders Welcome* US funds paid via paypal.com welcomed PayPal is now available in the following countries: Australia Austria Belgium Brazil Canada Denmark France Germany Hong Kong Ireland Israel Italy Japan Mexico Netherlands New Zealand Norway Portugal Singapore South Africa South Korea Spain Sweden Switzerland United Kingdom PayPal.com is very easy to sign up to. They accept wire transfers, checks and credit cards from any of the countries listed above. This payment process is in your own interest of safety. Paypal.com processes all transactions and keeps all your personal information secret. After signing up please send the U.S. equivalent of $249 to [EMAIL PROTECTED] last name Smith. If there is another way you would like to pay please e-mail me at [EMAIL PROTECTED] and I will get back to you. ***Wond
Re: [PHP] I wish: IIS and ISAPI $PHP_AUTH_USER
>I tried for days to get IIS to authorize a user with $PHP_AUTH_USER and never got anywhere, so I used apache and it works fine. >I wish I just knew why. I loaded PHP as ISAPI, like the manual indicated, but no luck. As well as mapping the .php file extension onto the php4isapi.dll, have you also installed PHP as an ISAPI filter? I'm pretty sure that it is the filter bit that enables php to pick up the authentication details. Cheers -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org -- 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: Re: [PHP] Pricing for PHP programming???
On Thu, Feb 01, 2001 at 12:52:21PM +1100, Josh G wrote: > I hear you. Another thing that's hard to find, is somebody who is a > good programmer, and a good graphic designer. I don't really know > any, apart from myself, and I've been just shy of being called a lying > scumbag by a few HR companies over the years when they look at > my resume ;-) > > This thread has really fired up my desire to go the states US$80 > an hour for php dmn, that's a shitload more than I > make here, which is more like US$20/hr Hmm. I get about $250 a month! And I don't think that I'm bad programmer... But this is Poland - Another World :( -- Piotr Duszynski http://www.softomat.com.pl http://filmomat.3miasto.pl http://www.3miasto.pl -- 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] FW: [PHP-INST] RE: strange Compiling Errors / PHP4.0.4pl1
The problem is solved! My system searched the .h-files in /usr/include/linux/ and i found them all in /usr/src/linux-2.2.16/include/linux/, just copied them and it worked :-))) Thank you all for the support! -Original Message- From: Thomas Weber [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 6:07 PM To: Php-Install; John Hinsley Subject: [PHP-INST] RE: strange Compiling Errors / PHP4.0.4pl1 The inluded version is PHP4.0.0, but i need an alternative configured 4.0.3 or 4.0.4 with support for shared memory functions. :-( -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of John Hinsley Sent: Monday, February 05, 2001 5:59 PM To: Thomas Weber Subject: Re:strange Compiling Errors / PHP4.0.4pl1 Hi Thomas: I'm not sure which version of php was included with SuSE 7.0. But I'd be inclined to simply use Yast to install it. -- ** Marx: "Why do Anarchists only drink herbal tea?" Proudhon: "Because all proper tea is theft." ** -- PHP Install 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] Re: [PHP-INST] Installation of PHP and Apache in RedHat 7.0
On Mon, 5 Feb 2001, Geordon VanTassle wrote: > First, try "locate apachectl" to find where apachectl is. > > Then, do "/etc/rc.d/httpd stop;/etc/rc.d/httpd start" > > Then try to read that phpinfo file. > > HTH, > Geordon That is exactly the problem. RedHat 7.0 doesn't include program called 'apachectl' or otherwise I am just not able to find it. If you have RedHat7.0 and in your computer 'apachectl' operates just fine, please tell me where it is located at? I thought that 'httpd start' would do the same! By the way, do you know in which directory PHP files should be moved in RedHat 7.0? Regards, Sami - Sami Maisniemi tel:+358 9 4580 854 Helsinki University of Technologymobile: +358 40 7499 088 Department of Electrical and email: [EMAIL PROTECTED] Communication Engineering [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] Re:Installation of PHP and Apache in RedHat 7.0
On Mon, 5 Feb 2001, John Hinsley wrote: > you need to put the php scripts (as something.php) in your doc root > (probably /usr/local/httpd/htdocs) and call them by > http://localhost/something.php. That is also quite weird, but I am not able to locate directory '/usr/local/httpd/htdocs'. Actually there is no directory called 'htdocs' at all in my computer. It seems that RedHat 7.0 uses a little bit different method. > If this doesn't work, take a peek at your Apache documentation and check > out your /etc/httpd/httpd.conf file. Good point. Maybe I can locate the root directory from the configuration file. > It might help to do a diff between the one you have and mine (attached) > to look for any references to php which you don't have. I try, thanks for advices. Regards, Sami - Sami Maisniemi tel:+358 9 4580 854 Helsinki University of Technologymobile: +358 40 7499 088 Department of Electrical and email: [EMAIL PROTECTED] Communication Engineering [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] Help with Linux RPM install (ODBC access)
Hi, I have just installed RedHat 7 with support to PHP4 and MySQL. phpinfo() reports the following at the 'configure command' entry: './configure' '--target=i386-redhat-linux' '--prefix=/usr' '--with-config-file-path=/etc' '--disable-debug' '--enable-pic' '--enable-inline-optimization' '--with-apxs=/usr/sbin/apxs' '--disable-static' '--with-exec-dir=/usr/bin' '--with-regex=system' '--with-gettext' '--with-gd' '--with-jpeg-dir=/usr' '--with-png' '--with-zlib' '--with-db2' '--with-db3' '--with-gdbm' '--enable-debugger' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-yp' '--enable-ftp' '--without-mysql' '--with-xml' Although it shows option '--without-mysql' at the 'MySQL' section it reports that MySQL is enabled, and indeed we can connect to our MySQL database normally. We need though to have access to MySQL through ODBC and would like to configure PHP to run with 'unixODBC' compiled. I can see that ODBC support is currently not built in, because invoking function odbc_connect() I receive the following message: Fatal error: Call to undefined function: odbc_connect() in /var/www/html/odbc.php on line 6 RedHat reports that the RPM package for unixODBC is installed, but how do I make it to be built with PHP? And why does the compile options show that MySQL support was not built in and in fact it is? Is this because of the way RPMs function? That is, I believe I should really not rebuild PHP with commands './configure', 'make' and 'make install' but instead work with the RPM RedHat system. Any hints for a Linux RedHat newbie? TIA, Paulo
Re: [PHP] Re: [PHP-INST] Installation of PHP and Apache in RedHat 7.0
On Tuesday 06 February 2001 11:54, Sami Kristeri Maisniemi wrote: > > Then, do "/etc/rc.d/httpd stop;/etc/rc.d/httpd start" > That is exactly the problem. RedHat 7.0 doesn't include program called > 'apachectl' or otherwise I am just not able to find it. If you have > RedHat7.0 and in your computer 'apachectl' operates just fine, please > tell me where it is located at? I thought that 'httpd start' would do > the same! Actually "/etc/rc.d/httpd start" usually calls apachectl to do the real work. Anyway, using "/etc/rc.d/httpd restart" is the recommended way to restart apache -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Even idiots can handle computers, and many do. -- 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] How to get information out of an external page?
Hello! I try to get some information from an public DB to controll that the users input is right. I can access the DB via http, so I dont have to logg in to it The public DB write out and plain HTML page. I want to check if only one of the records is the same as the user input. I am only using the information in public DB to verify, and nothing else. Example of output from DB: * Name :Joe Lastname:Doe Userid:45545654 /*this is the information I wants City:New York * I figured out that I have to use fopen () and fread(). Could anyone give mes some hints! Thank's David -- 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] error handling prob
to handle errors i have this in .htaccess: e.g ErrorDocument 404 http://www.mysite.com/error/error.php but on error.php the 'REDIRECT_' vars contain nothing e.g REDIRECT_URL etc. why so? -- 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] RE: AS400 SQL Errors and Resources
For AS/400 in general: http://publib.boulder.ibm.com/html/as400/infocenter.html An for DB/2: http://www-4.ibm.com/cgi-bin/db2www/data/db2/udb/winos2unix/support/v7pubs.d 2w/main John T. Foley Network Administrator Pollak Engineered Products, Actuator Products Division, A Stoneridge Company 195 Freeport Street, Boston MA 02122 ph: (617) 474-7266fax: (617) 282-9058 The geographical center of Boston is in Roxbury. Due north of the center we find the South End. This is not to be confused with South Boston which lies directly east from the South End. North of the South End is East Boston and southwest of East Boston is the North End. > -Original Message- > From: Karl J. Stubsjoen [SMTP:[EMAIL PROTECTED]] > Sent: Monday, February 05, 2001 11:48 AM > To: PHP Mailing List > Subject: AS400 SQL Errors and Resources > > Hello, > > I reallize that the SQL syntax should be similar among all DB's which > allow > SQL, but there are slight differences amongst them. With that said, I > have > written an SQL statement to the AS400 and am getting errors back. So, and > I > don't have ANY, I need a site to visit where I can reference DB2 and SQL > for > the AS400. > Here is my error code: > > SQL error: [IBM][CLI Driver][AS] SQL0401N The data types of the operands > for > the operation "= " are not compatible. SQLSTATE=42818 , SQL state 42818 in > SQLExecDirect > > Any ideas? > Was this Off-Topic? > Any suggestions where I could post these questions? > > Thanks guys! > > Karl > -- 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] PHP & mySQL on Sun Solaris OS
Does PHP work on Sun Solaris? if so..where can i get the version that needs to be downloaded & installed on solaris machine and the documentation to install it there? same for mySQl? thanks... T. Edison jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.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]
Re: [PHP] Java Servlet Support
At 12:25 PM 2/5/2001 -0500, you wrote: >The sapi/servlet option is essentially a Java servlet that you add to >your Java webserver just like you would any other servlet and it invokes >the PHP engine through JNI and reflection (so you could reference Java >objects from within your PHP script). This option is much more >efficient then just running the ext/java extension (which allows you to >access Java objects from PHP by starting up a JVM per session) since the >JVM used is already running in the Java webserver and can be managed >much better by the latter than anything ext/java can attempt to do. >Note that using this SAPI implies that PHP will be running in your Java >Webserver instead of on your HTTP webserver (e.g. Apache) which could >have implications (hopefully for the better) unless they're both running >on the same physical machine. That sounds excellent. So if I understand you correctly, I could run Apache with JServ (or Tomcat) and build PHP into it to get a nice solution. I could then write servlets that call PHP scripts/functions and vice versa? Shawn --- Shawn J. Wallace ([EMAIL PROTECTED]) Justweb Inc. - http://www.justweb.com (519)652-6599 or (800)343-9312 -- 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 & mySQL on Sun Solaris OS
El Mar 06 Feb 2001 09:37, Thomas Edison Jr. escribió: > Does PHP work on Sun Solaris? if so..where can i get > the version that needs to be downloaded & installed on > solaris machine and the documentation to install it > there? Download the source and compile them. We work with PHP on Solaris 7 (apache), using Informix, Postgres and Mysql as databases, all compiled from sources. Saludos... ;-) -- System Administration: It's a dirty job, but someone told I had to do it. - Martín Marqués email: [EMAIL PROTECTED] Santa Fe - Argentinahttp://math.unl.edu.ar/~martin/ Administrador de sistemas en math.unl.edu.ar - -- 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 & mySQL on Sun Solaris OS
Thanks for the info... we'll download the source .. but how do we install on the Solaris machine? is there any doc available for that? it comes with the source file? Thanks, T. Edison jr. --- "Martin A. Marques" <[EMAIL PROTECTED]> wrote: > El Mar 06 Feb 2001 09:37, Thomas Edison Jr. > escribió: > > Does PHP work on Sun Solaris? if so..where can i > get > > the version that needs to be downloaded & > installed on > > solaris machine and the documentation to install > it > > there? > > Download the source and compile them. We work with > PHP on Solaris 7 (apache), > using Informix, Postgres and Mysql as databases, all > compiled from sources. > > Saludos... ;-) > > -- > System Administration: It's a dirty job, > but someone told I had to do it. > - > Martín Marquésemail: [EMAIL PROTECTED] > Santa Fe - Argentina > http://math.unl.edu.ar/~martin/ > Administrador de sistemas en math.unl.edu.ar > - = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.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]
Re: [PHP] PHP & mySQL on Sun Solaris OS
El Mar 06 Feb 2001 10:06, Thomas Edison Jr. escribió: > Thanks for the info... we'll download the source .. > but how do we install on the Solaris machine? is there > any doc available for that? it comes with the source > file? Do you have gcc (or another compiler) installed? The sources comes with lots of docs, I can recall, but you should have a README and an INSTALL. Saludos... :-) -- System Administration: It's a dirty job, but someone told I had to do it. - Martín Marqués email: [EMAIL PROTECTED] Santa Fe - Argentinahttp://math.unl.edu.ar/~martin/ Administrador de sistemas en math.unl.edu.ar - -- 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] XSL again...
Hi! Well, A little question. Does anyone know any way of to use XSL with PHP3("3") without Sablot library? I Know that if I migrate to PHP4 this problem doesn't exist, but We have many servers to migrate, it's a little complicated. I hope that anyone understand me... =) Thanks! Nicolas Peralta. [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] Modulus Formatting
Hi Michael, Use a temporary variable [counter], if counter%3 == 0 then write in the output. $counter=0; print ""; while($row = mysql_fetch_array($result)) { echo "".$row["user_id"].""; $counter++; if (!$counter%3) { echo ""; } } That's all ;-) Ahmad Anvari - Original Message - From: Michael Hall To: PHP List Sent: Tuesday, February 06, 2001 10:03 AM Subject: [PHP] Modulus Formatting > I can pull data out of a database using mysql_fetch_array and assemble it like this using a while statement: > > $data > $data > $data > etc ... > > What I'd like to do is assemble it like this: > > $data$data$data > etc... > > In other words, I need a break () every three times through the > loop. > > I've tried several snippets of code from this list's archive but none seem > to work. I've tried while statements, for statements and the list function > in every combination I can think of ... no go. I know that modulus is what I need but I can't crack the right code combination. > > Does anyone have a solution or can they point me to a resource somewhere? > > > Thanks > > 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] movies manipulation??
hi guys, i'm working on a web site where users will be able to upload movies. the problem is that i want to dinamicly create a movie preview. is it possibile, even with some external programs in other languages, to exetract a picture from o movie? any idea? thanks in advance - Giulio Borrini Web Programmer Netbuilder snc Parma, Italy - -- 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] Mail-Encryption
Hello ! I want to send mails via the "mail"-command which are encrypted and which uses the certificates used by Netscape Messenger and Outlook (if you export the files, it's extention is .p12). - How do I generate such keys (in general) ? - How can I send an encrypted email from an Unix-Server (with php) ? Regards Martin -- 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] ora error
I wrote a php script that queries for a paticular group of documents, gets the path of the documents and copies them to a holding area. But there is one problem I keep getting the following error about every 20th time the script is executed. Database error: ora_parse() failed: select DOCUMENT_ID docnum, ISSUE rev, VOLUME vol, SECTION, CHANGE, PATH, SHEET FROM raois_sheets WHERE DOCUMENT_ID LIKE UPPER('tm-007-001%') ORDER BY DOCUMENT_ID, ISSUE desc, SHEET Snap & paste this to sqlplus! Oracle Error: 2042 (ORA-02042: too many distributed transactions ORA-02063: preceding line from SHEETS -- while processing OCI function OPARSE) Session halted. I can restart the web server and all is fine again but I want to and end to this error once and for all. Does anybody know what is causing this and/or how to fix it? Thanks Mark -- 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] Help with Linux RPM install (ODBC access)
Paulo, My advice is to forgo RPMs and build the darn thing by hand. It's really quite easy - check out the Unix install instructions here: http://www.php.net/manual/en/install.unix.php I don't have specific UnixODBC docs, but iODBC should enable you to use any ODBC driver with it (iODBC is a driver manager, and makes PHP ODBC-aware, so you just pass in an ODBCINI envrionment variable pointing to your odbc.ini DSN file like: putenv("ODBCINI=path/to/odbc.ini"); Your odbc.ini will contain your DSNs You will prob also want to pass in env variables for LD_LIBRARY_PATH and ODBCINSTINI. A HOWTO on iODBC is here: http://www.iodbc.org/odbc-phpHOWTO.html Let me know if you run into trouble. Best regards, Andrew Andrew Hill Director Technology Evangelism OpenLink Software http://www.openlinksw.com XML & E-Business Infrastructure Technology Provider > -Original Message- > From: Paulo Parola (PHP) [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, February 06, 2001 6:04 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Help with Linux RPM install (ODBC access) > > > Hi, > > I have just installed RedHat 7 with support to PHP4 and MySQL. > > phpinfo() reports the following at the 'configure command' entry: > > './configure' '--target=i386-redhat-linux' '--prefix=/usr' > '--with-config-file-path=/etc' '--disable-debug' '--enable-pic' > '--enable-inline-optimization' '--with-apxs=/usr/sbin/apxs' > '--disable-static' '--with-exec-dir=/usr/bin' '--with-regex=system' > '--with-gettext' '--with-gd' '--with-jpeg-dir=/usr' '--with-png' > '--with-zlib' '--with-db2' '--with-db3' '--with-gdbm' '--enable-debugger' > '--enable-magic-quotes' '--enable-safe-mode' '--enable-sysvsem' > '--enable-sysvshm' '--enable-track-vars' '--enable-yp' '--enable-ftp' > '--without-mysql' '--with-xml' > > Although it shows option '--without-mysql' at the 'MySQL' section > it reports > that MySQL is enabled, and indeed we can connect to our MySQL database > normally. > > We need though to have access to MySQL through ODBC and would like to > configure PHP to run with 'unixODBC' compiled. I can see that ODBC support > is currently not built in, because invoking function odbc_connect() I > receive the following message: > > Fatal error: Call to undefined function: odbc_connect() in > /var/www/html/odbc.php on line 6 > > RedHat reports that the RPM package for unixODBC is installed, > but how do I > make it to be built with PHP? And why does the compile options show that > MySQL support was not built in and in fact it is? Is this because > of the way > RPMs function? That is, I believe I should really not rebuild PHP with > commands './configure', 'make' and 'make install' but instead > work with the > RPM RedHat system. > > Any hints for a Linux RedHat newbie? > > TIA, > > Paulo > > > -- 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-CVS] cvs: php4 /ext/mnogosearch php_mnogo.c test.php
gluke Tue Feb 6 06:30:54 2001 EDT Modified files: /php4/ext/mnogosearch php_mnogo.c test.php Log: UDM_PARAM_WORDINFO mnoGoSearch result parameter has been added. UDM_PARAM_RATING result field has neen added as alias for UDM_PARAM_SCORE. Example updated. @- UDM_PARAM_WORDINFO mnoGoSearch result parameter has been added. @ UDM_PARAM_RATING result field has neen added as alias for @ UDM_PARAM_SCORE. (gluke) Index: php4/ext/mnogosearch/php_mnogo.c diff -u php4/ext/mnogosearch/php_mnogo.c:1.8 php4/ext/mnogosearch/php_mnogo.c:1.9 --- php4/ext/mnogosearch/php_mnogo.c:1.8Mon Feb 5 07:15:08 2001 +++ php4/ext/mnogosearch/php_mnogo.cTue Feb 6 06:30:54 2001 @@ -1,5 +1,5 @@ /* $Source: /local/repository/php4/ext/mnogosearch/php_mnogo.c,v $ */ -/* $Id: php_mnogo.c,v 1.8 2001/02/05 15:15:08 gluke Exp $ */ +/* $Id: php_mnogo.c,v 1.9 2001/02/06 14:30:54 gluke Exp $ */ /* +--+ @@ -32,14 +32,16 @@ #define UDM_FIELD_URLID1 #define UDM_FIELD_URL 2 -#define UDM_FIELD_CONTENT 4 -#define UDM_FIELD_TITLE8 -#define UDM_FIELD_KEYWORDS 16 -#define UDM_FIELD_DESC 32 -#define UDM_FIELD_TEXT 64 -#define UDM_FIELD_SIZE 128 -#define UDM_FIELD_SCORE256 -#define UDM_FIELD_MODIFIED 512 +#define UDM_FIELD_CONTENT 3 +#define UDM_FIELD_TITLE4 +#define UDM_FIELD_KEYWORDS 5 +#define UDM_FIELD_DESC 6 +#define UDM_FIELD_DESCRIPTION 7 +#define UDM_FIELD_TEXT 8 +#define UDM_FIELD_SIZE 9 +#define UDM_FIELD_SCORE10 +#define UDM_FIELD_RATING 11 +#define UDM_FIELD_MODIFIED 12 /* udm_set_agent_param constants */ #define UDM_PARAM_PAGE_SIZE1 @@ -63,6 +65,7 @@ /* udm_get_res_param constants */ #define UDM_PARAM_NUM_ROWS 256 #define UDM_PARAM_FOUND257 +#define UDM_PARAM_WORDINFO 258 /* True globals, no need for thread safety */ static int le_link,le_res; @@ -128,9 +131,11 @@ REGISTER_LONG_CONSTANT("UDM_FIELD_TITLE", UDM_FIELD_TITLE,CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("UDM_FIELD_KEYWORDS",UDM_FIELD_KEYWORDS,CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("UDM_FIELD_DESC",UDM_FIELD_DESC,CONST_CS | CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("UDM_FIELD_DESCRIPTION", UDM_FIELD_DESCRIPTION,CONST_CS +| CONST_PERSISTENT); REGISTER_LONG_CONSTANT("UDM_FIELD_TEXT",UDM_FIELD_TEXT,CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("UDM_FIELD_SIZE",UDM_FIELD_SIZE,CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("UDM_FIELD_SCORE", UDM_FIELD_SCORE,CONST_CS | CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("UDM_FIELD_RATING", UDM_FIELD_RATING,CONST_CS | +CONST_PERSISTENT); REGISTER_LONG_CONSTANT("UDM_FIELD_MODIFIED",UDM_FIELD_MODIFIED,CONST_CS | CONST_PERSISTENT); /* udm_set_agent_param constants */ @@ -152,6 +157,7 @@ /* udm_get_res_param constants */ REGISTER_LONG_CONSTANT("UDM_PARAM_FOUND",UDM_PARAM_FOUND,CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("UDM_PARAM_NUM_ROWS",UDM_PARAM_NUM_ROWS,CONST_CS | CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("UDM_PARAM_WORDINFO",UDM_PARAM_WORDINFO,CONST_CS | +CONST_PERSISTENT); /* search modes */ REGISTER_LONG_CONSTANT("UDM_MODE_ALL",UDM_MODE_ALL,CONST_CS | CONST_PERSISTENT); @@ -496,7 +502,7 @@ /* }}} */ -/* {{{ proto int udm_get_res_field(int res, int row, int field) +/* {{{ proto string udm_get_res_field(int res, int row, int field) Fetch mnoGoSearch result field */ DLEXPORT PHP_FUNCTION(udm_get_res_field){ pval **yyres, **yyrow_num, **yyfield_name; @@ -522,16 +528,48 @@ ZEND_FETCH_RESOURCE(Res, UDM_RESULT *, yyres, -1, "mnoGoSearch-Result", le_res); if(rownum_rows){ switch(field){ - case UDM_FIELD_URL: RETURN_STRING((Res->Doc[row].url),1);break; - case UDM_FIELD_CONTENT: RETURN_STRING((Res->Doc[row].content_type),1);break; - case UDM_FIELD_TITLE: RETURN_STRING((Res->Doc[row].title),1);break; - case UDM_FIELD_KEYWORDS: RETURN_STRING((Res->Doc[row].keywords),1);break; - case UDM_FIELD_DESC: RETURN_STRING((Res->Doc[row].description),1);break; - case UDM_FIELD_TEXT: RETURN_STRING((Res->Doc[row].text),1);break; - case UDM_FIELD_SIZE: RETURN_LONG((Res->Doc[row].size));break; - case UDM_FIELD_URLID: RETURN_LONG((Res->Doc[row].url_id));break; - case UDM_FIELD_SCORE: RETURN_LONG((Res->Doc[row].rating));break; -
[PHP] auto appending for each directory
I'm developing a web page with a directory structure like this: /main -/subject1/ --/subsubsect11 --/subsubsect12 --/subsubsect13 --/subsubsect14 --/subsubsect15 -/subject2/ --/subsubsect21 --/subsubsect22 --/subsubsect23 --/subsubsect24 --/subsubsect25 -/subject3/ etc. What I would like to do is have a menu for each directory which is saved in a seperate file, (so there is a menu for main, menu for subject1, menu for subsubject11, etc). I need a php script that finds out what directory a current web page is in and automatically append all the menu files for each directory up to the current directory. I know that php has functions for both directory access and file access. Could somebody give an idea how I can achieve this with php. many Thanks Rishabh -- 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] I wish: IIS and ISAPI $PHP_AUTH_USER
Yes, I have the filter loaded. PHP file in general work excellent. It's just any file that uses the following code: What happens is that the prompt window comes up, but no matter what username/password is used it always fails. I tried to set the permissions in IIS several different ways but no luck... To: "Shane McBride" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, February 06, 2001 4:49 AM Subject: Re: [PHP] I wish: IIS and ISAPI $PHP_AUTH_USER > >I tried for days to get IIS to authorize a user with $PHP_AUTH_USER and > never got anywhere, so I used apache and it works fine. > > >I wish I just knew why. I loaded PHP as ISAPI, like the manual indicated, > but no luck. > > As well as mapping the .php file extension onto the php4isapi.dll, have you > also installed PHP as an ISAPI filter? > I'm pretty sure that it is the filter bit that enables php to pick up the > authentication details. > > Cheers > -- > Phil Driscoll > Dial Solutions > +44 (0)113 294 5112 > http://www.dialsolutions.com > http://www.dtonline.org > > > -- > 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] Save to Local Disk
Hello, I'd like to give the user an option to "Save to Disk" the contents of a text area. Any ideas how to do this? Thanks! -- 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-CVS] cvs: php4 /ext/mnogosearch php_mnogo.c test.php
This extension is being released in this next version of PHP, you only need one news entry, something to the effect of "Added the UDM search extension (authors)" -Sterling > gluke Tue Feb 6 06:30:54 2001 EDT > > Modified files: > /php4/ext/mnogosearch php_mnogo.c test.php > Log: > UDM_PARAM_WORDINFO mnoGoSearch result parameter has been added. > UDM_PARAM_RATING result field has neen added as alias for UDM_PARAM_SCORE. > Example updated. > @- UDM_PARAM_WORDINFO mnoGoSearch result parameter has been added. > @ UDM_PARAM_RATING result field has neen added as alias for > @ UDM_PARAM_SCORE. (gluke) > > > Index: php4/ext/mnogosearch/php_mnogo.c > diff -u php4/ext/mnogosearch/php_mnogo.c:1.8 php4/ext/mnogosearch/php_mnogo.c:1.9 > --- php4/ext/mnogosearch/php_mnogo.c:1.8 Mon Feb 5 07:15:08 2001 > +++ php4/ext/mnogosearch/php_mnogo.c Tue Feb 6 06:30:54 2001 > @@ -1,5 +1,5 @@ > /* $Source: /local/repository/php4/ext/mnogosearch/php_mnogo.c,v $ */ > -/* $Id: php_mnogo.c,v 1.8 2001/02/05 15:15:08 gluke Exp $ */ > +/* $Id: php_mnogo.c,v 1.9 2001/02/06 14:30:54 gluke Exp $ */ > > /* > +--+ > @@ -32,14 +32,16 @@ > > #define UDM_FIELD_URLID 1 > #define UDM_FIELD_URL 2 > -#define UDM_FIELD_CONTENT 4 > -#define UDM_FIELD_TITLE 8 > -#define UDM_FIELD_KEYWORDS 16 > -#define UDM_FIELD_DESC 32 > -#define UDM_FIELD_TEXT 64 > -#define UDM_FIELD_SIZE 128 > -#define UDM_FIELD_SCORE 256 > -#define UDM_FIELD_MODIFIED 512 > +#define UDM_FIELD_CONTENT 3 > +#define UDM_FIELD_TITLE 4 > +#define UDM_FIELD_KEYWORDS 5 > +#define UDM_FIELD_DESC 6 > +#define UDM_FIELD_DESCRIPTION 7 > +#define UDM_FIELD_TEXT 8 > +#define UDM_FIELD_SIZE 9 > +#define UDM_FIELD_SCORE 10 > +#define UDM_FIELD_RATING 11 > +#define UDM_FIELD_MODIFIED 12 > > /* udm_set_agent_param constants */ > #define UDM_PARAM_PAGE_SIZE 1 > @@ -63,6 +65,7 @@ > /* udm_get_res_param constants */ > #define UDM_PARAM_NUM_ROWS 256 > #define UDM_PARAM_FOUND 257 > +#define UDM_PARAM_WORDINFO 258 > > /* True globals, no need for thread safety */ > static int le_link,le_res; > @@ -128,9 +131,11 @@ > REGISTER_LONG_CONSTANT("UDM_FIELD_TITLE", UDM_FIELD_TITLE,CONST_CS | CONST_PERSISTENT); > REGISTER_LONG_CONSTANT("UDM_FIELD_KEYWORDS",UDM_FIELD_KEYWORDS,CONST_CS | CONST_PERSISTENT); > REGISTER_LONG_CONSTANT("UDM_FIELD_DESC", UDM_FIELD_DESC,CONST_CS | CONST_PERSISTENT); > + REGISTER_LONG_CONSTANT("UDM_FIELD_DESCRIPTION", UDM_FIELD_DESCRIPTION,CONST_CS | CONST_PERSISTENT); > REGISTER_LONG_CONSTANT("UDM_FIELD_TEXT", UDM_FIELD_TEXT,CONST_CS | CONST_PERSISTENT); > REGISTER_LONG_CONSTANT("UDM_FIELD_SIZE", UDM_FIELD_SIZE,CONST_CS | CONST_PERSISTENT); > REGISTER_LONG_CONSTANT("UDM_FIELD_SCORE", UDM_FIELD_SCORE,CONST_CS | CONST_PERSISTENT); > + REGISTER_LONG_CONSTANT("UDM_FIELD_RATING", UDM_FIELD_RATING,CONST_CS | CONST_PERSISTENT); > REGISTER_LONG_CONSTANT("UDM_FIELD_MODIFIED",UDM_FIELD_MODIFIED,CONST_CS | CONST_PERSISTENT); > > /* udm_set_agent_param constants */ > @@ -152,6 +157,7 @@ > /* udm_get_res_param constants */ > REGISTER_LONG_CONSTANT("UDM_PARAM_FOUND",UDM_PARAM_FOUND,CONST_CS | CONST_PERSISTENT); > REGISTER_LONG_CONSTANT("UDM_PARAM_NUM_ROWS",UDM_PARAM_NUM_ROWS,CONST_CS | CONST_PERSISTENT); > + REGISTER_LONG_CONSTANT("UDM_PARAM_WORDINFO",UDM_PARAM_WORDINFO,CONST_CS | CONST_PERSISTENT); > > /* search modes */ > REGISTER_LONG_CONSTANT("UDM_MODE_ALL",UDM_MODE_ALL,CONST_CS | CONST_PERSISTENT); > @@ -496,7 +502,7 @@ > /* }}} */ > > > -/* {{{ proto int udm_get_res_field(int res, int row, int field) > +/* {{{ proto string udm_get_res_field(int res, int row, int field) > Fetch mnoGoSearch result field */ > DLEXPORT PHP_FUNCTION(udm_get_res_field){ > pval **yyres, **yyrow_num, **yyfield_name; > @@ -522,16 +528,48 @@ > ZEND_FETCH_RESOURCE(Res, UDM_RESULT *, yyres, -1, "mnoGoSearch-Result", le_res); > if(rownum_rows){ > switch(field){ > - case UDM_FIELD_URL: RETURN_STRING((Res->Doc[row].url),1);break; > - case UDM_FIELD_CONTENT: RETURN_STRING((Res->Doc[row].content_type),1);break; > - case UDM_FIELD_TITLE: RETURN_STRING((Res->Doc[row].title),1);break; > - case UDM_FIELD_KEYWORDS: RETURN_STRING((Res->Doc[row].keywords),1);break; > - case UDM_FIELD_DESC: RETURN_STRING((Res->Doc[row].description),1);break; > - case UDM_FIELD_TEXT: RETURN_STRING((Res->Doc[row].text),1);break; > - case UDM_FIELD_SIZE: RETURN_LONG((Res->Doc[row].size));break; > - case UDM_FIELD_URLID: RETURN_LONG((Res->Doc[row].url_id));break; > - case UDM_FIELD_SCORE: RETURN_LONG((Res->Doc[row].rating));break; > - case UDM_FIELD_MODIFIED: RETURN_LONG((Res->Doc[row].last_mod_time));break; > + case UDM_FIELD_URL: > + RETURN_STRING((Res->Doc[row].url),1); > + break; > + > + case UDM_FIELD_CONTENT: > + RETURN_STRING((Res->Doc[row].content_type),1); > + break; > + > + case UDM_FIELD_TITLE: > + RETURN_STRING((Res->Doc[row].title),1); > + break; > + > + case UDM_FIELD_KEYWORDS: > + RETURN_STRING((Res
[PHP] Creating another php file
I'm having trouble creating a php file. I've tried to explain it to the peeps in IRC but am having trouble. It'll be easier to paste my code: ... $result2 = mysql_query("INSERT INTO winLoss(login, pass) VALUES('$login', '$pass')"); if($result2) { $fp = fopen ("/home2/colorado/public_html/profiles/$screen_name$ext", "w"); fwrite($fp, " $screen_name "). Ive ommited the redundant things. Basicly it just creates this: SELECT * from winLoss WHERE login='' I need that value in there. Any ideas? Thank you Dusten -- 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] solution
We have implemented this using AliasMatch directives in the Apache configuration file. Here is our recipe: AliasMatch ^/.+/(.+)\.php /website/$1.php AliasMatch ^/(.+)\.php /website/$1.php AliasMatch ^/.* /website/start.php What this achieves is that any specific reference to a PHP script (even if apparently buried down in a subdirectory) is actually served by a PHP script in the document root of the site. Any reference that is not explicitly to a PHP script is served by the start.php script. The start.php script looks at the actual URL asked for (using the $REQUEST_URI variable) and does some database lookups to generate the pages. So the request for a "page" such as http://www.pco.powys.org.uk/cap/page2.html is translated by the PHP scripts to a database lookup for page 2 for user "cap" You can see this in operation at http://www.pco.powys.org.uk/ If you want any more information, please contact me off the list. Kind regards Nick Talbott IT Policy and Strategy Manager, Powys County Council, UK email [EMAIL PROTECTED] FAX +44 (0) 1597 824781 web http://www.powys.gov.uk and http://www.powysweb.co.uk -Original Message- From: andreas (@work) <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: 06 February 2001 07:23 Subject: [PHP] solution >hi all, > >we need to have a solution for the following stuff: > >each member of the community should get his own page > >something like > >www.domain.com/tacco >www.domain.com/micco >www.domain.com/sicco > > >. > > >and we dont liek to build this structure as webfolders > > >so what we are thinking of is: > >a 404 php-file which extracts the path and generates a page for that out of >mysql > > >so, if someone likes to access > >www.domain.com/tacco > >theres no file but our 404php document will extract > >tacco > >and generate the page tacco from the database > > >=== > >possible ? > >or is there a better solution out there ? > > >greetings > >andreas > > >-- >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-CVS] cvs: php4 /ext/mnogosearch php_mnogo.c test.php
gluke Tue Feb 6 07:40:33 2001 EDT Modified files: /php4/ext/mnogosearch php_mnogo.c test.php Log: UDM_FIELD_ORDER and UDM_FIELD_CRC mnoGoSearch result fields has been added. Example updated. @- UDM_FIELD_ORDER and UDM_FIELD_CRC mnoGoSearch result fields @ has been added. (gluke) Index: php4/ext/mnogosearch/php_mnogo.c diff -u php4/ext/mnogosearch/php_mnogo.c:1.9 php4/ext/mnogosearch/php_mnogo.c:1.10 --- php4/ext/mnogosearch/php_mnogo.c:1.9Tue Feb 6 06:30:54 2001 +++ php4/ext/mnogosearch/php_mnogo.cTue Feb 6 07:40:32 2001 @@ -1,5 +1,5 @@ /* $Source: /local/repository/php4/ext/mnogosearch/php_mnogo.c,v $ */ -/* $Id: php_mnogo.c,v 1.9 2001/02/06 14:30:54 gluke Exp $ */ +/* $Id: php_mnogo.c,v 1.10 2001/02/06 15:40:32 gluke Exp $ */ /* +--+ @@ -42,6 +42,8 @@ #define UDM_FIELD_SCORE10 #define UDM_FIELD_RATING 11 #define UDM_FIELD_MODIFIED 12 +#define UDM_FIELD_ORDER13 +#define UDM_FIELD_CRC 14 /* udm_set_agent_param constants */ #define UDM_PARAM_PAGE_SIZE1 @@ -126,51 +128,53 @@ le_res = zend_register_list_destructors_ex(_free_udm_res,NULL,"mnogosearch result",module_number); REGISTER_LONG_CONSTANT("UDM_FIELD_URLID", UDM_FIELD_URLID,CONST_CS | CONST_PERSISTENT); - REGISTER_LONG_CONSTANT("UDM_FIELD_URL", UDM_FIELD_URL,CONST_CS | CONST_PERSISTENT); - REGISTER_LONG_CONSTANT("UDM_FIELD_CONTENT",UDM_FIELD_CONTENT,CONST_CS | CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("UDM_FIELD_URL", UDM_FIELD_URL,CONST_CS | +CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("UDM_FIELD_CONTENT", UDM_FIELD_CONTENT,CONST_CS | +CONST_PERSISTENT); REGISTER_LONG_CONSTANT("UDM_FIELD_TITLE", UDM_FIELD_TITLE,CONST_CS | CONST_PERSISTENT); - REGISTER_LONG_CONSTANT("UDM_FIELD_KEYWORDS",UDM_FIELD_KEYWORDS,CONST_CS | CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("UDM_FIELD_KEYWORDS",UDM_FIELD_KEYWORDS,CONST_CS | +CONST_PERSISTENT); REGISTER_LONG_CONSTANT("UDM_FIELD_DESC",UDM_FIELD_DESC,CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("UDM_FIELD_DESCRIPTION", UDM_FIELD_DESCRIPTION,CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("UDM_FIELD_TEXT",UDM_FIELD_TEXT,CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("UDM_FIELD_SIZE",UDM_FIELD_SIZE,CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("UDM_FIELD_SCORE", UDM_FIELD_SCORE,CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("UDM_FIELD_RATING", UDM_FIELD_RATING,CONST_CS | CONST_PERSISTENT); - REGISTER_LONG_CONSTANT("UDM_FIELD_MODIFIED",UDM_FIELD_MODIFIED,CONST_CS | CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("UDM_FIELD_MODIFIED",UDM_FIELD_MODIFIED,CONST_CS | +CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("UDM_FIELD_ORDER", UDM_FIELD_ORDER,CONST_CS | +CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("UDM_FIELD_CRC", UDM_FIELD_CRC,CONST_CS | +CONST_PERSISTENT); /* udm_set_agent_param constants */ - REGISTER_LONG_CONSTANT("UDM_PARAM_PAGE_SIZE",UDM_PARAM_PAGE_SIZE,CONST_CS | CONST_PERSISTENT); - REGISTER_LONG_CONSTANT("UDM_PARAM_PAGE_NUM",UDM_PARAM_PAGE_NUM,CONST_CS | CONST_PERSISTENT); - REGISTER_LONG_CONSTANT("UDM_PARAM_SEARCH_MODE",UDM_PARAM_SEARCH_MODE,CONST_CS | CONST_PERSISTENT); - REGISTER_LONG_CONSTANT("UDM_PARAM_CACHE_MODE",UDM_PARAM_CACHE_MODE,CONST_CS | CONST_PERSISTENT); - REGISTER_LONG_CONSTANT("UDM_PARAM_TRACK_MODE",UDM_PARAM_TRACK_MODE,CONST_CS | CONST_PERSISTENT); - REGISTER_LONG_CONSTANT("UDM_PARAM_CHARSET",UDM_PARAM_CHARSET,CONST_CS | CONST_PERSISTENT); - REGISTER_LONG_CONSTANT("UDM_PARAM_STOPTABLE",UDM_PARAM_STOPTABLE,CONST_CS | CONST_PERSISTENT); - REGISTER_LONG_CONSTANT("UDM_PARAM_STOPFILE",UDM_PARAM_STOPFILE,CONST_CS | CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("UDM_PARAM_PAGE_SIZE", UDM_PARAM_PAGE_SIZE,CONST_CS | +CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("UDM_PARAM_PAGE_NUM",UDM_PARAM_PAGE_NUM,CONST_CS | +CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("UDM_PARAM_SEARCH_MODE", UDM_PARAM_SEARCH_MODE,CONST_CS +| CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("UDM_PARAM_CACHE_MODE", UDM_PARAM_CACHE_MODE,CONST_CS +| CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("UDM_PARAM_TRACK_MODE", UDM_PARAM_TRACK_MODE,CONST_CS +| CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("UDM_PARAM_CHARSET", UDM_PARAM_CHARSET,CONST_CS | +CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("UDM_PARAM_STOPTABLE", UDM_PARAM_STOPTABLE,CONST_CS | +CONST_PERSISTENT); + REGISTER_LONG_CONSTANT("UDM_PARAM_STOPFILE",UDM_PARAM_STOPFILE,CONST_CS | +CONST_PERSISTENT); /* udm_add_
Re: [PHP] Save to Local Disk
Hi Karl, Simply put a save button on your page. When it's clicked, pass document.forms[0].textareaname.value to the other script, (it's written in javascript, if you're familiar with that), then you'll access the content of the text box. to save it on a local disk, simply use javascript again, it will help you save a file on disk. [altough there are some security reasons which prohibit you write on the client's side, you can still do that using the below script] it's a good guide. however, you have to change some parts: hope it works, Ahmad Anvari - Original Message - From: Karl J. Stubsjoen To: PHP Mailing List Sent: Tuesday, February 06, 2001 6:23 PM Subject: [PHP] Save to Local Disk Hello, I'd like to give the user an option to "Save to Disk" the contents of a text area. Any ideas how to do this? Thanks! -- 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] GD
Hello, Hello I am starting to work with GD a little bit more lately and was looking for some more advanced stuff than just printing text on blue background. I was wondering if there is a way to load an image into GD to use as the background image of a image I want to create. Does anyone know where I can get a couple good GD tutorials, other than making graphs. Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.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-general Digest 6 Feb 2001 16:14:35 -0000 Issue 496
php-general Digest 6 Feb 2001 16:14:35 - Issue 496 Topics (messages 38350 through 38393): Re: How to save something in a Java Applet as an IMAGE file ? 38350 by: Maxim Maletsky Re: PHP mail as 'nobody' 38351 by: Steve Smith MySQL --- OR in a select statement ??? 38352 by: Dallas Kropka 38353 by: Joe Stump 38354 by: Chris Adams framing search results 38355 by: Jason Dulberg 38359 by: Maxim Maletsky *Animated* images. (repost) 38356 by: Hrishi Re: PHP Authenticate 38357 by: Dan Lowe OCILogOn and OCILogOff 38358 by: Reuben D Budiardja solution 38360 by: andreas \(.work\) 38361 by: Chris Adams 38391 by: Nick Talbott Modulus Formatting 38362 by: Michael Hall 38382 by: Web Admin Re: Mixing PHP code with phplib templates... possible? 38363 by: Max A. Derkachev Re: [PHP-WIN] COM and PHP 38364 by: Yoann Chevalier 20 Million Fresh E-mail Addresses 38365 by: Luke Re: I wish: IIS and ISAPI $PHP_AUTH_USER 38366 by: Phil Driscoll 38388 by: Shane McBride Re: [PHP-INST] RE: strange Compiling Errors / PHP4.0.4pl1 38367 by: Thomas Weber Re: Pricing for PHP programming??? 38368 by: Piotr Duszynski Re: [PHP-INST] Installation of PHP and Apache in RedHat 7.0 38369 by: Sami Kristeri Maisniemi 38372 by: Christian Reiniger Re:Installation of PHP and Apache in RedHat 7.0 38370 by: Sami Kristeri Maisniemi Help with Linux RPM install (ODBC access) 38371 by: Paulo Parola (PHP) 38386 by: Andrew Hill How to get information out of an external page? 38373 by: David Tandberg-Johansen error handling prob 38374 by: Adrian Murphy Re: AS400 SQL Errors and Resources 38375 by: Foley, John PHP & mySQL on Sun Solaris OS 38376 by: Thomas Edison Jr. 38378 by: Martin A. Marques 38379 by: Thomas Edison Jr. 38380 by: Martin A. Marques Re: Java Servlet Support 38377 by: Shawn J. Wallace XSL again... 38381 by: Nicolas Peralta movies manipulation?? 38383 by: Giulio Borrini - Netbuilder Mail-Encryption 38384 by: Martin Thoma ora error 38385 by: Mark auto appending for each directory 38387 by: Rishabh Gupta Save to Local Disk 38389 by: Karl J. Stubsjoen 38392 by: Web Admin Creating another php file 38390 by: Dusten GD 38393 by: Brandon Orther 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] -- we-e-e ... a-are ... the cha-a-a-ampions, my friend Dear Lise Fleming McKinney, You are subscribed to PHP-General Mailing List, we all often send this kind of things to each other without necessarily authenticating ourselves; Cheers, Maxim Maletsky -Original Message- From: Lise Fleming McKinney [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 06, 2001 12:43 PM To: Winnie; [EMAIL PROTECTED] Subject: RE: [PHP] How to save something in a Java Applet as an IMAGE file? Who are you and why are you sending me this? *-Original Message- *From: Winnie [mailto:[EMAIL PROTECTED]] *Sent: Monday, February 05, 2001 9:47 AM *To: [EMAIL PROTECTED] *Subject: [PHP] How to save something in a Java Applet as an IMAGE file? * * *hi, * *how can i do this? i have a java applet on my site which allows users to *create their own drawings. i want to provide a "Email this to me" option, *which will save the applet drawing and email it to the user. is there any *way i can achieve this? * *thanks! *winnie * * *--- *Outgoing mail is certified Virus Free. *Checked by AVG anti-virus system (http://www.grisoft.com). *Version: 6.0.230 / Virus Database: 111 - Release Date: 25-Jan-01 * * * *-- *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] * * On Mon, 5 Feb 2001, Dave Goodrich wrote: > The problem is that some of our customers are now blocking mail from user > 'nobody', regardless if the account exists or not. I can have PHP write the > complete headers but that doesn't stop the 'from' header in Sendmail being > written (the true user process). I have two choices as I see it. > > 1) Use 'masquerade_envelope' feature in Sendmail > 2) Change the process name PHP/Apache is running under > (ex: change the unprivledged user 'nobody' to 'fantasic-elastic') You have one additional option. You can make the nobody user 'trusted' by sendmail. It's been awhile since I've done this but I believe you need to add a line to /etc/sendmail.cf along the lines of "Tnobody". Don't forget to restart sendmail for
Re: [PHP] I wish: IIS and ISAPI $PHP_AUTH_USER
Shane I can't do any testing for you at my end as I just can't get php to work as an ISAPI module on my setup without causing 500 internal server errors. It would be helpful if you could echo $PHP_AUTH_USER if it is set, just so we can see what it is set to, and echo something else (eg 'auth not set') if it is not set, then we'll have a better idea of where it's going wrong. Cheers -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org -- 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] GD
Hi, Consider using ImageCreateFromGif will help you. Then use ImageTTFText to write some text on the loaded gif and ImageGIF it to output the image as gif :) Ahmad Anvari - Original Message - From: Brandon Orther To: PHP User Group Sent: Tuesday, February 06, 2001 7:50 PM Subject: [PHP] GD Hello, Hello I am starting to work with GD a little bit more lately and was looking for some more advanced stuff than just printing text on blue background. I was wondering if there is a way to load an image into GD to use as the background image of a image I want to create. Does anyone know where I can get a couple good GD tutorials, other than making graphs. Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.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-CVS] cvs: CVSROOT / avail gen_acl_file.m4
zeevTue Feb 6 07:48:22 2001 EDT Modified files: /CVSROOTavail gen_acl_file.m4 Log: Add lost karma... PR: Submitted by: Reviewed by: Obtained from: Index: CVSROOT/avail diff -u CVSROOT/avail:1.74 CVSROOT/avail:1.75 --- CVSROOT/avail:1.74 Sun Feb 4 02:10:57 2001 +++ CVSROOT/avail Tue Feb 6 07:48:22 2001 @@ -2,12 +2,12 @@ unavail avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane|CVSROOT avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,cmv,tcobb,gareth,jah,eschmid,ronabop,derick,sterling,stas,phildriscoll,jmoore,waldschrott,sniper,david,lyric,zimt,mk,goba,zak|phpweb -avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jon,rael,jlp,sbergmann,troels,urs,jpm,adaniel,tuupola,mj,ssb,metallic,heyesr,aj,waldschrott,zimt,uw,jeichorn|php4/pear,pearweb,pear -avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad|php4,php3,php31,phpfi -avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,hholzgra|functable +avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,jon,rael,jlp,sbergmann,troels,urs,jpm,adaniel,tuupola,mj,ssb,metallic,heyesr,aj,waldschrott,zimt,uw,jeichorn|php4/pear,pearweb,pear +avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag|php4,php3,php31,phpfi +avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,hholzgra|functable avail|rasmus,sterling,jimw|pres avail|jalal,zak,waldschrott,ultrapingo,lyric,jmoore,ronabop,sbergmann,joey,sniper,torben,hellekin|qaweb -avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,php_ext,chad,torben,lynch,kk,ted,kwazy,aka,affinity,paul,skaag,pglat,mbritton,coar,lwest,joey,bibi,mrobinso,lwh,perugini,hamoralesr,tzwenny,hirokawa,drews,paulsen,hartmann,philross,leon,valdirh,dmarion,dubois,jonen,tschuer,tfromm,manuel,stas,danbeck,sli,jmcastagnetto,mohrt,cris,goba,samesch,jon,soneca,kaufm,ronabop,glace,latoserver,phpguru_dk,lojmann,rafael,jan,jcmeloni,chrullrich,mk,sbergmann,troels,mathieu,voize,phaethon,mgx,mj,corean,pandach,brown,cycle98,vizvil,openlife,regina,cynic,jpm,dams,alponce,menuconfig,obst,topgoods,karoora,pcraft,suvia,zak,zimt,mgx,sintoris,jmoore,ftfuture,uttam,ag315,ropik,jbi1979,bbonev,malo,afortaleza,neotron,cg,delrom,dickmeiss,jkj,hellekin,kgergely,andreroq,eduardh|phpdoc +avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,php_ext,chad,torben,lynch,kk,ted,kwazy,aka,affinity,paul,skaag,pglat,mbritton,coar,lwest,joey,bibi,mrobinso,lwh,perugini,hamoralesr,tzwenny,hirokawa,drews,paulsen,hartmann,philross,leon,valdirh,dmarion,dubois,jonen,tschuer,tfromm,manuel,stas,danbeck,sli,jmcastagnetto,mohrt,cris,goba,samesch,jon,soneca,kaufm,ronabop,glace,latoserver,phpguru_dk,lojmann,rafael,jan,jcmeloni,chrullrich,mk,sbergman
Re: [PHP] Parse error on blank line...
I gotta agree here. It happens every once in a while and it usually turns out to be something like that... also check to see if you have any here-docs in there that aren't terminated correctly (the ending signal must appear at the first column of a line and be followed by a semicolon). I don't know what else to suggest, but try commenting out some blocks of code systematically and see when it goes away... the thing's got to quit erroring out at some point. --Toby April wrote: > > No, I have the same thing happen all the time. It happens after a > combination of }'s and ;'s where either a } or a ; is missing. Seriously. > > - Original Message - > From: "Jackson, Michael" <[EMAIL PROTECTED]> > To: "'johnny p.'" <[EMAIL PROTECTED]>; "April" <[EMAIL PROTECTED]>; > "Jackson, Michael" <[EMAIL PROTECTED]>; > <[EMAIL PROTECTED]> > Sent: Monday, February 05, 2001 4:48 PM > Subject: RE: [PHP] Parse error on blank line... > > > Even if I was missing a brace, doesn't it seem odd that it would > always > > give me a syntax error on the same line? It's as if it's arbitrarily > > deciding to break there... If I add a new line after gives > > the exact same line number... And again, I can comment it out, and it > will > > still give me an error on the same line number. Again, this is the same > > line NUMBER - It apparently doesn't matter what snippet of code exists > > there. > > > > -Original Message- > > From: johnny p. [mailto:[EMAIL PROTECTED]] > > Sent: Monday, February 05, 2001 05:38 PM > > To: April; Jackson, Michael; [EMAIL PROTECTED] > > Subject: RE: [PHP] Parse error on blank line... > > > > > > I'm not sure where it is, but I agree that you are missing a curly brace > > somewhere. Take a break from your code for a bit, come back to it, and > > start matching braces. I suggest getting a coffee or some tea. > > > > johnny p. > > > > > -Original Message- > > > From: April [mailto:[EMAIL PROTECTED]] > > > Sent: Monday, February 05, 2001 4:31 PM > > > To: Jackson, Michael; [EMAIL PROTECTED] > > > Subject: Re: [PHP] Parse error on blank line... > > > > > > > > > You missed a } in there. Inside of that else, you have an > > > if, but you never > > > close the else. > > > > > > >190 showmainscreen(); > > > >191} > > > >192 > > > > > > should be > > > > > > >190 showmainscreen(); > > > >191} > > > >192} > > > > > > - Original Message - > > > From: "Jackson, Michael" <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Sent: Monday, February 05, 2001 4:23 PM > > > Subject: [PHP] Parse error on blank line... > > > > > > > > > > Hello all, > > > > > > > > I hope this doesn't turn out to be a stupid question, > > > but we will > > > > see... I am getting parse errors on blank lines. Not > > > commented, but > > > > totally blank. And seemingly no matter how I manipulate > > > the text, it > > > turns > > > > out to always be on the same line. I'm using vim with > > > syntax tags to help > > > > me check my basic syntax, and everything seems to be closed > > > - I am at a > > > > total loss as to what could be wrong! Let me try to > > > clarify: Take the > > > > following snippet of code - It errors out on line 193. I > > > have no idea > > > why. > > > > I added blank lines to shift the code around - and if I > > > eliminated all of > > > > the blank lines, I still error out on 193. > > > > > > > >001 > > > > > > >. > > > > > > > > > > > >181 ## > > > >182 # BEGIN CODE # > > > >183 ## > > > >184 > > > >185 if ($goodtogo != "yes") { > > > >186sanitize_session(); > > > >187 } > > > >188 else { > > > >189if ($state == "main") { > > > >190 showmainscreen(); > > > >191} > > > >192 > > > > > 193 > > > >194 > > > >195 > > > >196elseif ($state == "add") { > > > >197 adduser($product,$username); > > > >198} > > > >199elseif ($state == "search") { > > > >200 searchuser($username); > > > >201} > > > >202else { > > > >203 doh(); > > > >204} > > > >205 } > > > >206 > > > >207 > > > >208 # END CODE # > > > >209 > > > >210 ?> > > > > > > > > Any help is greatly appreciated! > > > > > > > > -- > > > > 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 unsubscri
Re: [PHP-CVS] cvs: php4 /ext/mnogosearch php_mnogo.c test.php
On Tue, 6 Feb 2001, Sterling Hughes wrote: > This extension is being released in this next version of PHP, you only need > one news entry, something to the effect of > > "Added the UDM search extension (authors)" ok. So, i should not write any NEWS on this extension till 4.0.5 release ? -- Regards. Sergey aka gluke. -- PHP CVS 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] [newbie] Array form values.
Or you might try a foreach($array as $element)... about the same but it doesn't give you they key - just the value (as $element). foreach ($email as $current) { // process this email addr } // move on to the next one until the whole arr of them has been proc'd Good luck- --Toby David Robley wrote: > > On Tue, 6 Feb 2001 08:57, April wrote: > > I have a form that is an extended version of this: > > > > > > > > > > > > > > > > Unfortunately, the email[1] part was generated using a variable in a > > loop. I have no idea how many of these fields there really will be each > > time this is done. > > > > I then need to turn around and, while processing the form, extract the > > values for each field in another loop. > > Trying to do echo $email[$i] doesn't seem to work, though. > > > > Is my entire logical approach wrong? Could it be something wrong with > > syntax? Is it not possible to use a variable as the inner part of an > > array like that? ooo, or best one to answer: does someone have a > > snippet of code doing what I want to do here, that I could learn from? > > Have a look at the functions list and each - there are code snippets in the > manual which should give you some ideas for getting the values and keys > from an array. You might also be interested in count and sizeof for > determining the number of elements in the array. > > -- > 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] -- 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] [newbie] Array form values.
Well, I'd need the key - I don't want to have a system that breaks if someone deletes a record while someone else is mulling over the form, before they submit it. So I'm going to need the id number for each record changed. Also, my real form is going to have more than one field doing this - email, rank, and name, that I know of so far. - Original Message - From: "Toby Butzon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "April" <[EMAIL PROTECTED]>; "PHP General" <[EMAIL PROTECTED]> Sent: Tuesday, February 06, 2001 10:36 AM Subject: Re: [PHP] [newbie] Array form values. > Or you might try a foreach($array as $element)... about the same but it > doesn't give you they key - just the value (as $element). > > foreach ($email as $current) { > // process this email addr > } // move on to the next one until the whole arr of them has been proc'd > > Good luck- > > --Toby > > David Robley wrote: > > > > On Tue, 6 Feb 2001 08:57, April wrote: > > > I have a form that is an extended version of this: > > > > > > > > > > > > > > > > > > > > > > > > Unfortunately, the email[1] part was generated using a variable in a > > > loop. I have no idea how many of these fields there really will be each > > > time this is done. > > > > > > I then need to turn around and, while processing the form, extract the > > > values for each field in another loop. > > > Trying to do echo $email[$i] doesn't seem to work, though. > > > > > > Is my entire logical approach wrong? Could it be something wrong with > > > syntax? Is it not possible to use a variable as the inner part of an > > > array like that? ooo, or best one to answer: does someone have a > > > snippet of code doing what I want to do here, that I could learn from? > > > > Have a look at the functions list and each - there are code snippets in the > > manual which should give you some ideas for getting the values and keys > > from an array. You might also be interested in count and sizeof for > > determining the number of elements in the array. > > > > -- > > 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] > > -- > 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] [newbie] Array form values.
At 11:36 AM 2/6/2001 -0500, Toby Butzon wrote: >Or you might try a foreach($array as $element)... about the same but it >doesn't give you they key - just the value (as $element). > >foreach ($email as $current) { > // process this email addr >} // move on to the next one until the whole arr of them has been proc'd Or perhaps: foreach ( $email as $key => $val ) { // } for both. Enjoy! Faisal -- 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-CVS] cvs: php4 /ext/mnogosearch php_mnogo.c test.php
On Tue, 06 Feb 2001, Sergey Kartashoff wrote: > On Tue, 6 Feb 2001, Sterling Hughes wrote: > > > This extension is being released in this next version of PHP, you only need > > one news entry, something to the effect of > > > > "Added the UDM search extension (authors)" > > ok. So, i should not write any NEWS on this extension till 4.0.5 release ? Basically. -Andrei * Who is Ray and why would we want to selectively trace him? * -- PHP CVS 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-CVS] cvs: php4 /ext/mnogosearch php_mnogo.c test.php
On Tue, 6 Feb 2001, Andrei Zmievski wrote: > > ok. So, i should not write any NEWS on this extension till 4.0.5 release ? > > Basically. ok i understood. Thank you for your notes. -- Regards. Sergey aka gluke. -- PHP CVS 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-CVS] cvs: php4 / ChangeLog NEWS /ext/standard array.c crypt.c rand.c
jimjag Tue Feb 6 08:27:09 2001 EDT Modified files: /php4/ext/standard array.c crypt.c rand.c /php4 ChangeLog NEWS Log: For those lucky systems with both random() and *rand48(), the random() family is the prefered choice. So if both exist, we now choose that. Index: php4/ext/standard/array.c diff -u php4/ext/standard/array.c:1.90 php4/ext/standard/array.c:1.91 --- php4/ext/standard/array.c:1.90 Mon Jan 22 09:27:02 2001 +++ php4/ext/standard/array.c Tue Feb 6 08:27:08 2001 @@ -20,7 +20,7 @@ +--+ */ -/* $Id: array.c,v 1.90 2001/01/22 17:27:02 andrei Exp $ */ +/* $Id: array.c,v 1.91 2001/02/06 16:27:08 jimjag Exp $ */ #include "php.h" #include "php_ini.h" @@ -1328,12 +1328,12 @@ static int array_data_shuffle(const void *a, const void*b) { return ( /* This is just a little messy. */ -#ifdef HAVE_LRAND48 -lrand48() -#else #ifdef HAVE_RANDOM random() #else +#ifdef HAVE_LRAND48 +lrand48() +#else rand() #endif #endif @@ -2703,11 +2703,11 @@ zend_hash_internal_pointer_reset(Z_ARRVAL_PP(input)); while (num_req_val && (key_type = zend_hash_get_current_key(Z_ARRVAL_PP(input), &string_key, &num_key, 0)) != HASH_KEY_NON_EXISTANT) { -#ifdef HAVE_LRAND48 - randval = lrand48(); -#else #ifdef HAVE_RANDOM randval = random(); +#else +#ifdef HAVE_LRAND48 + randval = lrand48(); #else randval = rand(); #endif Index: php4/ext/standard/crypt.c diff -u php4/ext/standard/crypt.c:1.34 php4/ext/standard/crypt.c:1.35 --- php4/ext/standard/crypt.c:1.34 Mon Jan 8 13:13:24 2001 +++ php4/ext/standard/crypt.c Tue Feb 6 08:27:08 2001 @@ -17,7 +17,7 @@ | Rasmus Lerdorf <[EMAIL PROTECTED]> | +--+ */ -/* $Id: crypt.c,v 1.34 2001/01/08 21:13:24 derick Exp $ */ +/* $Id: crypt.c,v 1.35 2001/02/06 16:27:08 jimjag Exp $ */ #include #include "php.h" @@ -85,10 +85,10 @@ #define PHP_STD_DES_CRYPT 1 #endif -#if HAVE_LRAND48 -#define PHP_CRYPT_RAND lrand48() -#elif HAVE_RANDOM +#if HAVE_RANDOM #define PHP_CRYPT_RAND random() +#elif HAVE_LRAND48 +#define PHP_CRYPT_RAND lrand48() #else #define PHP_CRYPT_RAND rand() #endif @@ -105,10 +105,10 @@ REGISTER_LONG_CONSTANT("CRYPT_MD5", PHP_MD5_CRYPT, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("CRYPT_BLOWFISH", PHP_BLOWFISH_CRYPT, CONST_CS | CONST_PERSISTENT); -#if HAVE_SRAND48 - srand48((long) time(0) * (long) getpid() * (long) (php_combined_lcg() * 1.0)); -#elif HAVE_SRANDOM +#if HAVE_SRANDOM srandom((unsigned int) time(0) * getpid() * (php_combined_lcg() * 1.0)); +#elif HAVE_SRAND48 + srand48((long) time(0) * (long) getpid() * (long) (php_combined_lcg() * +1.0)); #else srand((unsigned int) time(0) * getpid() * (php_combined_lcg() * 1.0)); #endif Index: php4/ext/standard/rand.c diff -u php4/ext/standard/rand.c:1.21 php4/ext/standard/rand.c:1.22 --- php4/ext/standard/rand.c:1.21 Tue Jul 18 04:02:28 2000 +++ php4/ext/standard/rand.cTue Feb 6 08:27:08 2001 @@ -19,7 +19,7 @@ | Based on code from: Shawn Cokus <[EMAIL PROTECTED]> | +--+ */ -/* $Id: rand.c,v 1.21 2000/07/18 11:02:28 ssb Exp $ */ +/* $Id: rand.c,v 1.22 2001/02/06 16:27:08 jimjag Exp $ */ #include @@ -199,12 +199,12 @@ WRONG_PARAM_COUNT; } convert_to_long_ex(arg); -#ifdef HAVE_SRAND48 - srand48((unsigned int) (*arg)->value.lval); -#else #ifdef HAVE_SRANDOM srandom((unsigned int) (*arg)->value.lval); #else +#ifdef HAVE_SRAND48 + srand48((unsigned int) (*arg)->value.lval); +#else srand((unsigned int) (*arg)->value.lval); #endif #endif @@ -253,11 +253,11 @@ } return_value->type = IS_LONG; -#ifdef HAVE_LRAND48 - return_value->value.lval = lrand48(); -#else #ifdef HAVE_RANDOM return_value->value.lval = random(); +#else +#ifdef HAVE_LRAND48 + return_value->value.lval = lrand48(); #else return_value->value.lval = rand(); #endif Index: php4/ChangeLog diff -u php4/ChangeLog:1.610 php4/ChangeLog:1.611 --- php4/ChangeLog:1.610Mon Feb 5 18:09:23 2001 +++ php4/ChangeLog Tue Feb 6 08:27:08 2001 @@ -1,3 +1,10 @@ +2001-02-06 Jim Jagielski <[EMAIL PROTECTED]> + +* ext/standard/array.c: + ext/standard/crypt.c: + ext/standard/rand.c: +Prefer the random() family over the *rand48() one + 2001-02-05 Zeev Suraski <[EMAIL PROTECTED]> * ext/com/typedef_VARIANT.c Index: php4/NEWS diff -u php4/NEWS:1.583 php4/NEWS:1.584 --- php4/NEWS:1.583 Mon Feb 5 19:54:14 2001 +++ php4/NEWS Tue Feb 6 08:27:08 2001 @@ -2,6 +2,7
Re: [PHP] Mixing PHP code with phplib templates... possible?
At 11:16 am +0300 2.6.01, Max A. Derkachev wrote: >df> I need >df> to run all hyperlinks through a function in order to maintain state >df> and pass other variables from script to script. I figure this must >df> be possible, but I'm new at using phplib, so I'm not all that clear >df> on it... > >Set the links as template variables and then substitute them with >values using Template's set_var(). Hi Max, Thanks for the reply. Unfortunately, the solution you suggest means that I would have to do a set_var on all hyperlinks (i.e., define all hyperlinks everywhere on the site), which is a huge amount of maintenance. What I thought about yesterday was creating some sort of token (e.g., {@}) that could be tacked onto the end of hyperlinks that I want to add session info to. Maybe there's a better way... I don't know! :( --- Derek Fong web://developer Zero-Knowledge Systems [http://www.zeroknowledge.com/] PGP Fingerprint >> 2D4F 89F0 EAC1 FBFB 97B5 0B94 FA05 C29E D23B 0A4E -- 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] Passing an array as an argument.
How do you pass an array as an argument to a function? My code (or at least the important parts): function process_members($asker_rank, $email) { global $database_mysql; mysql_select_db($database_mysql); while (list ($key, $val) = each ($email)) { echo "$key => $val"; } } # This will display fine. # while (list ($key, $val) = each ($email)) { echo "$key => $val"; } # Doing the same thing with the function here returns this error, though. // Warning: Variable passed to each() is not an array or object in lib.inc on line 447 process_members($asker_rank, $total_members, $email); -- 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] GD, TTF, and Anit-Alias
Hello I am making a php script that make an image with the text that I send to the script. What I was wondering is if there was an anti-alias function in GD for my test. Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.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]
Re: [PHP] Passing an array as an argument.
Hi April, I suggest you code your array into one string (it depends to the size) then decode it at the other end using your own code. It's the easiest trick to pass the array, compress it into one variable, then extract it at the other end. Any other ideas? ;-) Ahmad - Original Message - From: April To: PHP General Sent: Tuesday, February 06, 2001 8:48 PM Subject: [PHP] Passing an array as an argument. How do you pass an array as an argument to a function? My code (or at least the important parts): function process_members($asker_rank, $email) { global $database_mysql; mysql_select_db($database_mysql); while (list ($key, $val) = each ($email)) { echo "$key => $val"; } } # This will display fine. # while (list ($key, $val) = each ($email)) { echo "$key => $val"; } # Doing the same thing with the function here returns this error, though. // Warning: Variable passed to each() is not an array or object in lib.inc on line 447 process_members($asker_rank, $total_members, $email); -- 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] Com
"Fatal error: Cannot instantiate non-existent class: com in /var/www/html/version2/file.php on line 8" is the result of running the following code: Version)\n"; $word-visible =1 ; ?> Why?
RE: [PHP] 20 Million Fresh E-mail Addresses
On replying to SPAM: Most of you already know this, but replying to SPAM (even if they tell you that you can remove yourself) usually leads to more SPAM, b/c you've just given the SPAMMERS your email address confirmed. http://www.chugach.net/~techtips/spam3.htm Just a warning. -Ben -Original Message- From: Luke [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 6:14 PM To: [EMAIL PROTECTED] Subject: [PHP] 20 Million Fresh E-mail Addresses TO BE REMOVED FROM FUTURE MAILINGS, SIMPLY REPLY TO THIS MESSAGE AND PUT "REMOVE" IN THE SUBJECT. 20 MILLION E-MAIL ADDRESSES FOR ONLY $249 **Over Night International Shipping Included** Many Call This "The "Perfect E-Mail List" Over 20-Million Of The Best E-Mail Addresses Available _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ Our research has found that many people have tried one or more of the following... Free Classifieds? (Don't work anymore) Web Site? (Takes thousands of visitors) Banners? (Expensive and losing their punch) E-Zine? (Hope they have a *huge* subscriber list) Search Engines? (Forget it, unless you're in the top 20) S O W H A T W I L L W O R K ? Although often misunderstood, there is one method that has proven to succeed time-after-time. E - M A I L M A R K E T I N G ! ! IT'S A FACT... If you're not using your computer to generate income, GOOD income, you're leaving money on the table. Here's what the experts have to say about E-Mail Marketing: "E-mail is an incredible lead generation tool" -Crains Magazine "A gold mine for those who can take advantage of bulk e-mail programs" - The New York Times "Blows away traditional Mailing" - Advertising Age Here's an example of your potential earnings if you have a product or service that brings you a profit of around $30. Remember, on the Internet, you can make money 7 days a week, 24 hours a day... even while you sleep, orders come from all over the world! Orders Per DayWeekly Monthly Yearly 1 $ 210 $ 840 $ 10,080 2 4201,68020,160 3 6302,52030,240 51,0504,20050,400 102,1008,400 100,000 153,150 12,600 151,200 THE QUESTION IS... how do you generate those orders? The least expensive and fastest way is through E-Mail Marketing. You want to make some money? I can put you in touch with over 20 million people at virtually no cost. Can you make one cent from each of theses names? If you can you have a profit of over $200,000.00 That's right, I have over 20 Million Fresh email addresses that I will sell for only $249. These are all fresh addresses that include almost every English person on the Internet today, with no duplications. They are all sorted and ready to be mailed. That is the best deal anywhere today! Don't believe it? People are making that kind of money right now by doing the same thing, that is why you get so much email from people selling you their productit works! These 20 Million email addresses are yours to keep, so you can use them over and over. This offer is not for everyone. If you can not see just how excellent the risk / reward ratio in this offer is then there is nothing I can do for you. To make money you must stop dreaming and TAKE ACTION. Over the past 2 years, we have gained a reputation for having the cleanest, most responsive e-mail address lists in the industry. No one has gone to the work it takes to produce an e-mail address list of this quality. Here's how we prepare our e-mail lists: 1. We clean and eliminate all duplicates. 2. Next, we use a filter list of 400+ words/phrases to clean even more. No address with inappropriate or profane wording survives! 3. Then we use our private database of thousands of known Internet "extremists", those opposed to any kind of commercial e-mail, and kicked off every one we could find. 4. All domains were verified to insure they're valid. 5. And finally, we sorted the list into easy-to-manage packets of 20,000 addresses in simple text (.txt) format that will work with any computer operating system. ** It is time to order! Shipping is not an issue. **FedEx next day world wide shipping included As soon as we receive payment we will FedEx your e-mail list via CD straight to your door anywhere in the world FedEx next day guaranteed. **International Orders Welcome* US funds paid via paypal.com welcomed PayPal is now available in the following countries: Australia Austria Belgium Brazil Canada Denmark France Germany Hong Kong Ireland Israel Italy Japan Mexico Netherlands New Zealand Norway Portugal Singapore South Africa South Korea Spain Sweden Switzerland United Kingdom PayPal.com is very easy to sign up
[PHP] COM?
Does Anyone know what needs to be installed on the server other than php 4.0.4 and IIS to instantiate COM Objects like Excel and word. Ryan -- 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] Graphics Library
Hello, A couple weeks ago there was a listing for a new release of an image editing library that worked with GD and php, if you can remember what it was please e-mail me with the URL Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.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]
RE: [PHP] Passing an array as an argument.
try: function process_members($asker_rank, $total_members, $email=array()) { global $database_mysql; mysql_select_db($database_mysql); while (list ($key, $val) = each ($email)) { echo "$key => $val"; } } process_members($asker_rank, $total_members, $email); Your original function declaration only has two variables passed to it. You are passing three variables when you call the function. What's happening is this: function process_members($asker_rank, $email) { global $database_mysql; mysql_select_db($database_mysql); while (list ($key, $val) = each ($email)) { echo "$key => $val"; } } process_members($asker_rank, $total_members, $email); step one: php sets $asker_rank (in function declaration) equal to $asker_rank step two: php sets $email (in function declaration) equal to $total_members step three: php ignores $email array passed to process_members() step four: php passes $email to each(). $email is set to the value of $total_members, which is not an array, and chokes. Using : function process_members($asker_rank, $total_members, $email=array()) { ... } allows you to have a default value for $email. So you can either pass it or not. -Original Message- From: April [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 06, 2001 12:18 PM To: PHP General Subject: [PHP] Passing an array as an argument. How do you pass an array as an argument to a function? My code (or at least the important parts): function process_members($asker_rank, $email) { global $database_mysql; mysql_select_db($database_mysql); while (list ($key, $val) = each ($email)) { echo "$key => $val"; } } # This will display fine. # while (list ($key, $val) = each ($email)) { echo "$key => $val"; } # Doing the same thing with the function here returns this error, though. // Warning: Variable passed to each() is not an array or object in lib.inc on line 447 process_members($asker_rank, $total_members, $email); -- 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] GD, TTF, and Anit-Alias
Hi Brandon, You asked me in a private e-mail about anti-aliasing. As far as I know if ImageTTFText function, if you use negative color reference [such as -1, -2], It turns off the anti aliasing. I think the text is automatically antialiased using a positive number. Anyone, with a sharp idea? ;-) Ahmad Anvari - Original Message - From: Brandon Orther To: PHP User Group Sent: Tuesday, February 06, 2001 9:07 PM Subject: [PHP] GD, TTF, and Anit-Alias Hello I am making a php script that make an image with the text that I send to the script. What I was wondering is if there was an anti-alias function in GD for my test. Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.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] Help w/ PHP2 install
Hello, I posted a message a few days back about a compile error I was getting on a Apache install w/ PHP2, PHP4, msql, mysql, and ssl. I haven't had any response, so I decided to try and simplify and isolate the problem by eliminating PHP4, mysql, and ssl. Basically, I've prepped PHP2 as an Apache module with msql support (msql is already installed on my system), and now I'm just trying to compile PHP2 into Apache, via the following commands: [root@machine apache_1.3.14]# ./configure --activate-module=src/modules/extra/libphp.a --enable-module=php --prefix=/usr/local/apache ... configuration output... blah blah blah ... [root@machine apache_1.3.14]# make it goes through several directories compiling successfully, then I get the following error: gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci` \ -o httpd buildmark.o modules.o modules/standard/libstandard.a modules/extra/libextra.a main/libmain.a ./os/unix/libos.a ap/lib ap.a regex/libregex.a lib/expat-lite/libexpat.a -lm -lcrypt modules/extra/libextra.a: could not read symbols: Archive has no index; run ranlib to add one collect2: ld returned 1 exit status make[2]: *** [target_static] Error 1 make[2]: Leaving directory `/usr/local/source/apache_1.3.14/src' make[1]: *** [build-std] Error 2 make[1]: Leaving directory `/usr/local/source/apache_1.3.14' make: *** [build] Error 2 [root@machine apache_1.3.14]# I've searched the web and found references to this error (modules/extra/libextra.a: could not read symbols: Archive has no index; run ranlib to add one)... but no solution. Any assistance would be appreciated, and yes, I have tried the obvious: ranlib /path/to/modules/extra/libextra.a libextra.a is an archive which contains libphp.a (which was created by the PHP2 module compile), so I suppose it's possible that the error is actually in libphp.a. libextra.a is created by the command "ar cr libextra.a libphp.a" in the apache compile. I ran ar --help and found that the s option creates an index, so I tried ar crs libextra.a libphp.a, but still met with the same error when I tried running make again. FWIW, I have ranlib version "GNU ranlib 2.9.5", and I'm running under Yellow Dog Linux (supported on iMac hardware, which is unfortunately the only box I can use right now) D
[PHP] Sessions and Objects
If I save an object as a session var. will I still have access to its methods. Ryan -- 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] The meaning of myurl.myurl2.com
What is the meaning of a URL that has two periods in it? For example http://www.myloc.aristesoftware.com Where does that take the sufer relative to the root of aristesoftware.com? Todd -- Todd Cary Ariste Software [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] How to use phpIRC and question about HTML streaming!
I have readying "web application develoment with PHP4.0" by Tabias Ratschiller and Till Gerken at these days! In chapter 3, I have talk about creating a IRC client with phpIRC and HTML streaming, but it hasn't talk too much about the implementation, also, it haven't talk much about HTML streaming. He just say HTML streaming can create a interface which can let the process (running php script) continously output something to the HTTP client, without close a connection and establish again... Right, my question is, anyone can give me more info, or pointer for this two topic? Especially, the web site which provide the info i need and what type of browser support HTML streaming? Thanks! -- 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] binmode() in php?
is there an equivalent in PHP to Perl´s binmode() function? does anyone know? thanks, Joel. -- 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] undefined symbol: __dn_expand ???
Hey, I'm on Mandrake 7.1. I installed PHP 4.0 without any errors, using the following: ./configure --with-mysql=/usr/local/mysql --with-apxs=/usr/local/apache/bin/apxs --with-gnu-ld make make install It seemed to go fine -- no errors during installation, however, when I try to start apache I get the following error: Syntax error on line 207 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/libexec/libphp4.so: undefined symbol: __dn_expand ./apachectl start: httpd could not be started I've searched the internet all day, I can't find much reference on __dn_expand... I'm out of ideas so if anyone has any ideas on what might be wrong, please reply. Thanks for your time, -Jeff
Re: [PHP] OCILogOn and OCILogOff
I have looked at the comment there, even before I send message to the list. But I'm still wondering how can I disconnect from the Oracle db then? is it actually doing anything? When I developed our own API using ora_*, I never called ora_logoff at the end of every session, because ora_logoff did not return anything (before php 4.0.3). I didn't know where the problem exactly, but our database kept crashing because too many connection were opened (at least that was said by my DBA). I then called ora_logoff eventhough it did not return anything, just for the heck of it, and everything went better. It could be the problem with the DB itself, but I really don't want something like that to happen again using OCI*. Any ideas? Thanks a lot. Reuben D. Budiardja At 08:05 AM 2/6/01 -0600, you wrote: >See the comments here. http://www.php.net/manual/en/function.ocilogoff.php > > >"Reuben D Budiardja" <[EMAIL PROTECTED]> wrote: >Hi, >It seems to me that OCILogOff does not return anything. Evenif I do >something like this: > >$conn = OCILogOn("user", "passwd", "db"); >$logoff = OCILogOff($conn); > >$logoff is always empty. Does anyone know about this? any help? > >Thanks. >Reuben D. Budiardja -- 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] The meaning of myurl.myurl2.com
At 02:08 PM 2/6/2001, Todd Cary wrote: nop.. its another server beneath the aristesoftware.com TLD. for instance www.aristesoftware.com refers to the machine named "www" on the domain aristesoftware.com. I'd advise that you read about the structure of the Internet and how everything on the internet works. ~kurth >What is the meaning of a URL that has two periods in it? For example > >http://www.myloc.aristesoftware.com > >Where does that take the sufer relative to the root of >aristesoftware.com? > >Todd > >-- >Todd Cary >Ariste Software >[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]
[PHP] Blur text using GD and TTF
Hello, is there a way to blur text at all, I am trying to make a drop shadow effect. Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.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]
RE: [PHP] The meaning of myurl.myurl2.com
> What is the meaning of a URL that has two periods in it? For example > > http://www.myloc.aristesoftware.com > > Where does that take the sufer relative to the root of > aristesoftware.com? > > Todd Somewhere the above host name resolves to an IP address. It is just a different host. In the world of domain names , arietesoftware is a subnet of ".com" and "myloc" is a subnet of "aristesoftware.com" with "www" finally being a host in the subnet "myloc.aristesoftware.com." Also, com= root domain aristesoftware = 2nd level domain myloc = 3rd level domain www= host in the 3rd level domain This could go on forever. John -- 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] PHP/Majordomo web interface
I'm wondering if such a thing already exists as a "package". I'd like to be able not only to manage a mailing list, but also to view message archives, have users subscribe and so on. A bit like eGroups. Thanks. Michelle (Jag) -- 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] undefined symbol: __dn_expand ???
On Tue, 6 Feb 2001, Jeffrey Dyer wrote: > Hey, I'm on Mandrake 7.1. I installed PHP 4.0 without any errors, using > the following: ./configure --with-mysql=/usr/local/mysql > --with-apxs=/usr/local/apache/bin/apxs --with-gnu-ld make make install > > It seemed to go fine -- no errors during installation, however, when I > try to start apache I get the following error: Syntax error on line 207 > of /usr/local/apache/conf/httpd.conf: Cannot load > /usr/local/apache/libexec/libphp4.so into server: > /usr/local/apache/libexec/libphp4.so: undefined symbol: __dn_expand > ./apachectl start: httpd could not be started __dn_expand is a reslover function. The fix is almost certain to be to add -lresolv to the LIBS= line in your php makefile. --Steve -- 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] porting a php3 module/patch to php4
Having seen Richard Lynch write recently on this list: : There really were very, very, very few changes from PHP3 to PHP4, : considering it was a complete re-write of the engine. I think I am going to break down and ask for tips, tricks, etc, porting a php3 module to php4. This thing was written by someone else to be part of php-3.0.6 (!) and adds a few functions for accessing a specialized database to PHP. It was intended to live in the dl/ directory. What is it going to take to get this to work in ext/ or where- ever it should be for php4? Benjamin -- 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] Outline text using GD
Hello, Does anyone know how to outline text in GD? Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.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] software development qu
Hope this isn't too off-topic. [Background:] I'm developing a enterprise web development platform of sorts; the details aren't too important, but I'm looking for a way to keep this as general as possible. PHP is my embedded language of choice, and I'll develop the software in PHP first, but I'd first like to come up with a standardized API of sorts to interface with the database and provide (web developer) user functionality. This way, when I (or someone else) port the application to say, Perl or JSP (ColdFusion is just out! I think I'll make it a part of my license that it can never be ported to CF. :-) ), each implementation has a common interface. [Real question:] So, I've looked into using IDL (Java - CORBA) as a standardized way to define my API. This seems to be a decent way to do it -- although I have no need to use the CORBA functionality that it provides. I just need a standardized way to DEFINE my API . . . for reference mostly. Has anyone dealt with this? What do you use to do this? Or is there a standard technique used in the industry? Thanks in advance. Dean. -- 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] Dear Friends & Future Millionaire:
AS SEEN ON NATIONAL TV: Making over half million dollars every 4 to 5 months from your home for an investment of only $25 U.S. Dollars expense one time THANK'S TO THE COMPUTER AGE AND THE INTERNET ! == BE A MILLIONAIRE LIKE OTHERS WITHIN A YEAR!!! Before you say ''Bull'', please read the following. This is the letter you have been hearing about on the news lately. Due to the popularity of this letter on the Internet, a national weekly news program recently devoted an entire show to the investigation of this program described below, to see if it really can make people money. The show also investigated whether or not the program was legal. Their findings proved once and for all that there are ''absolutely NO Laws prohibiting the participation in the program and if people can -follow the simple instructions, they are bound to make some mega bucks with only $25 out of pocket cost''. DUE TO THE RECENT INCREASE OF POPULARITY & RESPECT THIS PROGRAM HAS ATTAINED, IT IS CURRENTLY WORKING BETTER THAN EVER. This is what one had to say: ''Thanks to this profitable opportunity. I was approached many times before but each time I passed on it. I am so gladI finally joined just to see what one could expect in return for the minimal effort and money required. To my astonishment, I received total $ 610,470.00 in 21 weeks, with money still coming in." Pam Hedland, Fort Lee, New Jersey. === Here is another testimonial: "This program has been around for a long time but I never believed in it. But one day when I received this again in the mail I decided to gamble my $25 on it. I followed the simple instructions and walaa . 3 weeks later the money started to come in. First month I only made $240.00 but the next 2 months after that I made a total of $290,000.00. So far, in the past 8 months by re-entering the program, I have made over $710,000.00 and I am playing it again. The key to success in this program is to follow the simple steps and NOT change anything.'' More testimonials later but first, = PRINT THIS NOW FOR YOUR FUTUREREFERENCE == $ If you would like to make at least $500,000 every 4 to 5 months easily and comfortably, please read the following...THEN READ IT AGAIN and AGAIN!!! $ FOLLOW THE SIMPLE INSTRUCTION BELOW AND YOUR FINANCIAL DREAMS WILL COME TRUE, GUARANTEED! INSTRUCTIONS: =Order all 5 reports shown on the list below = For each report, send $5 CASH, THE NAME & NUMBER OF THE REPORT YOU ARE ORDERING and YOUR E-MAIL ADDRESS to the person whose name appears ON THAT LIST next to the report. MAKE SURE YOUR RETURN ADDRESS IS ON YOUR ENVELOPE TOP LEFT CORNER in case of any mail problems. === When you place your order, make sure you order each of the 5 reports. You will need all 5 reports so that you can save them on your computer and resell them. YOUR TOTAL COST $5 X 5=$25.00. Within a few days you will receive, vie e-mail, each of the 5 reports from these 5 different individuals. Save them on your computer so they will be accessible for you to send to the 1,000's of people who will order them from you. Also make a floppy of these reports and keep it on your desk in case something happen to your computer. IMPORTANT - DO NOT alter the names of the people who are listed next to each report, or their sequence on the list, in any way other than what is instructed below in step '' 1 through 6 '' or you will loose out on majority of your profits. Once you understand the way this works, you will also see how it does not work if you change it. Remember, this method has been tested, and if you alter, it will NOT work !!! People have tried to put their friends/relatives names on all five thinking they could get all the money. But it does not work this way. Believe us, we all have tried to be greedy and then nothing happened. So Do Not try to change anything other than what is instructed. Because if you do, it will not work for you. Remember, honesty reaps the reward!!! 1 After you have ordered all 5 reports, take this advertisement and REMOVE the name & address of the person in REPORT # 5. This person has made it through the cycle and is no doubt counting their fortune. 2 Move the name & address in REPORT # 4 down TO REPORT # 5. 3 Move the name & address in REPORT # 3 down TO REPORT # 4. 4 Move the name & address in REPORT # 2 down TO REPORT # 3. 5 Move the name & address in REPORT # 1 down TO REPORT # 2 6 Insert YOUR name & address in the REPORT # 1 Position. PLEASE MAKE SURE you copy every name & address ACCURATELY! == Take this entire letter, with the modified list of names, and save it on your computer. DO NOT MAKE ANY OTHE
[PHP] Is there a way to call php functions in perl? and vice versa
Is there a way to call php functions in perl? or call perl functions from PHP codes? Thanks, David _ Get your FREE download of MSN Explorer at http://explorer.msn.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] usort Issues and Classes
Greets, I am playing around with usort and an LDAP class. Basically, I want to sort the results of an LDAP search based on a specific criterion. class CLDAP { var $m_Entries; var $m_LinkIdentifier; ... function Connect() { ... } function Bind() { ... } function FindEntries($BaseDN, $Filter) { $ProcName="CLDAP::FindEntries"; $LDAPSearchResult=ldap_search($this->m_LinkIdentifier, "$BaseDN", "$Filter"); if($LDAPSearchResult) { $Entries=ldap_get_entries($this->m_LinkIdentifier, $LDAPSearchResult); if($Entries) { //print "$ProcName: Entries found for filter of $Filter"; $this->m_Entries = $Entries; } else { // No entries //print "$ProcName: No entries found for filter of $Filter"; } } } //* //* SORT CLASS MEMBERS //* function MySort() { $ProcName = "CLDAP::MySort"; // Sort the entries; print "$ProcName: BEFORE: " . $this->m_Entries["count"] . ""; usort($this->m_Entries, array($this,"cmp")); print "$ProcName: AFTER: " . $this->m_Entries["count"] . ""; } function cmp ($a, $b) { $ProcName = "CLDAP:cmp"; print "$ProcName: IN COMPARE: " . $this->m_Entries["count"] . ""; return strcmp($a["sn"],$b["sn"]); } } Now, with the above (hacked up) example, I create my LDAP object, connect to an LDAP server and retrieve values based on a DN and Filter. Essentially, I get a multi-dimensional array populated with the results from my LDAP filter, with key references to their attributes ("givenname" = first name, "sn" = last name, etc...). This works! I can populate my object property '$this->m_Entries' with my UNSORTED LDAP results. When I run the $LDAP->MySort() routine, '$this->m_Entries' has values BEFORE the usort function call, but has NULL entries AFTER the function call. '$this->cmp' has values each time it is called. Somehow, my data is being wiped out by usort after I return from '$this->cmp'. The above example is attempting to sort my LDAP results by "sn", or last name in LDAP-ese. What is happening here? Why is my array of results disappearing after the usort? I played with globals, and I even saved my array into a temp variable and used that instead. The temp variable is fine before the usort, but is totally gone after. Any help is appreciated! Cheers, Jason -- 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] Error with Cookies and SSI
I am having a problem getting a php script to read a cookie that should be set. I have to incorporate the output of a php script into an existing page that uses SSI to do a virtual include of my php script. i.e. Problem is, when I do this, the script does not set the cookie variables. If I just run the script the cookies are set, and read, correctly, but when I include the PHP script with the SSI call it does not read the cookie variables for some reason. Does anyone know a work-around for this? And using a std php script is not an option, I need a way to get this to work using SSI. Any help would be greatly appreciated. Thanks in advance, Ben -- 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] Dear Friends & Future Millionaire:
On 2001-02-06, Hi Tech Services did say, > > AS SEEN ON NATIONAL TV: > PLACE YOUR ORDER FOR THESE REPORTS NOW : > > REPORT# 1: The Insider's Guide to Advertising for Free on the Net Can we _please_ get the full headers for this message? The list software seems to strip them right off. -- Sapere aude My mind not only wanders, it sometimes leaves completely. -- 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] Error with Cookies and SSI
sounds like your php script cannot write to the header, which means you'll have to set cookies (gasp!) client-side. there are some handy javascript cookie libraries that can make this much easier on you. such as: http://hotwired.lycos.com/webmonkey/javascript/code_library/wm_ckie_lib/ fear not the javascript. it is your friend. DanO -Original Message- From: Ben Wiechman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 06, 2001 12:57 PM To: [EMAIL PROTECTED] Subject: [PHP] Error with Cookies and SSI I am having a problem getting a php script to read a cookie that should be set. I have to incorporate the output of a php script into an existing page that uses SSI to do a virtual include of my php script. i.e. Problem is, when I do this, the script does not set the cookie variables. If I just run the script the cookies are set, and read, correctly, but when I include the PHP script with the SSI call it does not read the cookie variables for some reason. Does anyone know a work-around for this? And using a std php script is not an option, I need a way to get this to work using SSI. Any help would be greatly appreciated. Thanks in advance, Ben -- 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/Majordomo web interface
El Mar 06 Feb 2001 16:38, Jaguwar escribió: > I'm wondering if such a thing already exists as a "package". I'd like to > be able not only to manage a mailing list, but also to view message > archives, have users subscribe and so on. A bit like eGroups. I have been looking for something that those this the past few weeks, and found non. So at this moment I started a proyect with the local LUG, which will store mails from any mailling list into a database and have a search engine. Pretty cool, no? :-) -- System Administration: It's a dirty job, but someone told I had to do it. - Martín Marqués email: [EMAIL PROTECTED] Santa Fe - Argentinahttp://math.unl.edu.ar/~martin/ Administrador de sistemas en math.unl.edu.ar - -- 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] Change Password script
i figured a better way to do it.. ill just have to run a cron that check a flat file thats encrypted. <-CoreComm-Internet-Services--http://core.com/-> (Jon Marshall CoreComm Services Chicago) ([EMAIL PROTECTED] Systems Engineer II) ([EMAIL PROTECTED] Network Operations) <-Enthalpy.orghttp://enthalpy.org/-> ([EMAIL PROTECTED] The World of Nothing) <--> On Sat, 3 Feb 2001 [EMAIL PROTECTED] wrote: > enthalpy wrote: > > > > anyone have example code of a change password script in php? > > > > <-CoreComm-Internet-Services--http://core.com/-> > > (Jon Marshall CoreComm Services Chicago) > > ([EMAIL PROTECTED] Systems Engineer II) > > ([EMAIL PROTECTED] Network Operations) > > <-Enthalpy.orghttp://enthalpy.org/-> > > ([EMAIL PROTECTED] The World of Nothing) > > <--> > > > > -- > this is for freebsd - use at your own risk - > best used as a php shell script run by root > > > $newpassword = "veryinsecure"; > $fp = popen("/usr/sbin/pw usermod -n username -h passwd", "w"); > > fputs($fp, "$newpassword"); > pclose($fp) > > -- > 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] framing search results
Thanks for your help on this! Because the links that are on the HTML pages won't be determined by myself (and won't be encoded), I need to encode them when they are read by the script. All that I do is put the call to the php script onto the link. So what I tried to do is plugged the code below urlencode($url) right into the frame call itself. But of course that doesn't work because I'm still running into the 404 error. Can I encode the $url taken in from the browser then decode it in the output? Since I can't store the links in the script or in a database, the url won't be encoded. It works just fine if I link to ... frame.php?x=frame&url=http%3A%2F%2Fwww.mls.ca%2Fbin%2Furllink.exe%3Freq%3Dre altor%26x_aid%3D1%26x_bid%3d0 but not frame.php?x=frame&url=http://www.mls.ca/bin/urllink.exe?req=realtor&x_aid=11 111&x_bid=0 Is there any way around this? Thanks again for your input! __ Jason Dulberg Extreme MTB http://extreme.nas.net > You can encode URLs with urlencode() and decode them by using > urldecode()... > > try read here: > > www.php.net/urlencode > www.php.net/urldecode > > > ### my way: > ### you pass $url: > > $url = www.maxim.cx/get.php?this=variables&as=many&as=you&what=want > echo ""; > > > ### and you catch it with: > > tch($x){ > case "frame": > ?> > >marginheight="0" scrolling="NO" noresize> > > break; > } > ?> > > > > Cheers, > Maxim Maletsky > > > > > > -Original Message- > From: Jason Dulberg [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, February 06, 2001 3:09 PM > To: [EMAIL PROTECTED] > Subject: [PHP] framing search results > > > I'd like to create a script that will frame search results made by various > databases. I will be hardcoding these links into an HTML page. Since there > will be alot of these links and I will be using the script across several > virtual hosts, I can't have the links built by a db as they link > to offsite > stuff. > > My problem so far is that if I try to link to a search result (which is > obviously built by a database), I get a bunch of errors because > the &, =, ? > etc. fields are dropped. So basically, I need to escape the ?,&'s etc. in > the url. I can do this in perl (cgi::escape) but I'm not quite sure how to > do it in php. Couldn't get it to work properly in perl so I'm > crossing over > to PHP to see if its doable. > > Here's what I got from a code example from zend.com. Basically, I > just need > to add the %3A etc onto $url. > > switch($x){ > case "frame": > ?> > >marginheight="0" scrolling="NO" noresize> > > break; > } > ?> > > Now one thing that I noticed is that often when the url is > encoded and I try > the link, I get a 404 error. What am I doing wrong? > > So the links that I hardcode into the html is something like > xyz.com/frame.php?page=searchresults.php or something like that. > > I'm really new to php so sorry if this is kinda vague. If there's a better > way of doing what I'm trying to above, please let me know! > > Thanks in advance for your help! > __ > Jason Dulberg > Extreme MTB > http://extreme.nas.net > > > -- > 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] Name of Class' instance
I think I already know the answer to this question, but I just want to make certain. Is there a way that a class can know the name of the variable used to instantiate it? So if you do: $joeBob = new myClass(); "myClass" can somehow know that "joeBob" is the name of it's instance? I'm thinking 'no', but would like verification. Nothing I've been able to do has gotten this to work so that lends credence to my thinking, but again, I just want to be certain. Thanks! Chris
Re: [PHP] PHP/Majordomo web interface
Oh bother! What you are doing sounds like it's on the way to what I'm looking for, at the very least! I guess it will take me longer than I'd thought, though. On the other hand, it'll be one heck of a learning ground! :-) Gracìas, Martin! Michelle - Original Message - From: "Martin A. Marques" <[EMAIL PROTECTED]> To: "Jaguwar" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, February 06, 2001 3:58 PM Subject: Re: [PHP] PHP/Majordomo web interface El Mar 06 Feb 2001 16:38, Jaguwar escribió: > I'm wondering if such a thing already exists as a "package". I'd like to > be able not only to manage a mailing list, but also to view message > archives, have users subscribe and so on. A bit like eGroups. I have been looking for something that those this the past few weeks, and found non. So at this moment I started a proyect with the local LUG, which will store mails from any mailling list into a database and have a search engine. Pretty cool, no? :-) -- System Administration: It's a dirty job, but someone told I had to do it. - Martín Marqués email: [EMAIL PROTECTED] Santa Fe - Argentina http://math.unl.edu.ar/~martin/ Administrador de sistemas en math.unl.edu.ar - -- 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/Majordomo web interface
El Mar 06 Feb 2001 18:39, Jaguwar escribió: > Oh bother! What you are doing sounds like it's on the way to what I'm > looking for, at the very least! I guess it will take me longer than I'd > thought, though. On the other hand, it'll be one heck of a learning > ground! Well, when I sent the mail to the mailling list we have here in our LUG, I got a responce from Roberto Alsina (KDE developer) that said he was working on something like that, with C++ and it was 80% compete. So lets see what comes out of all this. > Gracìas, Martin! De nada. ;-) -- System Administration: It's a dirty job, but someone told I had to do it. - Martín Marqués email: [EMAIL PROTECTED] Santa Fe - Argentinahttp://math.unl.edu.ar/~martin/ Administrador de sistemas en math.unl.edu.ar - -- 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] Questions about simple php problems
Hello everybody, I would like to ask you for some help with PHP. I am a newbie both to the list and to PHP. I try to learn from the books and manuals, but there are some things I do mnot understand and I can't read it anywhere in the books. Please take a moment and reply to my mail. I know that such problems as I have may seem lame to most of you, descent programmers, but I am really desperate to learn. Unfortunately I am not a programmer by profesion. Let me list the problems I have. 1. I registered my domain and I input the right DNs numbers. After I uploaded html file index.html onto the server, using ftp program, everything was fine. However, I also uploaded file called test.html. After I typed in my domain url address with /test.html the file was not working. What do I do wrong? 2. Now on with PHP... I tried to write php scripts inside html files... Simple scripts with Can I do that? Will it work? I think php program is installed on the server I am using, but the php seems not to work. What do I do wrong? 3. Now suppose I write a seperate php script as a seperate file, like test.php. How do I refer to it from html file in order to make the php script work? And can I start my web page directly with php? If so how? 4. What program or editor do you people use in order to simply "write" or "code" html and php? Till now I was using Netscape Composer for simple html editing. But I am sure there are some programming tools... I've heard there is something like JBuilder, but some friends of mine tell me it is too powerful tool. Do you agree? What programming tools would you recommend for me to code php? What programs do you use? 5. I would like to have a link on my web page that when I move my mouse cursor on it, it changes and becomes, for example, underlines or bold or changes color. How can I do that? How do I do that in php? 6. How can I refer to data base records? If I want to store date or get data and print it out... Is it only using cgi and FORM tags? Are there any other ways to do that? I would very much appreciate, if people like you, good programmers could help me and just reply to my points. Please elaborate, the more you write, teh better I can understand. It would mean a lot to me if someone could comment or 'enlighten' me. There are things I can't find in books and tutorials. Thank you and I await your replies. Jericho __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.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] Just a thanks
Just a thanks to everyone on this list, for being helpful, and for being tolerant. It seems it's a rare thing these days. Just thought I'd let you guys know, that back when I was learning PHP (i'm a bit of an old hat by now), this list really helped me out, so now I'm try to contribute as much as possible, although that doesn't seem like too much sometimes :) Cheers, Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... suffering. -- 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] Questions about simple php problems
Answers are numbered according to questions. 1. Contact your hosting provider about this one. 2. Unless the webserver is instructed to let php handle html files, you cannot include php code within html. It has to be a php file so php can process it. 3. Again, contact your hosting provider and ask them to make index.php one of the default files for your web. 4. I use Cold Fusion Studio (the advanced version of Homesite), it rocks when coding, but since the wysiwyg in CFS sucks, I do that in Frontpage, then copy the html code to Homesite. However, I just got Dreamweaver 4 and it seems to combine all the features of those two and much more, so I'm gradually switching over. 5. Use javascript or stylesheets. 6. Go to php.net and mysql.com. Read their very fine documentation, and it should help you get started. PHP can accept variables both from form fields and in hyperlinks as well as cookies or databases or even textfiles. It's extraordinarily flexible and basically it comes down to what YOU want, and what you feel comfortable with. -Original Message- From: Jericho Barimen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 06, 2001 2:28 PM To: [EMAIL PROTECTED] Subject: [PHP] Questions about simple php problems Hello everybody, I would like to ask you for some help with PHP. I am a newbie both to the list and to PHP. I try to learn from the books and manuals, but there are some things I do mnot understand and I can't read it anywhere in the books. Please take a moment and reply to my mail. I know that such problems as I have may seem lame to most of you, descent programmers, but I am really desperate to learn. Unfortunately I am not a programmer by profesion. Let me list the problems I have. 1. I registered my domain and I input the right DNs numbers. After I uploaded html file index.html onto the server, using ftp program, everything was fine. However, I also uploaded file called test.html. After I typed in my domain url address with /test.html the file was not working. What do I do wrong? 2. Now on with PHP... I tried to write php scripts inside html files... Simple scripts with Can I do that? Will it work? I think php program is installed on the server I am using, but the php seems not to work. What do I do wrong? 3. Now suppose I write a seperate php script as a seperate file, like test.php. How do I refer to it from html file in order to make the php script work? And can I start my web page directly with php? If so how? 4. What program or editor do you people use in order to simply "write" or "code" html and php? Till now I was using Netscape Composer for simple html editing. But I am sure there are some programming tools... I've heard there is something like JBuilder, but some friends of mine tell me it is too powerful tool. Do you agree? What programming tools would you recommend for me to code php? What programs do you use? 5. I would like to have a link on my web page that when I move my mouse cursor on it, it changes and becomes, for example, underlines or bold or changes color. How can I do that? How do I do that in php? 6. How can I refer to data base records? If I want to store date or get data and print it out... Is it only using cgi and FORM tags? Are there any other ways to do that? I would very much appreciate, if people like you, good programmers could help me and just reply to my points. Please elaborate, the more you write, teh better I can understand. It would mean a lot to me if someone could comment or 'enlighten' me. There are things I can't find in books and tutorials. Thank you and I await your replies. Jericho __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.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 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] RE: [PHP-DB] PHP, MySQL and XML
http://freshmeat.net/projects/exist/ -Original Message- From: Thor M. Steindorsson [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 5:57 PM To: php-general; php-db Subject: [PHP-DB] PHP, MySQL and XML Does anyone have a solution for importing data from a RDF-XML file into a MySQL database? I've been racking my brain, as well as looking at tutorials and some xml parsers, but if someone has something like this it would save me tons of time. Thanks! -- PHP Database 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] Questions
Any of you guys care to enlighten this fellow any further than me? Please reply to the list, not me :) Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... suffering. - Original Message - From: "Jericho Barimen" <[EMAIL PROTECTED]> To: "Josh G" <[EMAIL PROTECTED]> Sent: Wednesday, February 07, 2001 9:39 AM Subject: Re: Just a thanks [snip] > Hello everybody, > > I would like to ask you for some help with PHP. I am a > newbie both to the list and to PHP. I try to learn > from the books and manuals, but there are some things > I do mnot understand and I can't read it anywhere > inthe books. > > Please take a moment and reply to my mail. I know that > such problems as I have may seem lame to most of you, > descent programmers, but I am really desperate to > learn. Unfortunately I am not a programmer > byprofesion. > > Let me list the problems I have. > > 1. I registered my domain and I input the right DNs > numbers. After I uploaded html file index.html onto > the server, using ftp program, everything was fine. > However, I also uploaded file called test.html. After > I typed in my domain url address with /test.html the > file was not working. What do I do wrong? Sounds like an installation problem, I can't really help there. I follow the instructions, and if they fail I'm usually stuffed ;-) > > 2. Now on with PHP... I tried to write php scripts > inside html files... Simple scripts with > Can I do that? Will it work? I think php program is > installed on the server I am using, but the php seems > not to work. What do I do wrong? Should work, don't know the problem. Try having a script called test.php that consists only of then point your browser at http://yourdomain.com/test.php and see what happens. > 3. Now suppose I write a seperate php script as a > seperate file, like test.php. How do I refer to it > from html file in order to make the php script work? > And can I start my web page directly with php? If > sohow? Not sure I understand the question. You just need links to the pages as if they were ordinary html. Or you can access one script from another by using include(); I think you need to read through the first few sections of the php manual, at http://www.php.net/ as it covers a lot of these issues. > 4. What program or editor do you people use in order > to simply "write" or "code" html and php? Till now I > was using Netscape Composer for simple html editing. > But I am sure there are some programming tools... I've > heard there is something like JBuilder, but some > friends of mine tell me it is too powerful tool. Do > you agree? What programming tools would you recommend > for me to code php? What programs do you use? Oh no! This here is a religious issue, get's asked every few days, and there's no answer. Use whatever you like. Some peope love vi and emacs (unix), some love homesite, textpad, or (myself included) ultraedit on windows. > 5. I would like to have a link on my web page that > when I move my mouse cursor on it, it changes and > becomes, for example, underlines or bold or changes > color. How can I do that? How do I do that in php? This is more a html problem thant a php problem, but you need to use stylesheets... here's an example, paste it into a html page and play around with it... this will change colour in explorer. > 6. How can I refer to data base records? If I want to > store date or get data and print it out... Is it only > using cgi and FORM tags? Are there any other ways todo > that? This one's a biggie... Methinks you should master some of the simplre things first, then ask this one by itself ;-) Another tip... The more specific the question, the better, longer answers you'll recieve. > I would very much appreciate, if people like you, good > programmers could help me and just reply to my points. > Please elaborate, the more you write, teh better I can > understand. It would mean a lot to me if someone could > comment or 'enlighten' me. There are things I can't > find in books and tutorials. > > Thank you and I await your replies. > > Jericho > -- 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] MD5 / crypt
Hello, What is the best way to encrypt/decrypt strings when passing between php pages? I am using md5 and currently get strings that produce "unprintable" characters or characters like slashes or other things that could interfere with the passing between php pages. (e.g. http://server.asdf/action.php?args=encryptedstring ) e.g. 5V"g\7`Qv1Sc]aV&Q4a6#bW>SbU!f_4V1QvPaUe 5Q!c b versus something like: fdsay98fdsa25ht4636ussd9fg3245ijrg9u341271234hjas897rewq I really would like to restrict everything to 0-9,a-z,A-Z characters so the encrypted string is "friendly" :-) Thanks Dan -- 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] MD5 / crypt
> >e.g. >5V"g\7`Qv1Sc]aV&Q4a6#bW>SbU!f_4V1QvPaUe 5Q!c b Something else is "helping" you. MD5 output does not look like that. MD5 is 32 hex chars, 0-9 and a-f I have not tried passing MD5 values out to the browser though, it may be the browser "helping". I use MD5 extensively on my spamwhack site. Hard to demo though, it's all transparent to the user, except when queries come in using wget, where they are sending me MD5 data. That works fine too, leading me even more to suspect that the broswser is getting in the way. -- Dave's Engineering Page: http://www.dvanhorn.org Where's dave? http://www.findu.com/cgi-bin/find.cgi?kc6ete-9 -- 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] Date Formatting
Cold Fusion has a wonderful function called CreateODBCDate(), which takes as an argument any date in just about any format and returns a standard ODBC date format that you can plug into a database without worrying about conversion. Does PHP have a similar function? I've looked for one but can't seem to find it anywhere. -- Richard Crawford (mailto:[EMAIL PROTECTED]) http://www.mossroot.com AIM Handle: Buffalo2K "Tomorrow, we'll seize the day and throttle it!" -Calvin -- 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] Indexing Engine
I was wondering if anyone around knows of a tool (free if possible) to index all the pages of my website and implement a search engine. I prefer it to run on NT. THNKS!! Diego Fulgueira. -- 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] MD5 / crypt
I've run into this befor run base64_encode() on the string befor you pass it around then base64_decode() after you get it where its going. - James > Hello, > > What is the best way to encrypt/decrypt strings when passing between php > pages? > > I am using md5 and currently get strings that produce "unprintable" > characters > or characters like slashes or other things that could interfere with the > passing > between php pages. (e.g. > http://server.asdf/action.php?args=encryptedstring ) > > e.g. > 5V"g\7`Qv1Sc]aV&Q4a6#bW>SbU!f_4V1QvPaUe 5Q!c b > > versus > > something like: > fdsay98fdsa25ht4636ussd9fg3245ijrg9u341271234hjas897rewq > > I really would like to restrict everything to 0-9,a-z,A-Z characters so > the encrypted string is "friendly" :-) > > Thanks > Dan -- 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] Error with Cookies and SSI
Yes, the project is a small stock ticker. The user creates an account, and selects their own stocks, their login name is stored in a cookie, so to view their own custom stock when they return to the page the script needs to read the cookie and pull up the users information. When I try to run the php script with a virtual SSI call, it executes just fine, but does not read the cookie variables. However, I know the cookies are being set because there is another portion of the script that is just a straight php page, and that page reads the cookie variables just fine. So they are getting set, but for some strange reason when the script is parsed as a SSI virtual include, it does not take the time to read the cookie and set the variables. Any idea why? This just seems weird to me, I'm guessing that the SSI call has something to do with it, but I don't understand why it would execute everything else without a hitch, but fail to read the cookie vars. -Original Message- From: DanO [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 06, 2001 4:07 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Error with Cookies and SSI you could try exec cgi, but i can't say definitively that that will work. am i correct in interpreting that your php code is dependent upon READING cookies? DanO -Original Message- From: Ben Wiechman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 06, 2001 2:03 PM To: 'DanO' Subject: RE: [PHP] Error with Cookies and SSI The cookies do get set, but they are not read in and set when the script is executed as a SSI virtual include. Is there some way to force read the cookies? Or should I maybe try using something besides a virtual include with my SSI? i.e. soemthing along the lines of the exec-cgi SSI call? Ben -Original Message- From: DanO [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 06, 2001 3:03 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Error with Cookies and SSI sounds like your php script cannot write to the header, which means you'll have to set cookies (gasp!) client-side. there are some handy javascript cookie libraries that can make this much easier on you. such as: http://hotwired.lycos.com/webmonkey/javascript/code_library/wm_ckie_lib/ fear not the javascript. it is your friend. DanO -Original Message- From: Ben Wiechman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 06, 2001 12:57 PM To: [EMAIL PROTECTED] Subject: [PHP] Error with Cookies and SSI I am having a problem getting a php script to read a cookie that should be set. I have to incorporate the output of a php script into an existing page that uses SSI to do a virtual include of my php script. i.e. Problem is, when I do this, the script does not set the cookie variables. If I just run the script the cookies are set, and read, correctly, but when I include the PHP script with the SSI call it does not read the cookie variables for some reason. Does anyone know a work-around for this? And using a std php script is not an option, I need a way to get this to work using SSI. Any help would be greatly appreciated. Thanks in advance, Ben -- 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] Java Servlet Support
"Shawn J. Wallace" wrote: > That sounds excellent. So if I understand you correctly, I could run > Apache with JServ (or Tomcat) and build PHP into it to get a nice > solution. I could then write servlets that call PHP scripts/functions and > vice versa? You betcha. Alex -- 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]