RE: [PHP] Recursive SQL Queries: Web Directory Categories
James, Take a look at hierarchical queries in MS SQl. If I'm not mistaken, this is part of the SQL 99 standard and is implemented by many SQL 92 compliant database vendors. I know ORACLE and DB2 support it. I'm not sure if you already have but I would investigate this topic with MS SQL. Mike -Original Message- From: James Crowley [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 1:45 PM To: [EMAIL PROTECTED] Subject: [PHP] Recursive SQL Queries: Web Directory Categories Hi, I have a web directory which allows sub-categories to an unlimited level. This is done with a categories table, and assigning a parentid to each... For example ID ParentIDName 10 Products 21 Sub-Category of Products (Level 1) 31 Another Sub-Category (Level 1) 42 A sub-sub-category (Level 2) What I need to do is return a list of an items parent categories. For example, if we are in category 4, I want text outputted saying Products \ Sub-Category\sub-sub Category However, it does not seem possible to do this with a single SQL query. I have succeeded in creating a recursive one below (in MS SQL): CREATE PROCEDURE dbo.dir_recurse(@parentid INT) AS --// List its parent categories DECLARE @childid INT DECLARE hC CURSOR LOCAL FOR SELECT parent FROM categories c WHERE id = @parentid ORDER BY c.name FOR READ ONLY OPEN hC FETCH NEXT FROM hC INTO @childid WHILE @@FETCH_STATUS = 0 AND @childid != 0 BEGIN EXECUTE dir_recurse @childid FETCH NEXT FROM hC INTO @childid END CLOSE hC DEALLOCATE hC RETURN 0 GO However, this returns more than one result set, which neither ASP or PHP (so therefore it's probably the ODBC driver...) seem to support. Help! Regards, - James Editor, VB Web == Web - http://www.vbweb.co.uk Email - [EMAIL PROTECTED] ICQ# - 60612011 == -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 06 May 2001 20:11 To: [EMAIL PROTECTED] Subject: php-general Digest 6 May 2001 19:11:22 - Issue 670 php-general Digest 6 May 2001 19:11:22 - Issue 670 Topics (messages 51587 through 51649): IIS instead of PWS!!! what else can i do.. 51587 by: Thomas Edison Jr. 51588 by: Zak Greant 51591 by: Thomas Edison Jr. 51592 by: Thomas Edison Jr. 51593 by: Zak Greant 51594 by: Alexander Skwar Re: PHP on PWS not working! 51589 by: Thomas Edison Jr. 51590 by: Thomas Edison Jr. 51600 by: Phil Driscoll 51640 by: Thomas Edison Jr. 51644 by: Phil Driscoll Re: Sorry, what is PWS 51595 by: Alexander Skwar Re: Free Database Design Program 51596 by: Andrzej Swedrzynski Novedades en Gordos.com 51597 by: Gordos.com PHP as apache module and security. 51598 by: Andrzej Swedrzynski 51607 by: Estelle Martin 51609 by: Andrzej Swedrzynski Re: nslookup function ? 51599 by: Tom Carter Complete Newbie 51601 by: biscut What is msvcr70.dll?? 51602 by: Ermanno Iannacci Re: PEAR where should I start? 51603 by: Gyozo Papp Image displaying problem 51604 by: Estelle Martin Re: class (not class instance) variables 51605 by: Gyozo Papp Re: quicker query? 51606 by: Gyozo Papp searching a MySQL database 51608 by: Jamie Saunders 51620 by: bill 51623 by: John Vanderbeck Insert data into mysql table 51610 by: Mohamedou Re: wordwrap 51611 by: Yasuo Ohgaki php4apachi.dll 51612 by: Darren best ide for windows 51613 by: Alexander Bierbrauer 51615 by: Gyozo Papp 51617 by: Geir Eivind Mork 51618 by: John Vanderbeck 51626 by: Henrik Hansen 51628 by: Andrzej Swedrzynski 51629 by: Gyozo Papp 51630 by: Alex Piaz 51633 by: Alexander Skwar 51634 by: Bjorn Sodergren 51635 by: Andrzej Swedrzynski 51637 by: John Vanderbeck 51639 by: Andrzej Swedrzynski php.exe [filename .php] vs. run [filename.php] via webserver 51614 by: Art Install problems with PHP and GD 51616 by: John Vanderbeck if string contains... 51619 by: Jamie Saunders 51621 by: Alvin Tan 51622 by: Gyozo Papp Slightly OT - Backing up mySQL... 51624 by: Nick Terzich 51625 by: Felix Kronlage 51627 by: Henrik Hansen Re: simple database extraction problem :( 51631 by: Manuel Lemos Can php give me row number? 51632 by: Jan Grafstrvm 51636 by: Gyozo Papp 51642 by: Stephan Ahonen Flash/PHP/MySQL 51638 by: FredrikAT 51641 by: Eduardo Pirez Jover Passing variables to another page - newbie 51643 by: Dean Martin 51645 by: Jack Dempsey 51646 by: John Vanderbeck 51647 by: tcuhost.hotmail.com [OT?] permission denied[OT?] 51648 by: Alexander Bierbrauer file()
RE: [PHP] Logout Problem auf .htaccess-Login
Don't quote me on this, but I think if you send the user a header saying he's unauthorized then apache will remove the PHP_AUTH_* information. Mike -Original Message- From: Jochen Kaechelin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 01, 2001 4:30 AM To: PHP General Subject: [PHP] Logout Problem auf .htaccess-Login Hello List! Is it possible to unset $PHP_AUTH_USER and $PHP_AUTH_PW after a successfull '.htaccess-login'? I wan't to give all users the possibility to 'logout'. I will destroy all sessions and unset $PHP_AUTH_USER, but Apache still knows that there was a successfull login a few minutes before. Thanx -- phpArbeitsgruppe in Gruendung - Jochen Kaechelin Stuttgarter Str.3, D-73033 Goeppingen Tel. 07161-92 95 94, Fax 07161-92 95 98 http://www.php-arbeitsgruppe.de, mailto:[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] Recursive Childs
Many databases can handle hierarchical SQL statements. For examples oracle uses START WITH / connect by. eg. SELECT level L1, level_id, name FROM company_level START WITH level_id=21 CONNECT BY prior level_id=parent_level_id Very easy. Let the database do all the work. It would not be possible for Yahoo to query the database recursively (ie issue many separate SQL statements for a hierarchy). So look into your database SQL reference. Hierarchical queries are defined in SQL99 but most databases are only SQL92 compliant with some custom SQL99 support. I know DB2 supports hierarchies as well. Mike -Original Message- From: Natasha [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 21, 2001 3:00 AM To: [EMAIL PROTECTED] Subject: [PHP] Recursive Childs Hiya, This is something that I'm not able to figure out : I am building something like a Yahoo! directry. I wanted to display a new image infront of a category, like Yahoo! does. But I want to show this even if the main category may not have any new link, but a category in that might have, so like that... like hotscripts.com too, so i thought if someone could tell me how to use get all the children : ID | NAME | PARENT 1X 0 2Y 1 3Z 2 4A 2 5F 1 6G 5 if i want to get all children of 1, i want to get 2, 3, 4, 5, 6! how do i get 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 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] passthru Problems
I believe there is header called "Content-disposition: filename.pdf" which is defined in the proper RFC. And as far as I know some browsers don't respect it. Search the list for it, you should find allot of info. Mike -Original Message- From: Jason Mowat [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 12, 2001 12:46 PM To: [EMAIL PROTECTED] Subject: [PHP] passthru Problems Greetings, I am having a small problem displaying PDF files to my users via passthru. This is the situation: I have a bunch of PDF files on my server directory. I show the user a listing of the PDF files they can view, and allow them to hyperlink click on the PDF they wish to browse. When the user clicks the link, I execute a header() and then my passthru on my PDF file. The code is essentially: header("Content-type: application/pdf"); passthru($pdf_file); Now, my problem is that the title of the HTML window that pops up is of the URL path. I want to set the title to something meaningful (like the name of the PDF file the user is looking at). But, if I try to print a "TITLEPDF File/TITLE" after the header, my PDF document does not show up (it shows the raw encoding of the PDF document). Does anyone have any suggestions to allow me to show a title on a header/passthru page? Is there a better way to do this? 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 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] __ $8/mo php hosting on 24/7, OC3+ web server ___
How come no one is subscribing us to any porn lists? Joke!!! Mike -Original Message- From: Chris Anderson [mailto:[EMAIL PROTECTED]] Sent: Friday, April 06, 2001 5:32 PM To: Jon Haworth; 'Jeffrey Greer'; [EMAIL PROTECTED] Subject: Re: [PHP] __ $8/mo php hosting on 24/7, OC3+ web server ___ /me counts to himself Yep 3 times, thats as bad as those people who sign up the lottery ads to this list - Original Message - From: "Jon Haworth" [EMAIL PROTECTED] To: "'Jeffrey Greer'" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, April 10, 2001 12:52 PM Subject: RE: [PHP] __ $8/mo php hosting on 24/7, OC3+ web server ___ Yes, we know, you've told us three times now. -Original Message- From: Jeffrey Greer [mailto:[EMAIL PROTECTED]] Sent: 10 April 2001 17:45 To: [EMAIL PROTECTED] Subject: [PHP] __ $8/mo php hosting on 24/7, OC3+ web server ___ Hello, I am offering php hosting with features at a price no one else has, as far as I know. I'm not going to create a giant web hosting service. I'm doing this to pay for my web portal. snip ** 'The information included in this Email is of a confidential nature and is intended only for the addressee. If you are not the intended addressee, any disclosure, copying or distribution by you is prohibited and may be unlawful. Disclosure to any party other than the addressee, whether inadvertent or otherwise is not intended to waive privilege or confidentiality' ** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] PHP + IRC
I guess you should have had something along the lines of JOKE ... ... /JOKE Mike -Original Message- From: Geir Eivind Mork [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 05, 2001 4:41 AM To: Jack Dempsey Cc: [EMAIL PROTECTED] Subject: Re: [PHP] PHP + IRC On 05 Apr 2001 03:32:10 -0400, Jack Dempsey wrote: vent It'd be nice to have someone to do our dirtywork for us, but this list isn't (IMHO) about finding people who DO have the time/knowledge to "snoop around in the sources" for us... Where is the sense of humor? :) I just asked if anyone had a functionset / any documentation for that particular feature. I ought to have included a smiley but I didn't think anyone would be offended by my message. it was ment as a joke. So to anyone that got offended, knock on my door and I'll give you a cold beer to cool down the temper with :) -- php developer / CoreTrek AS| Please take note: Sandnes / Rogaland / Norway| web: http://www.moijk.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]
RE: [PHP] BUG - Someone else please verify B4 I file
O.k. I understand that, now why would HTTP_POST_VARS be set if no data is posted? Is this desired operation? Mike -Original Message- From: Jeff Carnahan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 04, 2001 2:18 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] BUG - Someone else please verify B4 I file In article 81A3043681E6824EBE672F7421C30E7E2A19A7 @SRVTORONTO.RAND.COM, [EMAIL PROTECTED] says... }if (isset ($HTTP_POST_VARS)){ } echo "Http Post Vars Set"; Remember, just because a variable is "set", it doesn't imply that the variable has any data stored in it. In this case, while the HTTP_POST_VARS array may be set, it does not contain any elements. (It's size is zero.) Hence, it's not included in phpinfo(). -- Jeff Carnahan - [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] BUG - Someone else please verify B4 I file
There seems to be a bug in php 4.0.4pl1, would someone please verify this script below. If you paste this script into a file called bug.php and you just call it you will see "Http post Vars Set". However you will not find that variable it in the output of PHPINFO. I tried this under php4.0.2 and the behavior is as expected "Http Post Vars Not Set". Can anyone confirm or disprove this? Mike bug.php ? if (isset ($HTTP_POST_VARS)){ echo "Http Post Vars Set"; } else { echo "Http Post Vars Not Set"; } phpinfo(); ? My environment: PHP-4.0.4pl1 DSO Solaris 8 Apache 1.3.14 -- 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] stop these solfix.net messages
Yeah, same here -Original Message- From: B. van Ouwerkerk [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 04, 2001 10:44 AM To: [EMAIL PROTECTED] Subject: [PHP] stop these solfix.net messages Hi, How about these messages from solfix.net What have I done to deserve these.. Every message I send to this list is followed by one from solfix.. with a list of message commands.. Already send a message to their postmaster still getting them. If someone out there knows more about it.. STOP IT.. It's very annoying.. As far as I know it has nothing to do with the lists @php.net they're running ezmlm. The messages I'm getting are generated by Xtramail.. Bye, B. -- 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] url_rewriter.tags what's this config directive for?
Hi, Does anyone know what this (url_rewriter.tags) configuration directive is? Mike -- 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] geocities and php
Try cURL http://www.php.net/manual/en/ref.curl.php You can send anything you want. Mike -Original Message- From: Joseph Bannon [mailto:[EMAIL PROTECTED]] Sent: Monday, April 02, 2001 5:36 AM To: [EMAIL PROTECTED] Subject: [PHP] geocities and php I notice that geocities does not allow you to reference images that are on their servers to your homepage on another server/host. Is there a way to make PHP send different host information to geocities' server? Thanks, J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] PHP SITE SUGGESTION
I have a suspcion that it may have to do with your shell interperting the character. Try to quote your URL with single quotes (''). Mike -Original Message- From: Michael Kimsal [mailto:[EMAIL PROTECTED]] Sent: Friday, March 30, 2001 10:41 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP SITE SUGGESTION With the hope that someone at php.net is listening... I understand you want to track how many downloads you've got, etc. but can you make the download more direct somehow? I can't do a wget against the php.net site to download the latest version. :( I think it's the ? in the URL that gives me a problem. 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 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 SITE REDESIGN - What happened to older source files?
I need an older version of PHP because my pam_auth won't build with php-4.0.4pl1? With the redesign of the php site, I think they removed older source files. Can anyone confirm this, or does anyone know where I can get php-4.0.0 - 4.0.4 source files? Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] PHP SITE REDESIGN - What happened to older source files?
I guess i have to do something along the lines of 1. cvs -d :pserver:[EMAIL PROTECTED]:/repository co php4/distributions or 2. cvs -d :pserver:[EMAIL PROTECTED]:/repository co distributions With Number 1 above i get an error saying cvs server: warning: new-born php4/distributions has disappeared Mike -Original Message- From: James Moore [mailto:[EMAIL PROTECTED]] Sent: Friday, March 30, 2001 12:18 PM To: Krznaric Michael; '[EMAIL PROTECTED]' Subject: RE: [PHP] PHP SITE REDESIGN - What happened to older source files? I need an older version of PHP because my pam_auth won't build with php-4.0.4pl1? With the redesign of the php site, I think they removed older source files. Can anyone confirm this, or does anyone know where I can get php-4.0.0 - 4.0.4 source files? The files are no longer avaible form the site but are still avalible via cvs (cvs.php.net) just checkout the files you want from the distributions directory. I wouldnt advise using anything less recent than 4.0.4pl1 though due to security issues in previous versions. James -- James Moore [EMAIL PROTECTED] PHP Web Scripting: http://www.php.net/ PHP QA Team: http://qa.php.net/ PHP-GTK: http://gtk.php.net/ VL-SRM: http://www.vl-srm.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] Paying BIG e-dollars for older php source!!!
I have no money, but is someone willing to provide php-4.0.3pl1.tar.gz or just anything 4.0.4pl1 and 4.0.0. Please just email if possible. Mike -Original Message- From: Krznaric Michael [mailto:[EMAIL PROTECTED]] Sent: Friday, March 30, 2001 3:03 PM To: 'James Moore'; '[EMAIL PROTECTED]' Subject: RE: [PHP] PHP SITE REDESIGN - What happened to older source files ? I guess i have to do something along the lines of 1. cvs -d :pserver:[EMAIL PROTECTED]:/repository co php4/distributions or 2. cvs -d :pserver:[EMAIL PROTECTED]:/repository co distributions With Number 1 above i get an error saying cvs server: warning: new-born php4/distributions has disappeared Mike -Original Message- From: James Moore [mailto:[EMAIL PROTECTED]] Sent: Friday, March 30, 2001 12:18 PM To: Krznaric Michael; '[EMAIL PROTECTED]' Subject: RE: [PHP] PHP SITE REDESIGN - What happened to older source files? I need an older version of PHP because my pam_auth won't build with php-4.0.4pl1? With the redesign of the php site, I think they removed older source files. Can anyone confirm this, or does anyone know where I can get php-4.0.0 - 4.0.4 source files? The files are no longer avaible form the site but are still avalible via cvs (cvs.php.net) just checkout the files you want from the distributions directory. I wouldnt advise using anything less recent than 4.0.4pl1 though due to security issues in previous versions. James -- James Moore [EMAIL PROTECTED] PHP Web Scripting: http://www.php.net/ PHP QA Team: http://qa.php.net/ PHP-GTK: http://gtk.php.net/ VL-SRM: http://www.vl-srm.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]
RE: [PHP] Tough One
To get this done I would use an Expect script, driven through CGI. Mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 29, 2001 9:22 AM To: [EMAIL PROTECTED] Subject: [PHP] Tough One Hi, Ok I have a real tough one here (well to me it is :-) If I telnet into my server I can add a user by running the following command... /usr/sbin/cadduser -d www.domain.com -f users full name -u username -p password -w emailaddress for forwarding Which is great, but as I`m offering free email forwarding I could potentially get a lot of users, and that would be a lot of maintenance time. So I need to somehow incorporate the above into my signup scripts. Is this even possible?? TIA Ade -- 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 vs Servlet
So tell us? Mike -Original Message- From: Jesper Blomstrm [mailto:[EMAIL PROTECTED]] Sent: Monday, March 19, 2001 4:51 PM To: [EMAIL PROTECTED] Subject: SV: [PHP] PHP vs Servlet I found out how to do it. Thx anyway / J Jesper Blomstrm [EMAIL PROTECTED] skrev i diskussionsgruppsmeddelandet:[EMAIL PROTECTED] Hi! I am sure you have a solution to this... How shall I communicate with a servlet from PHP? I have a servlet which makes a DB-query and returns the result. Thanks! / Jeppe -- Jesper Blomstrm [EMAIL PROTECTED] Arbete: 08-566 280 08 Hem:08-669 23 10 Mobil: 070-30 24 911 -- 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]
FW: [PHP] Classes and Kernel CPU Load?
-Original Message- From: Krznaric Michael Sent: Monday, March 12, 2001 12:29 PM To: 'Jens Kisters' Subject: RE: [PHP] Classes and Kernel CPU Load? I don't know much about OS design, but I may want to check out how long the context switches are taking. That could be an issue? Mike -Original Message- From: Jens Kisters [mailto:[EMAIL PROTECTED]] Sent: Saturday, March 10, 2001 10:25 AM To: [EMAIL PROTECTED] Subject: [PHP] Classes and Kernel CPU Load? I have Scripts that seem to cause imense Kernel (not user) CPU Load under Solaris, could this be caused by using classes? I already removed use of md5() and crypt() from the scripts no change so far. What else could cause an immense increase in Kernel CPU Load? tks Jens -- Gre aus dem schnen Kleve Jens Kisters rosomm et partner Agentur fr neue Medien GmbH Dienstleistungszentrum am Weien Tor - Eingang B Gocher Landstrasse 2 47551 Kleve / Bedburg-Hau Telefon: 02821 - 97856-20 Telefax: 02821 - 97856-77 [EMAIL PROTECTED] http://www.rosomm-partner.de -- 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] Advanced PHP
If I'm not mistaken, the big boys keep an eye out over here. Mike -Original Message- From: Rick St Jean [mailto:[EMAIL PROTECTED]] Sent: Friday, March 09, 2001 4:54 PM To: [EMAIL PROTECTED] Subject: [PHP] Advanced PHP Does anyone know of any other lists that are a little more advanced, And has a little less traffic? I am not the end all be all by any means of programming or PHP. I just want to know where the big boys hang out and learn some secrets that require some understanding. Rick ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- 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] Developer certifications
OK now I'm pissed. I consider myself to be an above average programmer with extensive skill in PHP (amongst other things). NOW... I am not going to go jumping through hoops just because some ignorant/illiterate HR Recruiter/IS Head thinks that if you're not PHP certified by some company (eg. brainbench) you're not worth consideration. I REFUSE to do it. I WOULD NOT on my life take the MCSE of MCwhatever, however I may take the Cisco or the Oracle test. Things that require and properly compensate specialization I am open to. But things that test how well you can interact with a GUI (Windows) are bullshit. With respect to PHP there are other methods of determining ones competency with a particular language. What should be judged is a persons overall programming competency, or how well they can adapt to a new language, as oppose to specialization in PHP or PERL or . If you specialize in PHP, what are you going to do when there is no more PHP. (Not that we are expecting that). To summarize, judging a proficiency as it relates to a particular language shows the inexperience and ignorance of your future management. The bottom line is that "YOU DO NOT WANT TO WORK FOR PEOPLE LIKE THAT". I'm sure some experienced programmers around here know what I'm talking about. Mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 28, 2001 1:33 PM To: [EMAIL PROTECTED] Subject: [PHP] Developer certifications Does anyone know of a company which is offering or planning to offer PHP developer certifications? Arguments against certification programs aside[1], there are a lot of companies which prefer certified developers, even to the point of assuming a project done in ASP will be better than the same thing done in PHP simply because the ASP developers are Microsoft certified. While this seems like an interesting sideline for a company like Zend, I'm also somewhat curious about whether an "Open Source" test could be developed. It'd certainly have to be quite different from normal tests and that move away from easily memorized answers would probably be a very good thing. [1] We've all heard them before. I'm personally in favor only of certifications like certain devilishly hard Cisco exams which measure more than multiple-choice memory. -- 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] Replace last 4 of 16 with ****
Hi, O.k. this is of the top of my head, but you should get the point. For more info refer to http://www.php.net/manual/en/function.substr.php . ? $CC_Number=5602232659988123; $rest = substr ($CC_Number, 0, 11).""; print "Your credit card number is $CC_Number"; ? What you're doing is extracting the first 12 number and adding "" to the end of that string. Hope it helps. Mike -Original Message- From: WreckRman2 [mailto:[EMAIL PROTECTED]] Sent: Friday, March 02, 2001 4:22 PM To: PHP List Post Subject: [PHP] Replace last 4 of 16 with I am building an account manager for my web hosting clients in which they can edit thier information, etc only I do not want to display the entire credit card number on the site. Instead I would like to replace the last 4 numbers with a * if possible. Can anyone assist me with the code to do this. Thanks in advance... David Smith Indy Web Design http://www.indywebdesign.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]
RE: [PHP] User Authentication
Try this, it works for me. Mike if(!isset($PHP_AUTH_USER)) { Header("WWW-Authenticate: Basic realm=\"User Database\""); Header("HTTP/1.0 401 Unauthorized"); echo "H1ERROR/H1You must enter a correct username and password in order to proceed\n"; exit; } else { if ($PHP_AUTH_USER=="admin" $PHP_AUTH_PW=="love2change"){ print "You are successfully authenticated"; } else { Header("WWW-Authenticate: Basic realm=\"User Database\""); Header("HTTP/1.0 401 Unauthorized"); echo "You did not supply proper credentials and are therefore denied login\n"; exit; } } ? -Original Message- From: Amer Alhabsi [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 27, 2001 1:42 AM To: [EMAIL PROTECTED] Subject: [PHP] User Authentication Hi, I'm trying to use an authentication method I found in a tutorial in the net. The server prompts for username/password. But if I enter the hard coded values (or any other values) the server rejects them with a message authorization failed. I use PHP 4 as a module on IIS Thanks very much for any help, here is the program I got from the tutorial. ?php if ( ( !isset( $PHP_AUTH_USER )) || (!isset($PHP_AUTH_PW)) || ( $PHP_AUTH_USER != 'user' ) || ( $PHP_AUTH_PW != 'open' ) ) header( 'WWW-Authenticate: Basic realm="Private"' ); header( 'HTTP/1.0 401 Unauthorized' ); echo 'Authorization Required.'; exit; } else echo 'Success!'; } ? -- 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 and apache protected directories
Yes, try lib cURL it supports authentification and even SSL. http://www.php.net/manual/en/ref.curl.php Mike -Original Message- From: Marius David [mailto:[EMAIL PROTECTED]] Sent: Friday, February 23, 2001 5:33 PM To: [EMAIL PROTECTED] Subject: [PHP] php and apache protected directories I want to open a html file from a php script. The problem is that the html file is located in a password protected directory on an apache web server. I know the user/password for that directory and I want the php script to handle the authentification automaticly. Is there a way to acomplish this ? Thank you, Marius -- 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] Terrible Hosting Experience
I was about to buy a server from Alabanza. Am I ever glad I didn't. The only thing impressive about them is their connection. And for all I know they could be lying about that, as well. Mike -Original Message- From: Thomas Deliduka [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 20, 2001 3:18 PM To: PHP List Subject: Re: [PHP] Terrible Hosting Experience On 2/20/01 3:17 PM this was written: We host and provide servers to a good number of clients that have come over from Alabanza. All of them complaining of similar experiences I think that company has been plagued for a long time I agree. I have dealt with them on one level or another since 1997. They used to have great customer service and skillful people. Well, those people left out of frustration and better opportunities and they were replaced with idiots. These idiots that man their help desks and other services now have very little to know about how to even work a computer. I know that they have their help their help-desk in a college town and employ people from the university. Some of the CS reps are philosophy and other liberal arts students. I called one day to give my updated credit card information to a billing rep but they weren't in so I got a CS rep. They said, "You can update it online", I said, "Your control panel isn't behind a secure server. I will not update my Credit card information online." I asked her write it down, put it in an envelope and deliver it to the billing rep by hand. The CS rep said, "No problem." About a week later I received an e-mail. I was forwarded from the CS rep the conversation that took place 0VER E-MAIL with my CC information included in the e-mail from the very first sending. I was so mad. I told her that she just compromised my CC number! She said, "But I sent it right to her in the office." I said, "You office is in a whole-nother state from where the server is. It traveled unsecurely from your location to the server and back again several times in the last few days." she was clueless. Okay, I'm shutting up now. -- Thomas Deliduka IT Manager - New Eve Media The Solution To Your Internet Angst http://www.neweve.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]
RE: [PHP] Pricing for PHP programming???
I have over 6 years programming experience, almost 3 include PHP. I also have sound database knowledge. Where is the best place to find PHP consulting work? Mike -Original Message- From: Jonathan Sharp [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 31, 2001 9:26 PM To: Philip Olson; Josh G Cc: PHP User Group Subject: RE: [PHP] Pricing for PHP programming??? Yeah, I'm consulting though...but yes there are some other options...where does it say $80/hour in the US?! -Jonathan -Original Message- From: Philip Olson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 31, 2001 6:05 PM To: Josh G Cc: PHP User Group Subject: Re: [PHP] Pricing for PHP programming??? One thing to keep in mind is we're mixing up contract jobs and "real" jobs with contract jobs usually being much higher rates. Not sure on any specifics though but real jobs are pretty secure, eight hours a day ... so it's a tradeoff. Most (if not all) quotes thus far are in regard to contract jobs. Philip On Thu, 1 Feb 2001, 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 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: "Jonathan Sharp" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 01, 2001 12:49 PM Subject: RE: [PHP] Pricing for PHP programming??? I find this an interesting topic... One thing that we've found when looking for additional PHP programmers to add is that since PHP has exploded there are a lot of people out there coding in PHP that don't have a background in programming or some of the design considerations. We've looked at various places from techies.com to guru.com and haven't found that many PHP gurus out there. So in terms of skill level, what do you all see the going rate? I know I'm currently underpaid at $25/hour and I do ALL the PHP programming, project management, engineering, database theory etc...oh...and did I mention I do all the network support too? (I'm taking my CCNA in June...) so yeah...we're a starup what did you expect?! =) Comments? Disclaimer: I don't mean to offend anyone out there who codes in PHP. But from the experience that I've had trying to find someone who can really code clean, effecient stuff that plugs into the whole picture has been virtually non-existent...(if you do, please call! We have a few openings!) Thanks, -Jonathan Sharp Director of Technology - Imprev Inc. Renwick Development Group - Flyerware http://www.flyerware.com/ Phone: (425)688-9200 Cell: (425)766-1398 -Original Message- From: Philip Olson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 31, 2001 5:40 PM To: Shane McBride Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Pricing for PHP programming??? Hey Shane, This is a tricky issue, here's me (USD): $60/hr $30/hr if end result becomes open sourced (no strings) General discounts for features such as : fun,true non-profit,intelligent employer,learning curve and it all lives on a sliding scale depending on their ability to pay and my desire for work/money (time). Also, barter is usually an option. Usually hovers between 30-50 and one day this will go up :-) This is the most difficult part of the job, time estimates and pricing. Bah. "Just give me money and I'll do stuff." Regards, Philip Olson http://www.cornado.com/ On Wed, Jan 31, 2001 at 03:25:27PM -0500, Shane McBride wrote: I know this is not really a PHP question, but it should make for a good thread. :) I was wondering what other PHP people charge to write PHP? I have just been given a project for a fairly large customer, much larger than I normally do work for. So I am VERY confused.concerned about how to price it. Most of my other PHP projects have been done for small single owners businesses, and the PHP has been pretty basic. Now that I can actually do what I am being asked without have to learn it, I am stuck. I did a shopping cart for someone, but I didn't charge them a REAL price because I didn't know how to do it with PHP. So, I of course didn't charge the client for my learning curve. I know the price is very dependant upon the task. What I am doing is creating a web-based
RE: [PHP] PHP_SELF - silly question
You may have to declare PHP_SELF as global. Take a look at http://www.php.net/manual/en/language.variables.scope.php Mike -Original Message- From: Larry Hotchkiss [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 23, 2001 12:21 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP_SELF - silly question Im a little brain fried today and I have a silly question. I have a script (imagine that huh?) that I want to pull some code out of and put in a function that is contained in a seperate file. The function however inlcudes some lines with $PHP_SELF in a link (a href). When I remove the code from the running script and include it in a function file seperate from the script the function works fine as far as generating links etc, but when the link that includes $PHP_SELF is selected, the file of the running script is not passed. So in other words, when I have my function code in my running script, it generates some links that limit a query on a mysql database and pass data to PHP_SELF, the passed URL looks like this (for example): http://69.02.217.123/php4/php.exe/searchitem.php?sql=SELECT+%2A+FROM+items+W HERE+LCASE%28partnumber%29+LIKE+%27x%25%27+ORDER+BY+partnumber+offset=100n umpage=3 But, when I move the code to create the links externally into a function, the link I end up with is like this: http://69.02.217.123/?sql=SELECT+%2A+FROM+items+WHERE+LCASE%28partnumber%29+ LIKE+%27x%25%27+ORDER+BY+partnumber+offset=100numpage=3 Can someone shed some light on the best way to handle this? -- Larry H. -- 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] PHPLIB and PHPMyAdmin
How can you control 'magic quotes' with .htaccess? I thought this is a php.ini command? I kind of have the same problem. My web host has magic quotes off and I would like to use phpMyAdmin. Is it possible to turn them on without accesing the ini file? Mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 7:16 AM To: Kevin Cawthorne Cc: [EMAIL PROTECTED] Subject: Re: [PHP] PHPLIB and PHPMyAdmin On Tue, 16 Jan 2001, Kevin Cawthorne wrote: Hi, I want to install PHPLIB but one of the configuration notes says "turn off magic quotes in the php.ini file". OK But I'm, using phpMyAdmin, which I understand NEEDS magic quotes on to work. Has anyone done this using the two together? Yes, I use .htaccess files to control phplib (you can have multiple phplibs) Tarique = B2B Application Providers http://www.sanisoft.com Vortal for Nagpur http://nagpurcity.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]