Not sure how you'll take this question but...
Whenever I try to make my URLs look pretty I always end up messing around for too long and it's simply not worth the trouble. But the end effect is good if it were a simple task.
So what I want to do is create a method which in the end would achive something like...
index.php?do=user&usern...
echo $totalprice;
echo "<br/>";
echo $shortfall;
echo "<br/>";
echo $unitprice;
echo "<br/>";
I got
24 80
0.3
Then the following command was executed.
// update query
However, only
total_price
was changed(became 0.00) while other values like
unit_price
stay unchanged. But other values like
unit_price
sh...
Hello,
i have a xml structure of the following form to be parsed using PHP simplexml.
<books>
<book>
<title>XYZ</title>
<author> someone </author>
<images>
<image type="poster" url="<url>" size="cover" id="12345"/>
<image type="poster" url="<url>" size="thumb" id="12345"/>
</images>
</book>
<book>
<title>PQR</title>
<author> someonee...
I'm writing a script in php which updates my database with certain xml information every 30 seconds. (I'm not allowed any other scripting language, and I find php an easy language to work with anyway)
However, because this php script can run for several minutes my mysql database tends to fall away. A lot.
So I started to use link ident...
I've got a project that I am setting up file uploads for. The project is in Zend, but I am using PHP's $_FILES array and move_uploaded_file to save the files. This was working perfectly on my Windows Vista computer but won't save the file on Windows 7.
It creates a new folder for every upload no problem, but won't save the file and ...
Hello,
i have a xml structure of the following form to be parsed using PHP simplexml.
<books>
<book>
<title>XYZ</title>
<author> someone </author>
<images>
<image type="poster" url="<url>" size="cover" id="12345"/>
<image type="poster" url="<url>" size="thumb" id="12345"/>
</images>
</book>
<book>
<title>PQR</title>
<author> someonee...
I'm coding in PHP and threads are a bit out of my league. I'd like to run the same script in parallel. Say my script runs for 2 minutes, and I run it every minute during a cronjob. What happens? Does the first one fall over when the second one runs, or do they just both hum along?
...
So I wrote an image gallery with an option to download the original image (by default, it displays a resized version of the image). I would love to know how to I
The following code will force users to save pdf rather than viewing it with browser, I would love to achieve the same effect for the images (jpg, gif, png) by binding the clic...
As a php learner, I have been experimenting with some of the smaller PHP CMS'. All CMS' that I have used employ a database abstraction layer.
Am I correct in assuming that this would be a characteristic of just about all PHP CMS'?
Thanks!
...
I noticed that PHP seems to return only values of checked checkboxes. I would like to see a list of checkboxes, not just values of checked checkboxes. Is there a way to detect variables of unchecked boxes?
I asked because I want to be able to update settings. For example, I have a few options that are already checked but if an user dec...
While running some PHP code on my private WAMP PC I'm suddenly getting a blank response from the server - no response actually. No headers, no data, nothing in the PHP error logs, nada. I restarted APACHE and PHP but still nothing. I know php is working because I can access other PHP scripts just fine.
Firebug reports no headers, ? byte...
I'm looking Specifically for some detailed information on RETSBond Integrator (RI) or something similar. Has anyone used it? Drawbacks? benefits?
What I need is something that provides a PHP API out of the box or some kind of RPC exposure. This thing seems to provide an API for batching the MLS server and putting in my own DB which is a...
i created a signal handling class using pcntl_signal which now i want to use
for sigalrm
the problem i have is that my phpunit test for testing the signalclass works (where im only using declare ticks in the signalclass), but
the testclass for testing the alarm class, which in turn using the signalclass doesnt
if i add declare(ticks=1) ...
$sql = 'select ...';
$result = mysql_query($sql,$con);
Is there a function for this?
...
i really dont understand javascript.
in php i can do like this:
$tags_array = preg_replace('/"/', '', $tags_array);
to remove quotes. how do i write it in javscript?
...
When Im trying to send mail through PHPMailer, im getting this error message. My code is below. Help
CODE :
<?
require("phpmailer/class.phpmailer.php"); // First we require the PHPMailer libary in our script
$mail = new PHPMailer(); // Next we create a new object of the PHPMailer called $mail
$mail->From = "[email protected]";
$...
Hello Sir/Madam ,
I am in need of session variable must be exist even after browser closed or system shutdown.
But in my page it will not support session scope between browsers that is at first i signin with firefox while i login with chrome browser it comes to login page . Why these happen . Please any body help me to solve this pro...
Here is the dump from WireShark:
POST /drm/drm_production_v2.php HTTP/1.1
content-length: 278
content-type: text/xml
User-Agent: UserAgent 1.0
Connection: Keep-Alive
Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=
host: www.example.com
<methodCall>
<methodName>aMethod</methodName>
<params>
<param>
<value>
<b...
Hello everyone,
I am trying to find out a solution for implementing themes selector on my website build using PHP.
After logging in a user is presented with the available themes, and the one that is selected get stored in his profile.
But if a user is willing to change the colour of his current theme with his own customized colour, th...
Hi,
Any one of you who has worked on CI knows that it uses a segmental approach for the urls, eg.:
index.php/controller/function/params
Let's suppose I have put in place the following URL to submit the contact us form info:
index.php/contact/submit_contact
Now there is one thing that seems wrong. What if a bad guy sees the source ...