I've heard that mysql queries are very expensive, and that you should avoid at all costs making too many of them.
I'm developing a site that will be used by quite a few people, and I'm wondering:
How expensive are mysql queries actually? If I have 400,000 people in my database, how expensive is it to query it for one of them?
How clos...
I am trying use a web service in a C# ASP.Net Web Application. The service is built in php and is located on some remote server not under my control so i cant modify it to add meta data or something else into it.
When i use the "Add Web Reference" option in Visual Studio 2008,
I receive the following error:
The HTML document does no...
I've created a code to change a password. Now it seem contain an error.
When I fill in the form to change password, and click save the error message:
You forgot enter your userid!
Please try again.
I really don’t know what the error message means. Please guys. Help me fix it.
Here's is the code:
<?php # change password.php...
Hi, As the title states... I am deleting a 'subject' from a 'classroom' I view classrooms, then can click on a classroom to view the subject for that classroom. So the link where I am viewing subjects looks like:
viewsubjects.php?classroom=23
When the user selects the delete button (in a row) to remove a subject from a class, I simply...
Hi guys , I'm getting my feet wet with developing my order management applications for integration with google apps. However there are certain aspects I need to take into consideration prior to proceeding any further.
My application is such that it would upload documents to google documents and store contacts in google contacts. It requ...
Hi!
How can i create several screenshots (desktop, menu) from nokia theme for s60 platform in sis formt using lamp?
...
Hi,
I'm needing to dynamically display the title of a node within a block. I would have thought this would be simple, but all the code snippets I've tried don't seem to work (e.g. <?php print $node->title; ?> )
I've checked and tested that the PHP input format is on and working with other PHP bits and bobs, and everything seems OK.
A...
I'm sending a ACK response back to a SOAP request (via Salesforce) and I would like to capture what I'm sending back to SF. Now I seen some stuff online that uses ob_start (or one of the ob_ functions) to record the response but I've never used ob_ before and after Googling for a while didn't find anything I could use/follow.
The Proble...
I have a form that sends info into a database table. I have it checked with a Javascript but what is the best way to stop spammers entering http and such into the database with PHP when Javascript is turned off?
...
When I am trying to execute following code to email the contact form details, it is not executing properly. Instead, when the contact form's Submit button is clicked, it just shows the below source code in the browser. What's wrong?
<?php
error_notice(E_ALL^E_NOTICE);
$firstname = $_POST['fname'];
$emailaddress = $_POST['ea...
What it the best practices with for example Dom scripting on the client and serverside with php.
What should you do with dom and what with php, can I skip installing php and do everything with dom as with php?
...
I'm using fopen to read from a file
$fh = fopen($path, 'r') or die('Could not open file');
Now I contantly get error Could not open file. I checked the file path and even changed the permissions of the file to 777. Is there a way I can get a detailed error report as why the file can't be opened similar to mysql_error()?
...
I've created a code to change a password. Now it seem contain an error.before i fill the form.
the page display the error message:
Parse error: parse error, unexpected
$end in C:\Program
Files\xampp\htdocs\e-Complaint(FYP)\userChangePass.php
on line 222
this the code:
<?php # userChangePass.php
//this page allows logged in ...
I'm trying to compare shadow password with php cli but not work ! i use this function so i can create password like shadow
function shadow ($input){
for ($n = 0; $n < 9; $n++){
$s .= chr(rand(64,126));
}
$seed = "$1$".$s."$";
$return = crypt($input,$seed);
return $return;
}
when i replace the result in sha...
I am using the DOM extension to parse an xml file containing xml namespaces. I would have thought that namespace declarations are treated just like any other attribute, but my tests seem to disagree. I have a document that starts like this:
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://purl.org/r...
i use local server, and there are some problems with sending mail!
i think i must change something in my php.ini file. can somebody help me?
the whole problem in this!!! it doesn't return any error! that is why i can't understand
...
I'm a little confused.
I have created an app, and edited the profiles to add the tab. I created a quick sample app at app.facebook.com/myapp/tab.php with this code:
<?php
require_once '../php/facebook.php';
$apiKey = 'key';
$secret = 'secret';
$facebook = new Facebook($apiKey, $secret);
print 'Works';
?>
I cannot seem to find...
Hello,
Can anybody help how to setup a automatic backup of mysql database and then emailing it to me daily?
Thank You.
...
I'm an author of a growing library of PHP + QuickBooks related code. I'd like to utilize PHPs __autoload() function, however my code is a library that other people can include() into their own applications, so I can't rely on __autoload() being not already defined.
Is there a way to have multiple __autoload() functions?
I saw spl_aut...
i have the video gallery in my database, which has over 200 000 videos.
in my home page in the site i show exactly some videos, which must satisfy to some criteria. and so, what is the question. is it a good way to sort videos every time the home page opene, or i must save the sort results somewhere in the database, and refresh them only...