[PHP] Re: [PHP-DEV] Sayonara PHP
Hi, Martin Alterisio wrote: Please let me do a little explanation of the title first. Japanese is an interesting language where context is vital to the meaning of a word. Sayonara usually means a simple good bye, but within a different context can mean we'll probably never meet again. To understand this mail you'll have to know that I was just another user of PHP, an user that was probably too eager. I wanted to get more involved with the development of PHP as I do believe in all the philosophy of open-source. In the end I found my attempts ended in frustration, but, nevertheless, I learned a lot in just a few months. I don't want this mail to be one where I get to display all my frustration, instead I want to leave here all my findings, the things I researched, the few things I managed to actually code, and mostly the ideas that someone else might find useful. Snip of interesting technical stuff. The end Well that wraps it all, I think. That's as much as I can download from my brain which is related to PHP. Do whatever you want with all this, even the spam folder is fine. Anyway, it's been fun, and I learned a lot. My thanks to everyone that ever gave a hand. A former PHP user says to you all: Sayonara PHP While I'll admit I've not fully read your mail due to it's relatively in-depth and technical nature that I'm not really up-to-speed with regarding the internals of PHP, it did strike me when skimming the mail, that you've not really covered your personal standpoint now. You state some interesting technical about how namespaces and such will/could work in 5.3 (something which I would personally welcome with open arms (especially as I've coded around the autoloading issue with other techniques involving regexps of class names and other such slightly nasty things (although acceptable if you used good prefixes on all your class/interface names)). But you also say you're leaving PHP (if not for good, at least for now) and you don't really say why, other than referring to the hard initial entry to the internals community. If you would be so kind, I think it would be interesting to say why you have decided to move away from using PHP (and what you are now intending to use!). I think it would help the PHP community grow stronger with this kind of information as much as the technical information you've already given. P.S.: Please be understanding if I don't answer replies to this email. Wishing you all the best. I appreciate this may not get an answer :) Col -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Connecting to MySQL database
Hi, I have installed following things on windows machine. 1. Apache HTTP Server 2.2.4 2. PHP 5.2.3 3. MySQL 5.0.45 I am getting mysql_connect() not found. I have downloaded libmysql.dll, php_mysql.dll php_mysqli.dll and copied to c:\php\ext. I have uncommented these dll files in php.ini and still getting the same issue. I am not able to see mysql table in phpinfo(), and seeing only mysqli. Could anybody help me on this issue? Not able to resolve this from past 3 days. Any help/suggestions appreciated. Thanks Balaji -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Sayonara PHP
Well, my fellow countryman... one of my classmates at college had a saying: el hombre es un animal de costumbres (translate it you gringos :) - no offense). And I guess it's most of the time like that... we learn something, we are never willing to unlearn it. But the truth is, there are at least as many habits and learnt behaviors as people are there walking in the streets. So, sometimes, we should be a bit more tolerant to foreign habits (unless we are Micro$oft.. but even so...). If my intuition is right you must come from the Java/C++ world (my bet is java 80/20). Maybe you have evaluated the hassles of implementing namespaces into PHP... and you have concluded it's not possible. Or maybe, that it will be a buggy implementation in the end; like PHP 4 OOP (which doesn't look like OOP at all). Maybe some old-seasoned gurus in the internals community have set you apart, or have treated your opinions with contempt (this is just my assumption, like most of this email's contents). So, you are now assuming that you won't need PHP, and that it will 'die(alone)' like some poem of your authorship stated in one of its verses. Yes, after all developers find out the hassles of namespaces and type hinting in PHP, they will give up... won't they? (just reading your mind... forgive my arrogance and continue). You know... I think I'm about your age (judging for the picture of yours at phpclasses.org, if that's your picture). Maybe a bit younger, or a bit older... but just a bit. And the thing is, I heard about two years ago or so, a big buzz around a PHP replacement. It was something about trains (that's the farthest understanding I reached on it... something about trains). I think it was called, railroad, or railway, or diamond on a train... ... nope, now I remember, it's ruby on rails (if you have a sarcasm detector, use it now). Last time I checked, it was still alive... arguably in a much more evolved fashion, and some (may I say few?) hosting companies support it now. I don't know much about current statistics, but I'm tempted to say that: - There are many more Books on PHP than on RoR - There are many more PHP hosting offers than RoR's counterpart (even if we reduce the stats to PHP 5 - just a guess) - There are many many more websites built on top of PHP than the RoR's counterpart - There are many many more extensions, APIs and Frameworks for PHP than for RoR (actually, RoR IS a framework itself) - There are many many more PHP developers than RoR developers In the shared market niche, PHP has beaten java, coldfusion, asp, and perl, which already existed. PHP has survived .Net rumbling, despite the Vb, C#, J# or C++ flavors and the awesome Vi$ual $tudio IDE. And despite all the predictions and prophecies about PHP's doom... it is still here, and will be here and in the top 5 for at least 10 years. By the time PHP is replaced by RoR or anything else, I will probably be selling RoR T-Shirts, or be retired, or be dead (maybe of lung cancer, or cirrhosis, or just because no-one can live past 120's)... The point is... sayonara PHP means sayonara most new clients right now, sayonara sustained trend, sayonara all php-based solutions and sayonara most of the web development world. The facts show that googling for PHP throws about 8,830,000,000 results (this is a bit biased, but the point still holds)... try to Google for anything else and get similar numbers. So... why not just saying sayonara PHP internals if that's the scenario in which you've had trouble? (meaning, bad luck, not lack of skill). I've seen some of your code, and though I don't personally use it, I find it interesting. And I dont use it because I see no need for it; RIGHT NOW, most of my company's projects are either small or already work with a framework of some kind. I think I know why not just sayonara PHP internals... because I know how this or that should be, I want to turn it into the way I think it should be... and as I can't do that, because someone or something prevents me to do so... I feel frustrated and I just give it up. Again... just (wrongly?) reading your mind. Now, it's like you couldn't live without namespaces, could you? We've all being living without namespaces so far... and we've all lived with PHP 4 OOP so far. And it was even harder for me... I come from the Delphi world and had previously done some bit of C++ too. So just imagine that when I switched from Delphi to C++ I was expecting a (SINGLE!) VCL... and a form to place the UI elements... oh and a use MyUnit kind of magical syntax (instead of include whatever or using namespace std). But I had to live with that... and finally I got used to the good and bad of C++ somehow. Then, I started making my first steps into PHP and the web, and immediately thought similar syntax, supports OOP will be easy but I had to drop and/or rewrite all my first attempt code because it just happened that the client for which we where working had a hosting of its own with PHP 4.2
RE: [PHP] Connecting to MySQL database
For a quick installation, try this http://www.apachefriends.org/en/xampp.html (XAMPP for windows). You will also have mercury mail and FileZilla FTP Server (watchout your firewall and change the passwords... you're warned). Your PHP.INI will be at xamp-dir/apache/php.ini, but for the most part, you won't need to modify it. Rob -Original Message- From: Balaji A [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 26, 2007 1:19 AM To: php-general@lists.php.net Subject: [PHP] Connecting to MySQL database Hi, I have installed following things on windows machine. 1. Apache HTTP Server 2.2.4 2. PHP 5.2.3 3. MySQL 5.0.45 I am getting mysql_connect() not found. I have downloaded libmysql.dll, php_mysql.dll php_mysqli.dll and copied to c:\php\ext. I have uncommented these dll files in php.ini and still getting the same issue. I am not able to see mysql table in phpinfo(), and seeing only mysqli. Could anybody help me on this issue? Not able to resolve this from past 3 days. Any help/suggestions appreciated. Thanks Balaji -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Connecting to MySQL database
First I suggest you see if MySQL is even running. Terminal Window type the following service mysqld status If it is running Great now you need to check your connection string for Errors. Not running do this * Terminal Window service mysqld start If you have an error in the setup it will display it for future trouble shooting. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] ASP 2 PHP
Hi gang: I have a client who has an entire site done in asp and wants me to convert it to php -- is there an easy way to do this or do I have to do it line by line? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] perl regexp gui
Is there a linux program that can help me testing my patterns (preg) something like GRegExp but for perl regexp -- OOzy Ubuntu-Gutsy (7.10) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ASP 2 PHP
On Dec 26, 2007 11:26 AM, tedd [EMAIL PROTECTED] wrote: Hi gang: I have a client who has an entire site done in asp and wants me to convert it to php -- is there an easy way to do this or do I have to do it line by line? Line-by-line translation is going to be your best bet. I've done a lot of ASP-to-PHP site conversions (for record labels, etc), and the ASP to PHP conversion tools don't work well enough. -- Daniel P. Brown [Phone Numbers Go Here!] [They're Hidden From View!] If at first you don't succeed, stick to what you know best so that you can make enough money to pay someone else to do it for you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] perl regexp gui
OOzy Pal wrote: Is there a linux program that can help me testing my patterns (preg) something like GRegExp but for perl regexp http://www.weitz.de/regex-coach/#older -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] XSS
Am facig problem with XSS cross Site scripting general on our web site, and i think its a coding issue since our dedicated server run Linux with apache mysql and php... any recommendation to resolve this issue -- madunix
Re: [PHP] XSS
On Wednesday 26 December 2007 21:03:40 Mad Unix wrote: Am facig problem with XSS cross Site scripting general on our web site, and i think its a coding issue since our dedicated server run Linux with apache mysql and php... any recommendation to resolve this issue yes! you feel something missing? -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] XSS
On Wednesday 26 December 2007 21:03:40 Mad Unix wrote: Am facig problem with XSS cross Site scripting general on our web site, and i think its a coding issue since our dedicated server run Linux with apache mysql and php... any recommendation to resolve this issue Sure! --- Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. [Email] [EMAIL PROTECTED] [Web] http://www.rahulsjohari.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] XSS
On Wed, 2007-12-26 at 21:08 +0100, Børge Holen wrote: On Wednesday 26 December 2007 21:03:40 Mad Unix wrote: Am facig problem with XSS cross Site scripting general on our web site, and i think its a coding issue since our dedicated server run Linux with apache mysql and php... any recommendation to resolve this issue yes! you feel something missing? A url would undoubtedly help along with a description of the XSS cross-site problems currently being encountered. Cheers, Rob. -- ... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power of the masses! ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] XSS
On Dec 26, 2007 12:03 PM, Mad Unix [EMAIL PROTECTED] wrote: Am facig problem with XSS cross Site scripting general on our web site, and i think its a coding issue since our dedicated server run Linux with apache mysql and php... any recommendation to resolve this issue -- madunix Of course! -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] I need your vote http://gmailrulz.blogspot.com/
On Thu, 2007-12-27 at 00:21 +0400, Gevorg Harutyunyan wrote: Hi People, Please take a minute from your time and vote there. The poll content is simple are you using Gmail or not ? Seems a bit misleading... to give an accurate rendition of how I do things I would need to check that I use gmail 3 or 4 times (one for each active account I maintain), and then also check that I don't about 8 times for each non-gmail account I actively use. How best to approach this situation with respect to your poll? Cheers, Rob. -- ... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power of the masses! ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] I need your vote http://gmailrulz.blogspot.com/
On Wednesday 26 December 2007 21:21:42 Gevorg Harutyunyan wrote: Hi People, Please take a minute from your time and vote there. The poll content is simple are you using Gmail or not ? -- Best Regards, Gevorg Harutyunyan ppl didn't come out of christmas with their brains intact, wtf is these weird postings on the lst -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How to pass selected options to .php file when two scrolling lists appear at different times on page
Hi all, I have two database tables (I don't think it is a database problem, by the way) data_series and data_sets. data_sets is a child of data_series. I want my PHP form to display a scrolling list of all the data series in the database. The user will then select a subset of these, press a submit button, and be shown a scrolling list of all the child data sets of the selected data series. Problem is, when I code this following an example in PHP programming, the data series are displayed properly in a select named 'data_series'. The scrolling list called 'data_sets' is drawn properly. But when the program tries to retrieve the selected data_series via $_GET[;data_series'] it gets the label 'Data Sets' of the second scrollling list in the series. I have looked at this for an hour now, trying various tweaks of the code, and cannot figure out what is wrong. Here is my php code for the page: ?php error_reporting(E_ALL); ? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; head meta http-equiv=Content-Type content=text/html; charset=utf-8 / titleData Set/title /head ?php require_once(./config_file.php); require_once(./lib_mem.php); require_once(./lib_mem2.php); require_once(./lib_delete.php); ? body div align=center h2Select Data Set/h2 /div form id=series_select name=series_select method=GET action=?php echo $_SERVER['PHP_SELF']? ?php if (array_key_exists('get_data_sets', $_GET)){ ? ?php $data_series_id_list = implode($_GET['data_series'], ','); echo data_series_id_list = $data_series_id_list\n; $select_data_set_cmd = SELECT ds_data_series_id, ds_name . FROM data_sets . WHERE ds_data_series_id IN ( . $data_series_id_list . ). ORDER BY ds_name; echo select_data_set_cmd = $select_data_set_cmd\n; echo_scrolling_list_from_database ('data_set', '', 'Data Sets', 15, 0, $pg, $select_data_set_cmd, array()); ? pnbsp;/p p ?php echo_a(./edit_data_set.php, Edit data set); ? /p pTo edit the data for a data set, go to the main menu and select Data gt;gt;Enter New or Edit Existing./p p ?php echo_a(./display_data_set_example.html,Display data set and data); ? /p p align=left ?php echo_a(./index.html, Home); ? /p ?php } else { $select_data_series_cmd = SELECT sr_data_series_id, sr_name FROM data_series ORDER BY sr_name; echo_scrolling_list_from_database('data_series', '', 'Data Series', 15, 1, $pg, $select_data_series_cmd, array()); echo_submit('get_data_sets', 'Get Data Sets'); } ? /form /body /html The functions I call from the lib_mem2 file are: // echo_scrolling_list_tag // echo_scrolling_list_head // echo_option //these functions together are used to produce the HTML code to construct //a scrolling list from items selected from a database table. The select cmd //is given as one of the parameters to the echo_scrolling_list function. The first //column selected in the list must be the primary key id of the table. The remaining //selected values are formatted into a colon separated string. They appear as the rows //of the scrolling list. The id is stored as the value of the row. //If multiple selections are enabled the scrolling list returns an array. Else it //returns a scalar. // //echo_scrolling_list_tag //constructs html tag for scrolling list //Parameters: //name name of scrolling list (should be name of primary id of table) //class CSS class //label label for scrolling list //size number of rows to display //multiple_OKtrue if multiple selections are allowed //Action: echo the select name=... tag for a scrolling list // function echo_scrolling_list_tag($name, $class, $label, $size, $multiple_OK){ $for_phrase = 'for=' . $name . ''; echo label . $for_phrase . . $label . /label; $multiple_OK_braces = $multiple_OK ? [] : ''; $name_phrase = 'name=' . $name . $multiple_OK_braces . ''; // call with $name[] to return array if multiple, else return // single value $class_phrase = 'class=' .
[PHP] Re:how to pass selected options to... Ignore last letter. Program works
Hi all, Knew I should have tried it one more time before firing off the last letter. The page is now working properly. Apologies and thanks mary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php