Re: [PHP] Responses in my email.
Yeah, I think I've replied to people rather than the list, sorry to those I sent mail to... 8-(
Re: [PHP] Learning PHP ... online courses?
_www.Lynda.com_ (http://www.Lynda.com) has a new Video tutorial... about 9 1/2 hours long. Best one I've found for the price would be _www.VTC.com_ (http://www.VTC.com) which is $30 a month and you can get like 25 total hours of PHP and MySQL... They're good for Beginners - then check out books like Advanced PHP for Web Professionals. Hope this helps! - Clint
Re: [PHP] Learning PHP ... online courses?
The Manual is great - but most people seem to get the hang of PHP faster if they Watch people in action - then move onto reading the Manual... Chris Shifflett's link (where he's an Instructor) is great too (phparch.com)...
[PHP] MYSQLI, Class not found?
Hey guys, I'm doing a tutorial from a book (PHP and MySQL Web Development) and I'm having a problem... when I use the script they supply I get this error: Fatal error: Class 'mysqli' not found in C:\apachefriends\xampp\htdocs\results.php on line 29 here is the code: === query($query); $num_results = $result->num_rows; echo 'Number of books found: '.$num_results.''; for ($i=0; $i <$num_results; $i++) { $row = $result->fetch_assoc(); echo ''.($i+1).'. Title: '; echo htmlspecialchars(stripslashes($row['title'])); echo 'Author: '; echo stripslashes($row['author']); echo 'ISBN: '; echo stripslashes($row['isbn']); echo 'Price: '; echo stripslashes($row['price']); echo ''; } $result->free(); $db->close(); ?> === I updated PHP from 5.0.3 to 5.0.4 to see if it would help, no luck. Now I'm just completely lost. Thanks, Clint
[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Re: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] Re: MYSQLI, Cla...
In a message dated 6/20/2005 7:30:20 P.M. Central Standard Time, [EMAIL PROTECTED] writes: Is PHP compiled with mysqli support: http://ro.php.net/mysqli Read the docs about what this extension requires. I did all of this and I'm still getting the error: Runtime Configuration The behaviour of these functions is affected by settings in php.ini. Table 1. MySQLi Configuration Options Name Default Changeable Changelog mysqli.max_links "-1" PHP_INI_SYSTEM Available since PHP 5.0.0. mysqli.default_port "3306" PHP_INI_ALL Available since PHP 5.0.0. mysqli.default_socket NULL PHP_INI_ALL Available since PHP 5.0.0. mysqli.default_host NULL PHP_INI_ALL Available since PHP 5.0.0. mysqli.default_user NULL PHP_INI_ALL Available since PHP 5.0.0. mysqli.default_pw NULL PHP_INI_ALL Available since PHP 5.0.0.
[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Re: MYSQLI, Class not found?
> Is PHP compiled with mysqli support: http://ro.php.net/mysqli > Read the docs about what this extension requires. I did all of this and I'm still getting the error: Runtime Configuration The behaviour of these functions is affected by settings in php.ini. Table 1. MySQLi Configuration Options Name Default Changeable Changelog mysqli.max_links "-1" PHP_INI_SYSTEM Available since PHP 5.0.0. mysqli.default_port "3306" PHP_INI_ALL Available since PHP 5.0.0. mysqli.default_socket NULL PHP_INI_ALL Available since PHP 5.0.0. mysqli .default_host NULL PHP_INI_ALL Available since PHP 5.0.0. mysqli.default_user NULL PHP_INI_ALL Available since PHP 5.0.0. mysqli.default_pw NULL PHP_INI_ALL Available since PHP 5.0.0.
[PHP] MySQLI, Class not found
I'm using a XAMPP setup through ApacheFriends.org, version 1.4.14 - it uses PHP 5.0.3 and MySQL 4.1.12 and Apache 2.0.54 (Win32) The PHPInfo doesn't show the MySQLi extensions loaded, but I try adding the DLL in the extension list like so: ;extension=php_msql.dll extension=php_mysql.dll ;extension=php_mysqli.dll I took out the Semi-colon and it gives me this warning: Warning: mysqli::mysqli() [_function.mysqli_ (http://localhost/function.mysqli) ]: Access denied for user 'root'@'localhost' (using password: YES) in C:\xampp\htdocs\results.php on line 29 Error: Could not connect to the Database. Please try again later. When I'm in MySQL it works fine with the extension commented out - but not with it un-commented... the Extension is located in C:/xampp/php/ext with the rest of them... thanks for replying back - I thought I'd never get this fixed... I just uninstalled everything and reinstalled 3 times hoping something was wrong with the versions. Thanks, Clint
Re: [PHP] MySQLI, Class not found
Well, I figured out that problem (I suppose) by upgrading to MySQL 5.0 and the error doesn't come up anymore... but now I get this error: Fatal error: Call to a member function free() on a non-object in C:\xampp\htdocs\results.php on line 60 Again, here's the code: == query($query); $num_results = $result->num_rows; echo 'Number of books found: '.$num_results.''; for ($i=0; $i <$num_results; $i++) { $row = $result->fetch_assoc(); echo ''.($i+1).'. Title: '; echo htmlspecialchars(stripslashes($row['title'])); echo 'Author: '; echo stripslashes($row['author']); echo 'ISBN: '; echo stripslashes($row['isbn']); echo 'Price: '; echo stripslashes($row['price']); echo ''; } //$result->free(); $db->close(); ?> Anymore help would be more than appreciated! I've spent hours trying to fix the first problem and about another hour trying to fix this one now... Google doesn't supply anything besides PHPNuke installation errors - which is not the case here. Thanks, Clint
Re: [PHP] MySQLI, Class not found
when i try it this way: query($query); $num_results = $result->num_rows; echo 'Number of books found: '.$num_results.''; for ($i=0; $i <$num_results; $i++) { $row = $result->fetch_assoc(); echo ''.($i+1).'. Title: '; echo htmlspecialchars(stripslashes($row['title'])); echo 'Author: '; echo stripslashes($row['author']); echo 'ISBN: '; echo stripslashes($row['isbn']); echo 'Price: '; echo stripslashes($row['price']); echo ''; } var_export($result); $result->free(); $db->close(); ?> It doesn't even try searching the database... it gives me the: 'You have not entered search details. Please go back and try again. Error. when i comment out the IF statement and add the var_export($result) (just to see what it happens) it gives me this error: === Number of books found: false Fatal error: Call to a member function free() on a non-object in c:\wamp\www\books\results.php on line 56 === the HTML code is: === Choose Search Type: Author Title ISBN Enter Search Term: maybe i'm just tired and not seeing something - but i've looked a thousand times and i have no clue why it's doing this... searches on google prove nothing either. Server Configuration Apache version : Apache/1.3.33 (Win32) (WIN XP) PHP version : 5.0.4 MySQL version : 5.0.7-beta-nt - extension : mysqli Thanks again, Clint
Re: [PHP] Re: MYSQLI, Class not found?
no, that's been working fine. it's just the mysqli wasn't working with MySQL 4.1.12 - now i have 5.0.7 and it works - now i'm just getting a fatal error using "free()". Thanks, Clint
Re: [PHP] MySQLI, Class not found
In a message dated 6/21/2005 2:55:08 P.M. Central Standard Time, [EMAIL PROTECTED] writes: error_reporting(E_ALL); Well, with E_ALL on i get this error: === Notice: Undefined variable: searchterm in c:\wamp\www\books\results.php on line 18 You have not entered search details. Please go back and try again. === Obviously it's been defined in both scripts... =\ I would love to install Linux on this machine - but I won't lie - it scares the hell out of me lol if I don't use num_rows what would you suggest? This is from a Tutorial in the Sams, PHP & MySQL Web Development - so I'm just going by their script and don't want to continue until I get everything straightened out on my side... Thanks alot, Clint
Re: [PHP] MySQLI, Class not found
Wow, I feel really stupid... // create short variable names $searchtype=$_POST['searchtype']; $searchtype=$_POST['searchterm']; the third line should be $searchterm=$_POST['searchterm'] wow lol... I'd like to hope this wasn't the error all along - but atleast I fixed it LOL! THANKS ALOT CATALIN! I seriously appreciate your help man, Clint
Re: [PHP] Re: Apache Webserver User Survey
it's very easy to use and there's more documentation floating around than any other - which is always a good thing... =) from a n00b's point of view!
Re: [PHP] fopen problem
can you show the code? did you chmod the files?
Re: [PHP] looking for a pure startup opportunity..
I'd be interested in playing with some ideas...
Re: [PHP] Object Oriented PHP (5)
Sams, PHP and MySQL Web Development (2005 edition) PHP Anthology both good books...
Re: [PHP] Display picture from MySQL
Google is your friend. _http://forums.mysql.com/read.php?20,17671,27914_ (http://forums.mysql.com/read.php?20,17671,27914)
Re: [PHP] looking for a pure startup opportunity..OT
This really shouldn't be getting out of hand the way it is... if you don't like it, trust it, agree with it - why not just ignore it? It's as simple as that... don't have a stroke because of it.
Re: [PHP] looking for a pure startup opportunity..OT
Well, unfortunately you just contradicted yourself as well. I had about 18 e-mails of the same thing, so I was replying about those. Thanks for your input though, It's appreciated.
Re: [PHP] looking for a pure startup opportunity..OT
hmmm... strange is right. because someone else said it was four hours after i sent that, now it's a day (wow how time flies through email)? i guess i should keep my eyeballs peeled on every piece of e-mail in my box 24 hours a day, this way i won't be over a minute late ;)
Re: [PHP] PHP vs. ColdFusion
In a message dated 6/29/2005 11:26:08 A.M. Central Standard Time, [EMAIL PROTECTED] writes: Yes a framework can be built in PHP, C# or any language but how would you like to design something like this. How about something like Prado? looks just like it. _http://xisc.com_ (http://xisc.com)
[PHP] very simple, yet can't think how.
Hi everyone, Sorry for the n00bie question but I've been racking my brain, searching Google and yes, I have been "RTFM" for over 6 months :-) All I'm trying to do is set up a "User system" that allows a member to create their own personal site using an auto_increment type system? This is my problem... I've been trying to look through other code trying to figure out where and how they do it - but for some reason I can't figure out how to Dynamically create something like this: User Joe comes in and creates an account... when he creates his account he can give his site a TITLE, DESCRIPTION, ABOUT US INFO (say /aboutus.php), CONTACT (./contactus.php), etc. after he clicks "Submit" the system automatically creates a site such as _http://mydomain.com/0/joe/ _ (http://mydomain.com/0/joe/ ) , Bob does the same thing and his is _http://mydomain.com/0/bob_ (http://mydomain.com/0/bob) I'm sure most of you know how this is done or you've seen it on sites such as Soundclick.com (although it's CF) - I've been checking out Jamroom to see if I could figure it out there- but kinda got lost lol... I want to use PHP, Smarty and MySQL to do this - but I'm missing something... I'm not asking anybody to build this - I'm looking for a little guidance, tips, etc. - that's all. Would this be done through auto_increment in MySQL or something? Thanks everyone :-)
Re: [PHP] Re: very simple, yet can't think how.
Thanks, that's actually really close to what I was looking for... so if I wanted, say: _http://mydomain.com/0/joe_ (http://mydomain.com/0/joe) - you're saying I should have the Directory "/0/" or "/1/" already set up... right? then do I use something such as mkdir and chdir to create joe? then file manipulation functions such as fwrite, fread, etc? So basically if I'm reading clearly... I insert the User info into the Database, then use that info to write into the Directory "/joe/" ? Thanks a lot man, I feel like I might have been right all along - but this is the first big project I've done - so I'm trying to get the Logic down correctly before I get started... :-) - Clint p.s. sorry, I meant to do "reply all" :-( So, here it is again!
Re: [PHP] very simple, yet can't think how.
Thanks Mark and Sonu... as much as I've learned over the last few months I think I'm still a little confused about some of this stuff. I appreciate the Help you've given me :-) Would any of you know about any tutorials on something like this? books with tutorials, etc? If I knew what it was called I would google it - I'm just not sure exactly what it might be called lol Thanks again fellas :-D In a message dated 8/1/2005 10:45:14 P.M. Central Standard Time, [EMAIL PROTECTED] writes: I have coded this type of website for many years and have run the gamut of trying different things -- originally, 8 years ago, I used perl with flat files and physical folders but in the recent past I have used PHP, MySQL and dynamic folders. In my opinion the best way to build this site is with dynamic folders via custom 404 error handling. Here how it works: You build the pages for things like "contact us" "my store" "my stuff" or whatever. Then you send someone to the site with an address like: mydomain.com/joe which doesn't exist. A custom 404 error handler picks up the error and parses the URL to identify "joe" as a unique ID. The 404 script pulls "joe's" info from a database and populates the pages with his custom contact info then delivers the page. Joe's ID usually gets stuffed into a cookie and then when the person comes back to the site at a later date, they are delivered joe's info. That's it in a nut shell. Be sure that you deliver 200 headers and not 404 headers when delivering the dynamic folder. Now you can do the physical folders and every time someone "signs up" you can take the template and populate their pages and store these pages in a real folder named "joe." But, be aware using this method. Success (if having lots of users is your goal) will be your downfall because this system is not easily scalable. Just think what happens if you have 500 folders, or 5,000 or 50,000 folders with every folder having a copy of the files in them. Here is a 404 script I use: And here is the start of the getinfo.php script: Be sure to code the handling of an actual 404 just in case you don't have a user named joe or the surfer miss types. There's a ton of work in getting all of the bases covered - but it's sweet when it's done and you will know a lot of how a server works. Hope this helps. Mark Cain
Re: [PHP] very simple, yet can't think how.
Thanks! tried googling - only found "using ruby to automatically generate php sites"... the SW-Soft "Site Builder" program is a great program - looking all through it now. Thanks!
[PHP] mkdir, Shared Hosting?
Hi, I'm using Shared Hosting and I was told - then I learned from trial and error - that you can't use mkdir on Shared Hosting... is this *100%* true? is there a way around it? I get: Warning: mkdir(/home/***/public_html/test/): Permission denied in /home/***/public_html/test.php on line 3 So, again, is there any possible way around this? I've Googled, read the manual but it seems that If I don't get an Error - I get nothing at all, including the directory. Thanks for any help! - Clint
Re: [PHP] mkdir, Shared Hosting?
In a message dated 8/6/2005 10:59:44 P.M. Central Standard Time, [EMAIL PROTECTED] writes: As far as I know, it's not a shared hosting issue, but a permission issue. The site admin has not given the user under which your php scripts run permission to create directories and most likely files and other file system operations. It's a security issue. Robbert I see... I guess I could ask to see if I could get permission to do so then? lol never hurts to ask :) Thanks, Clint
Re: [PHP] mkdir, Shared Hosting?
Thanks, but I've tried that when I first got the Error message, it still gave me the error. Thanks though! In a message dated 8/7/2005 1:29:26 A.M. Central Standard Time, [EMAIL PROTECTED] writes: >Open up your FTP client and log into your website, then change the >permissions on your folder so that the apache process has write access >to it. Its really hit and miss depending on your setup. >The sure fire way (but highly insecure) way is to change the permissions >to the directory in question to 777. >A better solution would be 755, but it may not work. >Try it, and see what you get.
Re: [PHP] mkdir, Shared Hosting?
Thanks, I thought that might have been it - but It's not... I wrote a support ticket and - now - I'm able to use mkdir as long as the Directories are chmoded to 755+ :) thanks to all who helped! In a message dated 8/8/2005 2:16:12 A.M. Central Standard Time, [EMAIL PROTECTED] writes: >More than likely, your host has safe mode on. Safe mode is a pain in the >ass if you need to create directories or write to files, but seems to be >the defacto standard for shared hosts using php.
Re: [PHP] PHP and Active Directory
Is this something you're looking for? _http://www.phpfreaks.com/scripts/User_Authentication/16.php_ (http://www.phpfreaks.com/scripts/User_Authentication/16.php)
Re: [PHP] 'God' has spoken... :-)
In a message dated 8/14/2005 2:42:49 A.M. Central Standard Time, [EMAIL PROTECTED] writes: It's rather trivial to test it. Set up a second Apache server with php5 loaded that listens to port 81 or some other port and point it at the same document_root. Then you can switch back and forth by just changing the port number in the URL. Or, if you, or your application, doesn't like having :81 in the url everywhere, you can set up a VirtualHost on your port 80 server just like you set up virtualhosts for anything else and in it add a ProxyPass to port 81. Like this: ServerName name1.yourdomain.com DocumentRoot /var/www/html ... other standard config lines... ServerName name2.yourdomain.com DocumentRoot /var/www/html ProxyPass / http://name2.yourdomain.com:81/ In your httpd81.conf or whatever you call it you have your regular VirtualHost block for the name2.yourdomain.com. The only real difference is that at the top you have a "Listen 81" line instead of "Listen 80". What about XAMPP? It has a "switch" button that you can switch from PHP 4 to 5 really easy? Just a thought... It's what I use. _http://apachefriends.org/en/_ (http://apachefriends.org/en/) Features: "Apache HTTPD 2.0.54, MySQL 4.1.12, PHP 5.0.4 + 4.3.11 + PEAR + Switch, MiniPerl 5.8.6, Openssl 0.9.7g, PHPMyAdmin 2.6.2-pl1, XAMPP Control Panel 1.0, eAccelerator 0.9.3, Webalizer 2.01-10, Mercury Mail Transport System für Win32 und NetWare Systems v4.01a, FileZilla FTP Server 0.9.8a, SQLite 2.8.15, ADODB 4.63, Zend Optimizer 2.5.7, XAMPP Security. For Windows 98, 2000, XP." - Clint
Re: [PHP] protecting a directory
In a message dated 8/14/2005 10:54:57 A.M. Central Standard Time, [EMAIL PROTECTED] writes: >hello, >i want to protect a directory using php username and password >authentication.the username and passwords will be stored in .htpasswd >file.but the problem is that how to make user to enter passwod before giving >the rights to view directory. is there any script like this.or can anybody >help me out. >thanks, >Jenny. You can use an .htaccess file or - if you have something like cPanel on a shared hosting environment you can use the "password protect directories" and make it even easier... here's a good Tutorial on using Apache for this: _http://phpnerds.com/article/securing-php-files-using-http-authentication_ (http://phpnerds.com/article/securing-php-files-using-http-authentication)
Re: [PHP] one more mysql question
In a message dated 8/13/2005 6:33:16 P.M. Central Standard Time, [EMAIL PROTECTED] writes: >>while were not on the subject >>John I have a question about your wife ... >>oh shit wrong list ;-) >>no no I meant to ask about sand - how do I make a CPU using the stuff? lol... I thought that was pretty funny too? I would have laughed if it were directed at me... ahhh well... - Clint
Re: [PHP] Be careful! Look at what this spammer did.
Yeah, I had this happen to me a while back... glad some of the biggest have been caught lately =) << Original Message I have a form that my visitors can email me from. Some jerk is trying to fool the mail() function into sending his spam, and I got this today: [EMAIL PROTECTED] Content-Type: multipart/mixed; boundary=\"===0110030565==\" MIME-Version: 1.0 Subject: 7510b460 To: [EMAIL PROTECTED] bcc: [EMAIL PROTECTED] From: [EMAIL PROTECTED] This is a multi-part message in MIME format. --===0110030565== Content-Type: text/plain; charset=\"us-ascii\" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit blrt --===0110030565==--
Re: [PHP] Anyone on the list using Moodle?
have you tried their forums at moodle.org ? - Clint
Re: [PHP] Be careful! Look at what this spammer did.
In a message dated 8/17/2005 1:17:54 P.M. Central Standard Time, [EMAIL PROTECTED] writes: >I tend to agree on things like this. If it's a generic problem then I >think it does everyone some good to discuss it in the open. Although I >can see the point of not discussing specific problems with specific >applications, at least not until a fix is in and notices have been sent >out. Then I think it falls back to the "it does everyone some good to >have it in the open" senerio. I learn a lot from my mistakes, but I also >learn from other's mistakes too, if I'm given the chance. I agree as well... I was just reading about the whole thing at the Black Hat convention in Vegas, what some were jokingly calling "Ciscogate". These problems should definitely be discussed out in the open so people can know about the problem - not just 'developers of the product'. - Clint
Re: [PHP] Be careful! Look at what this spammer did.
Ironically, on AOL - all of my EMAIL accounts were spammed with "test" (subject message) emails... approzimately 10 a day for about 5 days in a row - all which had different account names - but the same messages. So, I have a feeling these are all connected with the hacked forms everyone's experiencing... - Clint
Re: [PHP] Looking for CMS advice
I would check out Mambo: _http://mamboserver.com_ (http://mamboserver.com) - Clint
Re: [PHP] Re: Looking for CMS advice
>"the CMS formerly known as Mambo" Yeah, I was reading about that last night... Interesting stuff lol Interesting future ahead as well. - Clint
Re: [PHP] java .vs php
Look at the Thousand and Thousands of vBulletin boards, PHPBB's and other PHP/MySQL based BB Systems out there with several thousand Members on at once, not including guests. I know Yahoo! uses PHP and I've heard Google does as well?
Re: [PHP] Gotta learn asp.net...
VTC.com has some ASP tutorials... you can get their Monthly "University" program for $30.00 a month?
Re: [PHP] Question about session
There's no code. You need to put your code in the Email so we can see it...
Re: [PHP] php/linux user groups in the east bay area..
Check the PHP.net site or PHPClasses.org -- they both have a good list of these groups.
Re: [PHP] Re: Zend + Eclipse + Standized Framework
_http://andigutmans.blogspot.com/_ (http://andigutmans.blogspot.com/) Andi talks about the Framework on his Blog. - Clint