Whats a good php book for a starting programmer in Hebrew
Hi, My brother is in 7th grade, I think it's time for him to learn php. His English is not so good. So something in Hebrew will be very appreciated. Thanks. ...
Hi, My brother is in 7th grade, I think it's time for him to learn php. His English is not so good. So something in Hebrew will be very appreciated. Thanks. ...
Is there an appreciable performance difference between having one SELECT foo, bar, FROM users query that returns 500 rows, and 500 SELECT foo, bar, FROM users WHERE id = x queries coming all at once? In a PHP application I'm writing, I'm trying to choose between a writing clear, readable section of code that would produce about 500 SEL...
Hi! I'm an intermediate PHP web developer and I'm currently working on a website project. Being totally new to the whole business I've programmed my server side part with PHP. Now I've read everybody's using "Ruby on Rails" and it makes other languages obsolete and all that. Is that really true? Is there any value to transforming my ent...
I'm currently using Fusioncharts Free in my project which requires XML to be in a specific format, both for the display of data and for the appearance of the chart. I have a PHP file called webservice.php which has many similar repetitions of the below: $address = $_SERVER['PHP_SELF']; ... if ($address == 'webService.php/fcf/last5pr...
Hi, I am in the process of choosing a web framework for an application that will contain: an ajax heavy user interface for administration and configuration subsite accessed by mobile terminals (like cellphones, windows mobile, etc) that will include Google Gears for offline support a reporting site Since I know basic PHP as well as ...
Hi everybody, I am writing PHPUnit test cases for a web application. As the tests are run within a command line environment, I am mocking a number of predefined variables such as $_POST, $_GET,$_SERVER, etc.. My test has to make sure that my controller class parses properly JSON input (which is sent as raw POST and red through php://in...
The problem is when the link is clicked. I have a problem ONLY if the third parameter contain space OR/AND character like ê,é,î... <a href="javascript:arretSuivrePortefeuille('13206','Suivre','Arrêter de suivre');">Suivre</a> I receive from FireBug : arretSuivrePortefeuille is not defined javascript:arretSuivrePortefeuil...
I need to get some part of html pages using php XPath query (sorry im new to XPath). example html page <html><head>blah lines</head><body> <div id="mytable"> <table><tr><td>table cell value</td></tr></table> </div> <body><html> is there any way to get div contents of above example along with html tags using XPath ...
I fairly expereinced C/C++ developer (in my mind), but have never done any PHP and certainly no CMS/Web app stuff (I have done a few static sites). I am looking for some resources that won't try to teach me what a for loop or if statement is, but get me going on php and drupal dev (for drupal, I need to get a grasp on whether I will ha...
Is this OK ? $i = 0; while ($row = mysql_fetch_array($result)) { $resultset[] = $row; $columns[] = mysql_fetch_field($result, $i); } Then when trying to print <tr><th><?php echo $columns[0] ?></th><th><?php echo $columns[1] ?></th></tr> I got an error Catchable fatal error: Object of class stdClass could not be converted t...
Hello $mostamazingforumforfastanswersever. I have a quick silly question; what is the best way to write this : if ($curpageurl == "www.mysite.com/this" || "www.mysite.com/this/") { echo 'this is the this page'; } and if it isn't, then I need to call while (isset($somevariable) { echo '$somevariable'; } and if that variable isn'...
One of the benefits of prepared statements, (really the only major one) is that SQL commands/triggers are sent in one request - and the user-data (or whatever you provide) is sent in another transfer. This transfer of the user-data (i.e. for an INSERT) is supposed to be in binary form so that PHP (and then the DB server) don't waste time...
<?php // query db $sql = "SELECT category.id as category_pk, category_id, products.* from category, products WHERE products.id = category.category_id AND category.id = category_id"; // from category get id if ($result = mysql_query($sql)) { if (mysql_num_rows($result)) { $row = mysql_fetch_assoc($result); ...
Hi I was following code igniter user guide for forms and I encountered this strange output can anyone tell how to fix it? Here is my code for beginning of the form <?=$attributes = array('class' => 'email', 'id' => 'myform');?> <?=form_open('email/index/', $attributes); ?> I get form with id and class which I specified above but for...
what do you think about this login procedure? is it pretty safe? When they login i first check that the username exist, if it does i grab the salt (every user have unique salt) from the user, that i re-hash with posted password $pass = hash('sha256', $salt . $posted_password); and then i just compare with $check = mysql_query("SELE...
Hello all, I am using qtranslate wordpress plugin to store blog content in multiple languages. Now I need to extract content from qtranslate tags. $post_title = "<!--:en-->English text<!--:--><!--:it-->Italian text<!--:-->"; What would be the php code & regular expression to return text and language from this string? Thanks a lot! ...
i want to find and replace a string in netbeans. but the edit -> replace button is unclickable. why is that and how do i solve it? ...
After some searching I found this youtube style url generator with encryption to hide the original id... however I am hoping to improve the efficiency as it will be used a lot. So far I have improved it by 20%... can anyone help me improve it more. This is the original: function alphaID($in, $to_num = false, $pad_up = false, $passKey =...
Hi I'm very fresh to PHP world. Trying to do as I think very simple thing(?)- include external file in Joomla template. <?php include_once('templates/' echo $this->template '/includes/footer.php'); ?> But unfortunately it is not working. can someone please tell me how correct string should look like? Thank you in advance ...
Hi everyone! I currently have a site with multiple articles being user-generated as content. On each new post, there is a hidden $getcurrentpageurl variable. When a user is reading a post (x), a form button saying "respond to this post" sends the user to a submit form, in which a hidden field catches the posted $getcurrentpageurl, and i...