[PHP] Re: Objects and Classes?
allows you to use an html template file which you can paste dynamic values/content into. Here's an example of how to use it: setParameter("PAGE-TITLE", $title); $template->setParameter("CONTENT", $content); echo $template->ReturnHTML(); // Sends html to the browser // It is important to destroy an object once you are finished // using it so that you can free up the memory space that it uses unset($template); // Destroys instance of object ?> HTML TEMPLATE FILE: My html template file might look like this: Christopher Raymond, Oasis Networks <-- Web Development & Macintosh Systems Consulting -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Forms
> > > > John > Mary > > TIA: You are missing the action and method attributes to the form tag. You are also missing the closing form tag. I don't know if you accidentally omitted these when posting your question or if you are actually missing these in your actual HTML code as well. Your code should look something like this: // You could also use METHOD="GET" John Mary If you've got all of this in place, but you are still having trouble gaining access to the variable, it may be that you are using a newer version of PHP which requires you to access the variable a different way. Try this: Hope this helps, Christopher -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Filter vulger / controversial words - need word source
Greetings: I'm wondering if someone has a great source for a master-list of controversial and vulger words that I can use on my site. I would like to pattern match input text against this master-list in order to prevent vulger and controversial words from appearing on my site. Thanks for any help or suggestions, Christopher Raymond -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Eval()??? A variables contents?
PHP Gurus: I have one for you. I'm sure there is a simple solution, but I'm having difficulty finding it. Let's say I have: $content = ""; If I use , it doesn't evaluate that content. What am I doing wrong here? Is there an equivalent to JavaScript's eval($commands) function? TIA, Christopher Raymond -- 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] Eval()??? A variables contents?
on 11/9/01 2:01 PM, Kurt Lieber at [EMAIL PROTECTED] wrote: > What you're doing doesn't make any sense. If it were to work, it would look > like the following: > > ; ?>, > > or something similar. I think what you want to do is: > $content = query_database($category); > echo $content; > ?> > > that's using psuedo-code, of course. You'll want to substitute correct php > syntax for returning database results. Kurt: I understand where you are coming from, and I appreciate your answer. However, I'm trying to get PHP to parse commands that are stored in a variable because I'm passing those commands to a function. Inside the function, it needs to evaluate the commands stored in the variable. Does you solution solve that or does my description clarify my problem better? Thanks, Christopher -- 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] MORE INFO > Eval()??? A variables contents?
Okay there are two files involved here. First is my index.php file: $params = array('class' => 'text10', 'content' => 'Query_Database( $category )'); switch ( $mode ) { case "list": Make_TR( $params ); // This is executing the included function. break; default: Display_Default(); } Then there's the function that's located elsewhere in an include file: > Christopher <-- Still has no solution :-( -- 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] Newsgroup?
Does anyone know: What's the deal with the newsgroup version of this list? I'm using news.php.net as the news server address, but all I get are error messages. Is this newsgroup still functional? Christopher Raymond -- O A S I S N E T W O R K S -- INTERACTIVE FLASH MEDIA PRODUCTION HTML, JAVASCRIPT, PHP & E-COMMERCE DEVELOPMENT MACINTOSH TROUBLESHOOTING, REPAIR & NETWORKING -- WEB: http://www.oasisnetworks.com PHONE: 612.706.0767 -- 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] Newsgroup?
Hmm: It must be my client then. Christopher Raymond -- O A S I S N E T W O R K S -- INTERACTIVE FLASH MEDIA PRODUCTION HTML, JAVASCRIPT, PHP & E-COMMERCE DEVELOPMENT MACINTOSH TROUBLESHOOTING, REPAIR & NETWORKING -- WEB: http://www.oasisnetworks.com PHONE: 612.706.0767 -- 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] Storing Credit Card Numbers, etc.
PHP Fellows: Thanks for taking the time to look at this. I'm new to PHP and to e-commerce. Needless to say, I've done a lot of studying over the last few weeks and I'm ready to dive in head first! I'll be building an e-commerce site and I'll be using PHP. I'd like customers to have the option of saving their information so that they don't have to enter it each time they purchase -- much like Buy.com does or like Amazon.com's One-Click feature. This means that the customer will be storing information like one or more credit cards, shipping addresses, billing addresses, etc. I'm planing on storing all information in flat files so that I don't have the additional expense of using MySQL (My ISP is charging 24.95/month extra for MySQL service). So the question is: How can I store each customer's information safely? Can I use .htaccess and .htpasswd to help me out? Or don't they even apply? My intention is to store the user's password encoded with md5 or something and also to develop my own cipher for disguising the credit card numbers as well. Any suggestions? Thanks, Christopher Raymond -- O A S I S N E T W O R K S -- INTERACTIVE FLASH MEDIA PRODUCTION HTML & JAVASCRIPT WEB SITE DEVELOPMENT MACINTOSH TROUBLESHOOTING, REPAIR & NETWORKING -- WEB: http://www.oasisnetworks.com PHONE: 612.706.0767 -- 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 or SSI -- What's faster?
PHPers: So if I was just going to need includes on a few pages, what's faster PHP or SSI on Linux/Apache? Christopher Raymond -- 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 Shopping Carts ??
Could anyone point me in the direction of some PHP shopping cart scripts? Thanks, Christopher Raymond -- 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] Browser Detection & Redirection -- PHP or Apache ???
PHP Folks: Does PHP provide some mechanism for browser detection & redirection or is this something that Apache Directives can handle? For example: I don't want users with browsers less than 4.0 to actually load a page on our site. Instead, I want them redirected to a page that let's them know their browser is in-compatible. I know this is something JavaScript can do, but again that relies on the browser. Thanks for any help, Christopher Raymond -- 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] Newsgroup?
Is this PHP listserve available as a newsgroup? I'm getting tired of managing this much mail everyday. I'd like it a bit simpler. If this list is not available, are there other equally busy newsgroups for PHP? Thanks, Christopher Raymond -- 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]