Re: [PHP] PHP Hosting Services
I've been happy with phpwebhosting.com At 09:36 AM 1/31/02 -0500, Mike Baranski wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, just wondering if anyone here could recommend a good (free, if there is a good one) PHP/mysql Hosting service. I'm willing to pay some, but not more than 15 /month Thanks GPG Key located on: http://www.keyserver.net/en/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8WVZjn0XmoxBj3PwRAizbAJ0QZETkXf+i7xx1XPpUa/0P4xnwMwCfTLLN xSXs4S0fHADWDAj+FSDR4mY= =jSpN -END PGP SIGNATURE- -- 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] Les Neste 678-778-0382 http://www.lesneste.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] Content Management
When I think content management, I think of: -- separates content from presentation -- ie supports templates with which a content item can be rendered -- allows specification of language (ie French German English whatever) with which content is presented -- provides handy tools for managing content, ie, spell checking, broken link checking, query index / search contents, etc -- supports archiving, versioning and releasing (aka publishing) Famous commercials content management apps are Vignette, Interwoven, MediaBin etc. A search on freshmeat shows several -- I'm familiar with but have not used the Ars Digita Community / Content Management System. At 03:39 PM 1/30/02 -0400, Miles Thompson wrote: What do you mean by the term content management? It is a little ambiguous, do you mean something like a wiki? Large is a bit unquantified as well. Like the time I went to the bank and my wife asked be to bring her some money. She was a bit surprise to be handed three bucks; subsequent requests were more specific. Cheers - Miles At 07:21 PM 1/30/2002 +, [EMAIL PROTECTED] wrote: Does anyone know of an organization who has built and is maintaining a web content management app for a large site using PHP? -- 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] Les Neste 678-778-0382 http://www.lesneste.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 Menu.
Here's some code to include in your HTML to create the popups. html head SCRIPT LANGUAGE=JAVASCRIPT !-- Hide from older browsers which ignore script tag -- they'll interpret this as comment. // Javascript-enabled browsers will ignore HTML-style comments within script and see script statements function open_popup( page, h, w, s ){ window.new_win = window.open( page, popupname, height=+h+,width=+w+,scrollbars=+s+,menubar=0,resizable=1 ); } // end hiding here -- /SCRIPT /head body a href='javascript:open_popup(d-t1.jpg, 400, 630, 1 );'FIA Guide/a /body /html At 09:50 PM 6/27/2001 -0300, Miles Thompson wrote: PHP is a server side language, Javascript is better for this. Miles Thompson At 03:03 PM 6/27/01 +0200, Deon Heunis wrote: Hi, I would like to know if it is possible to make a pop-out navigation menu with PHP. Regards, Deon Heunis Hetzner Africa PO Box 3450 Durbanville 7551 South Africa Tel: +27 21 975 7930 Fax: +27 21 975 9731 Internet: http://www.hetzner.co.zahttp://www.hetzner.co.za -- 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] Les Neste 678-778-0382 http://www.lesneste.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] Templates??
The template defines the look and feel for a class of pages. The advantage is in allowing you to change one file -- the template file -- and have your changes be reflected in all the individual pages that use the template WITHOUT having to individually edit all of those pages. For smaller sites, this may not be a big deal, but, for sites with thousands of pages, you clearly want to avoid hand-edits if at all possible. I'm personally reworking my online portfolio, and I'm now using templates so I can present a different look and feel to suit different potential clients. FYI, at the last ThunderLizard web design conference, a presenter speaking about content management tools said that most sites only need 6 or so templates ... that there are usually only 6 categories of pages. At 05:48 PM 6/18/2001 -0700, Daniel Guerrier wrote: What the true advantage of using templates and where can I get info on using them? __ Do You Yahoo!? Spot the hottest trends in music, movies, and more. http://buzz.yahoo.com/ Les Neste 678-778-0382 http://www.lesneste.com
Re: [PHP] HTML and PHP?
I think the echo approach is pretty handy if you want a subroutine to spit out a common chunk of HTML which is less than an entire page. And the here-doc marker lets you just paste existing HTML in place without having to escape all the quotation marks. To me, this is a Good Thing. At 01:56 PM 4/14/2001 -0400, Brian Clark wrote: Hi Steve, @ 11:34:26 PM on 4/13/2001, Steve Werby wrote: ... ? echo STOP html Yes, echo can use here-docs! Is it really that *hard* to take 1 minute to test for yourself? ;-) And you can use whatever marker (the 'STOP' above and below) you choose. Just make sure you don't indent the closing marker or the parser will miss it! /html STOP; ? Why even bother? Why not just do this? ? html Boo /html ?php -Brian -- PGP is spoken here: 0xE4D0C7C8 Please do not carbon copy me on list replies. -- 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] Les Neste 678-778-0382 http://www.lesneste.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 without a webserver
Can anybody comment on PHPTriad? This appears to be PHP+MySQL+Apache for the Windows desktop. At 07:51 PM 4/14/2001 +0200, Jeroen Wesbeek wrote: well actually you could compile php4 on it's own so you get a php executable which you can use as an interpreter for php4 scripts... no webserver needed dowebwedo Jeroen Wesbeek .programming Nieuwekade 213 | 3511 RW Utrecht The Netherlands p 030 2380544 | f 020 8632045 [roses are red, violets are blue, I am schizophrenic and so am I ] -Original Message- From: Brian Clark [mailto:[EMAIL PROTECTED]] Sent: zaterdag 14 april 2001 19:53 To: PHP is not a drug. Subject: Re: [PHP] PHP without a webserver Hi Plutarck, @ 11:37:09 AM on 4/14/2001, Plutarck wrote: I've heard much about how PHP is far more than just a language for web programming, and I agree. I agree enough that I would like to actually try it. I'd like to use PHP scripting in a C/C++ program that doesn't need a webserver as an intermediary. It doesn't. You don't have to have a web server installed in order to use PHP. -Brian -- PGP is spoken here: 0xE4D0C7C8 Please do not carbon copy me on list replies. -- 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] Les Neste 678-778-0382 http://www.lesneste.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] HTML and PHP?
Cool. Does that work with echo too, do you know? At 06:19 PM 4/13/2001 -0700, DanO wrote: try this: ? print EOP html jldsfajlf;dsajfl;dkfl;dsa /html EOP; ? AFAIK it is the easiest way to do multi-line printing! DanO ""Jason Caldwell"" [EMAIL PROTECTED] wrote in message 9b868e$2ca$[EMAIL PROTECTED]">news:9b868e$2ca$[EMAIL PROTECTED]... Is there a utility that I can use that will take a bunch of HTML and encapsulate it in the PRINT command? i.e. PRINT("{html stuff}\n"); ?? I have a ton of HTML pages that I want to make dynamic, but dread having to type the PRINT command in front of every line of html, and let alone having at manually add the slashes... urg. Thanks. Jason [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] ........ Les Neste 678-778-0382 http://www.lesneste.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] Sorry - Way OT but I need help
Check out my site, I just did the same thing. http://www.lesneste.com I used to have a bunch of personal info out there for the world to see, but I decided it was invitation to identity theft so I put it behind a password. Now, to get access, you have to reveal an email address to which your password will be mailed, which I think is a reasonable tradeoff. I decided I wanted to stay with HTML files as much as possible so I could develop most of my pages on my local hard drive without an HTTP server in the loop. This mandated no sessions, just .htaccess. I use one PHP page that lets users request their password. I found something bizarre (unexpected in a way that makes no sense to me) with Apache ErrorDocuments, namely, that you can specify an ErrorDocument in another directory besides the one containing the file that generated the error, and that ErrorDocument will be loaded, but all relative URLs within that page will be resolved relative to the original directory (the one containing the .htaccess file). My solution to this was to use absolute URLs instead of relative in the ErrorDocument for things like specifying IMGs. I don't like using absolute URLs, but it worked. Here's the .htaccess that gets the job done. Notice I care about a 401 (authorization) and not 404. = AuthUserFile /yourpathhere/.htpasswd AuthGroupFile /dev/null AuthName "Personal" AuthType Basic ErrorDocument 401 /requestpwd.php?func=introsecn=photos Limit GET POST require valid-user /Limit === Hope that helps. At 01:57 PM 4/9/2001 -0500, Boget, Chris wrote: I know this has nowt to do with PHP so I'll keep it as short as possible. My problem is, I'd like to get 404 error redirecting to work in IE under Apache. I've set the ErrorDocument in apache.conf and in .htaccess. It works in Netscape et al but not in IE. IE seems to be issuing it's own error page. I know there must be a config somewhere other than the client side "Show friendly error messages", but can't seem to find it. I have RTFM and scanned the Web but still not found it. Hope you can help. Once again I apologize for being Off Topic. Does someone have an example of how to do this within .htaccess? I've tried everything and all I ever get is an Internal Server Error when the .htaccess file is in place... :/ Chris ........ Les Neste 678-778-0382 http://www.lesneste.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] Safety with PHP.
Marthe, if you post the script we can all get to the bottom of this pretty quickly. You have a lot of expertise here ready to help. Just copy and paste it into your email. BTW, you should remove it from your site before you post it, if at all possible. Good luck. Les Neste 678-778-0382 http://www.lesneste.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] ctype_alpha etc
Hi, I'm using PHP4.04pl1 as an Apache module. I just wrote some code which calls ctype_alpha() and got the message Fatal error: Call to undefined function: ctype_alpha() in /usr/local/lesneste/requestpwd.php on line 80 Is this function truly non-existent or is there some compile-time setting I need to enable to include these functions in the build? Here's my phpinfo(). Thanks in advance. System Linux tsunami 2.2.14-5.0 #1 Tue Mar 7 20:53:41 EST 2000 i586 unknown Build Date Mar 8 2001 Configure Command './configure' '--with-apache=/usr/local/samba/shared/preinstall/Apachetoolbox-1.5.13a/apac he_1.3.19' '--enable-exif' '--enable-memory-limit=yes' '--enable-track-vars' '--with-calendar=shared' '--enable-safe-mode' '--enable-magic-quotes' '--enable-trans-sid' '--enable-wddx' '--enable-ftp' '--with-mcrypt' '--with-mhash' '--with-mysql=/usr' '--with-pgsql' Les Neste 678-778-0382 http://www.lesneste.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] Sneaky solution
Correct me if I'm wrong, but isn't it possible to fake the referrer? This may not matter for your application -- are you writing a financial app or a personal portfolio? -- but if you really need to authenticate the source of data that comes from some other IP address (as is the case with a web browser) then you're into PGP keys and signed certificates. At 11:18 PM 4/3/2001 -0700, Dallas K. wrote: If you want to check where your submit is comming from, then you need to check the REFERER url. do so by useing the global $HTTP_REFERER variable. global $HTTP_REFERER; if($HTTP_REFERER == "YOUR_FORM_PAGE_HERE") { //PROCESS CODE. } else { echo"Your a hacker, so BITE ME!!!"; } - Original Message - From: "Plutarck" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 03, 2001 7:58 PM Subject: [PHP] Sneaky solution How do you check to make sure that any form submissions originate from your site? You basically can't. ...well that was easy ;) All you can do is assume that every single piece of data sent from the client is an attempt to screw up your application. After stripping non-valid characters and using strlen to ensure the data is of a valid size, there isn't much you can do. But if you know ahead of time that the date should _NOT_ be 1998, just encode such a validator. But if you want to be really sneaky, make something like this: value1=vally|val2=vooly Then run it through some encryption feature or a home-brewed scrambler, and make the whole thing one single "hidden" value. In your script you decode it, split it apart into proper variables, and continue along as normal. Still not fool proof, but I use it when I have no other better method. And it basically thwarts 99% of casual tinkerers, and an equal amount of script kiddies, and it allows you to be really creative in your data validation, plus you can screw with people's heads...which of course is the most important function ;) -- Plutarck Should be working on something... ...but forgot what it was. -- 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] ........ Les Neste 678-778-0382 http://www.lesneste.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] sanity check please
Hi, I have a question about security with PHP. I'm building a site with PHP and some of the scripts connect to MySQL. All someone needs to do to get my MySQL passwords is view the PHP source, right? And the recommended approach around this is to use Zend, right? Please correct me if I'm off base here. TIA! Les Neste 678-778-0382 http://www.lesneste.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] PHP and .htaccess
Hi all, We're all familiar with the skanky little box the web browser pops up to get your username/password in response to a 401 from the web server. What I want is the same functionality, except through a login web page instead. I know how cookie-based or session-based logging in works with PHP, but I would actually prefer (since it's more general) an HTML-only solution if there is one. Or maybe there's something I can do to configure the server (Apache) to redirect to a login page if a 401 is generated. Anyt thoughts? Help would be much appreciated. Les Neste 678-778-0382 http://www.lesneste.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] Installation on RH6.2: help!
Hi all, I'm in the process of my first installation of PHP and running into a problem. Any experts, feel free to chime in with your knowledge. After I unzip it, I run the configure script. Here's the command line I use and the error I get: ./configure --with-mysql=/var/lib/mysql --with-apxs ... lots of output ... Checking for MySQL support: yes configure: error: Cannot find header files under /var/lib/mysql I've tried lots of different directories, none of which seem to work. Which header files is it looking for? BTW, I'm attempting to install php 4.0.4 pl1, as an apache module (rather than statically linked with apache). I've already installed MySQL 3.22 and it appears to have been successfully installed. Any help much appreciated. Les Neste 678-778-0382 http://www.lesneste.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] Ethics question...
What Egan wrote is very true. I speak with some knowledge -- having weathered a copyright violation suit based on the action of one of my employees -- and if you write it (as anything other than an employee) then you own it, 'it' being the source code and the program compiled from that source code. Egan, you mentioned something new to me: that you as author own it except for 'that one client who paid for it'. Can you offer some citation to back this up? At 11:06 PM 1/17/2001 -0500, Egan wrote: On Wed, 17 Jan 2001 20:59:41 -0600, "Scott Gerhardt" [EMAIL PROTECTED] wrote: If your client paid you to develop the E-Commerce system they would typically own all rights to it unless otherwise agreed upon. I don't know what country you are speaking of, but in the U.S., that view is a commonly held misconception. Under U.S. copyright law, if the author is an independent contractor, in the absence of a written agreement covering the work, the author owns all copyrights to the work, with the exception that the client who paid for the work is automatically granted a license to their one copy (and only their one copy). The client does *not* have copy _rights_ which permit them to resell it, or even give it away, unless the author specifically gave them those rights in writing, such as a work for hire agreement. If the author was working as an employee, OTOH, then the situation is reversed, and the employer owns the copyrights by default. As for the license of PHP itself, vs. an author's license to any code he writes in the language known as PHP: Writing application code in the PHP language does not make the code you wrote automatically become open source, Yes, the PHP processor is open source, but its copyright is entirely separate and distinct from any application system which may be written in the PHP language. I if write a C program, it does not matter whether I compile it with GCC which is GPLed, or with some proprietary C compiler. Either one is irrelevant for determining ownership of the copyrights which apply to the code I wrote in the C language. You cannot copyright ideas, and the PHP language is only an idea. The PHP Apache module or other PHP processor is an *expression* of ideas embodied in the PHP language. And only its expression can be copyrighted, not the idea itself. Suppose RWS said you have to stop writing proprietary C programs, just because someone might compile it with GCC? I hope you would laugh. :-) Egan -- 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] ...... Les Neste Cellphone 678-778-0382 Web http://www.lesneste.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] Ethics question...
At 02:50 AM 1/18/2001 -0500, Egan wrote: On Thu, 18 Jan 2001 02:45:01 -0500, "Romulo Roberto Pereira" [EMAIL PROTECTED] wrote: Copyright? This do not exist!!! See the case of NAPSTER The law is one thing. Whether people obey it or not, is another. I agree. I would also say that the law is one thing, and common sense is another. ...... Les Neste Cellphone 678-778-0382 Web http://www.lesneste.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]