[PHP-DB] Summary: recover values independently of GET or POST used
Thank you TG and Chris. Using $_REQUEST or something like $parameter = array_merge($_GET, $_POST); makes me a little noise; so preffer using extra ()'s, changing to $mydata = (isset($_GET[mydata])) ? $_GET[mydata] : ((isset($_POST[mydata])) ? $_POST[mydata] : 0); and include a little comment above. It works, thank you J. Alejandro Ceballos Z. w: http://alejandro.ceballos.info e: bu...@alejandro.ceballos.info m: +52 (33) 1411.6079
[PHP-DB] RE: Recommended web developers
On India or China even they have good deployment and prices are lower than USA, the main problem is the time difference and the language support. We have work for diffent projects and companies, but many of our clients and friends have told me that the previous issues have them changed their focus of outsourcing. Suppose you have to call for a check or something. First, you must agree at one hour that both can answer the phone and later understand each other what are you trying to understand. And at second point, if you need to go or they need to come.. just by videoconference. Physically may be a little difficult De: A. Joseph [EMAIL PROTECTED] Fecha: 24 de junio de 2008 10:00:37 a.m. GMT-05:00 Para: Evert Lammerts [EMAIL PROTECTED] Cc: J. Hill [EMAIL PROTECTED], php-db@lists.php.net Asunto: Recommended web developers Which company in India or USA can you recommend to design a complex website for my company. The site will be a social site, will include, Blog, Articles, Shops, Music, Movie, Directory, Pre-paid card system, Culture and Tourism, downloads, file upload and sharing The site is just like yahoo, but no email service. Advert method will be like Google Ads PHP 5 MySql, Smarty, SOAP Service, Ajax, Javascript, div based, Apache with mod_rewrite Admin Area, Users area, front end Full detail will be available Planned amount is $1 Max Atentamente, Porque nadie puede saber por ti. Nadie puede crecer por ti. Nadie puede buscar por ti. Nadie puede hacer por ti lo que tú mismo debes hacer. La existencia no admite representantes. -- Jorge Bucay ,_, (O,O) J. Alejandro Ceballos Z. [EMAIL PROTECTED] ( ) --- http://alejandro.ceballos.infomovil: 33.1411.6079
[PHP-DB] SUMMARY: Most frequently used words
Thank you for you help, specially to Chris that gives me a clue to solve it. The solution was: // store in str_wordlist all different phrases for($i=0; $icount($arr_phrase); $arr_phrase) { $str_wordlist .= .$arr_phrase[$i]; } // store in hash_frequencywords the counting values $hash_frequencywords = array_count_values(explode(' ',trim($str_wordlist))); // descendent sort based on values arsort($hash_frequencywords); // store the 20 most frequently words $arr_20mostusedwords = array_slice(array_keys($hash_frequencywords), 0,20); IHTH, ,_, (O,O) J. Alejandro Ceballos Z. [EMAIL PROTECTED] ( ) --- http://alejandro.ceballos.infomovil: 33.1411.6079 Atentamente, Felicidad no es hacer lo que uno quiere sino querer lo que uno hace. -- Jean Paul Sartre ,_, (O,O) J. Alejandro Ceballos Z. [EMAIL PROTECTED] ( ) --- http://alejandro.ceballos.infomovil: 33.1411.6079 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] re: mysql ORDER BY problems
are they defined as integer or varchars (string)? try a) exchange field definition varchar / integer b) order by length(number) and later by number -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] capture a webpage to later process it
I want to read the results of an URL address, to later process it and insert part of them as internal code. If I use include or require, they inserts ALL the resulting code, but I want to do something like: blah, blah, blah ?php $result_webpage = somephpfunc('http://other.sit/externalpage.html'); if (eregi(result:([:alnum:]+).*([:alnum:]+\.jpg),$result_webpage,$array_match)) { echo h2External status:.$array_match[1].brimage: img src=\..$array_match[2].\/h2; } ? blah, blah, blah TIA, ,_, (O,O) J. Alejandro Ceballos Z. [EMAIL PROTECTED] ( ) --- http://alejandro.ceballos.infomovil: (33) 3849-8936 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Printing + without encoding as %2B
While calling a php with a parameter, the plus sign is interpreted as a white space. Is any solution to prevent this in the php page, not before calling it or previously urlencoding? --- While calling http://mysite.com/mypage.php?id=29d9f+Kr2/4=otherdata=xx ?php echo id = $id; ? prints: id = 29d9f Kr2/4= -- Saludos, J. Alejandro Ceballos Z. | ---+--- http://alejandro.ceballos.info | [EMAIL PROTECTED] | ¿Cómo es posible, ---+ que mientras medio mundo Tel: (33) 3647-7809 | hace dietas para no engordar, Cel: (33) 1076-4705 | el otro medio | se muera de hambre?. | | - August -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] RE: stuck on stupid...can't find the bloody error..
Isnt easy to use if (! $page_req) or if (strcmp($page_req,0)) instead of if ($page_req == ) or if ($page_req == 0) ? -- saludos, J. Alejandro Ceballos Z. | ---+--- http://alejandro.ceballos.info | [EMAIL PROTECTED] | Life is like a shooting star ---+ it don't matter who you are | if you only run for cover, | is a waste of time | we are lost 'til we are found | this phoenix rises up | from the ground | and all these wars are over. | |-- Live, The dolphin's cry -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] using a define value
Then, is not possible to use a definition table for errors or equivalents?. It must be a variable value or a hash? I am using this for error messages after a CGI execution. That is why planning to use a code for error, and definition table show the specific message. Like http://myphppage.php?error=ERROR1; [snip...] But while trying to be called based on parameter, is not possible to call them via: $myerror = ERROR1; That would be $myerror= ERROR1; echo strongERROR._$myerror./strong; ... and that would be echo strong.ERROR.._$myerror./strong; -- saludos, J. Alejandro Ceballos Z. | ---+--- http://alejandro.ceballos.info | [EMAIL PROTECTED] | La persona más patética del ---+ mundo es alguien que tiene | vista, pero no visión. | | -- Hellen Keller -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] using a define value
I have declared some values as define statements, like: define(_ERROR1,Error: Your value is wrong, please check params); But while trying to be called based on parameter, is not possible to call them via: $myerror = ERROR1; echo strongERROR._$myerror./strong; It not works. Any suggested solution without using _ERROR1 like a variable ? -- saludos, J. Alejandro Ceballos Z. | ---+--- http://alejandro.ceballos.info | [EMAIL PROTECTED] | La persona más patética del mundo es ---+ alguien que tiene vista, pero no visión. | | -- Hellen Keller -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php