Hell all,
I have made use of the following ignore_user_abort.
ignore_user_abort(true); set_time_limit(0); session_start();
However, when I navigate away from the page which I fireoff an AJAX request, the script stops?
What am I doing wrong?
Update
In the PHP manual it says:
PHP will not detect that the user has
aborted the c...
Here is a task:
"3 brothers have to transfer 9 boxes from one place to another.
These boxes weigh 1, 2, 4, 5, 6, 8, 9, 11, 14 kilos.
Every brother takes 3 boxes.
So, how to make a program that would count the most optimal way to take boxes?
The difference between one brother's carrying boxes weight and other'...
I know there exists xml-rpc plugin for Trac (http://trac-hacks.org/wiki/XmlRpcPlugin), but I was wondering if anybody knows any example/tutorial for using xml-rpc PHP client to update Trac infos.
Thanks
...
Hello, I was wondering if anyone else has tried to develop a PHP extension that can be used with apache, done on Visual Studio 2008, and what steps they had to go through to do so. I would like to not install VS 2003 to use the VC6 compiler, but if I absolutely have to, I will.
...
Hey guys,
If I run our website (www.deversus.com) through a meta analyzer, such as the one at http://www.seocentro.com/tools/search-engines/metatag-analyzer.html our meta description/keywords are not found, but they do exist in the source code. Our website is using SilverStripe - I've checked a few other websites that use SS (even silve...
there are tons of books out there teaching you a new language. but some of them are just too thick with lot of information and less code. it usually makes you sleepy. especially when you already know the basic syntax and wanna learn how to use a new language very fast.
are there good series of books for this?
the dummies series is very...
I want to create a popup in PHP.
...
Hello all!
I have the following prepared statement:
$sql =
"PREPARE stmt_name FROM
'SELECT I.item_id, I.name , I.price, I.discounted_price, I.thumbnail_photo
FROM item I
JOIN sub_category SC
ON I.sub_category_id = SC.sub_category_id
JOIN category C
ON C.category_id = SC.category_id
WHERE C.category_id =...
Much like this:
http://www.w3schools.com/PHP/php_file_upload.asp
But I'd like to store the contents of the file into a variable. Is there a shortcut to this? (instead of saving it to a temp file, then opening the temp file and reading it into the variable)
...
I'm gonna use sha256 for my site,to secure my users passwords,and as salt i was thinking of usings the users id (int auto_increment). that will be unique but not very long and hard,and public(user.php?id=1) but it just matters if its unique right?
hash('sha256', $id . $password);
have a nice day
...
I've seen lots of examples of how to use uniqid() in PHP to create a unique string, but need to create a unique order number (integers only, no letters).
I liked the idea of uniqid() because from what I understand it uses date/time, so the chances of having another id created that is identical is nil.... (if I'm understanding the functi...
I need to test my web app in a scenario where there’s no disk space remaining, i.e. I cannot write any more files. But I don’t want to fill my hard drive with junk just to make sure there’s really no space left. What I want is to simulate this situation withing a particular process (actually, a PHP app).
Indeed, temporarily prohibiting ...
Could anyone tell me what I can include in the constructor?
I know that I can do the following.
function __construct(){
parent::Controller();
session_start();
}
But I am wondering if I can add any variables, if statement etc.
Thanks in advance.
...
I have some text fields in the oracle table, which have double quotes. How to escape them in a select query, so that I can use it in PHP?
...
does any body have any info/links as to how to integrate a cookie based session system? i've used file/mysql, and am currently using memcached. i wanted to play with apc sessions, but thought i'd give a go at cookies, only i don't know much about it.
i imagine i'd have to write my own session handler class?
...
How can I split a large text file into separate files by character count using PHP? So a 10,000 character file split every 1000 characters would be split into 10 files. Further, can I split only after a full stop is found?
Thanks.
UPDATE 1: I like zombats code and I removed some errors and have come up with the following, but does anyo...
Sorry for the title but as im pretty worthless at php/mysql i couldnt figure out a good title
I'm currently creating a community for the fun.
I need to be able to get the all of the authed user's info all throughout the site.
Whats the best way to do this? Right now I just have a query in index.php (i include all pages thru index.php)...
Most PHP MVC systems follow a pattern where a request is routed to a specific controller action, and then the controller sets a bunch of variables for use in the view.
When you're in an agency/services work environment that uses a lot of dynamic HTML for UI elements, this patterns leads to a lot of javascript being generated with view v...
My google Docs Spreadsheet call returns this response in the json format
(I only need everything after "rows")
please look at the formatted response here : )
I use php's json_decode function to parse the data and use it (Yes, I am awful at php) This code returns NULL, and according to the documentation, NULL is returned "if the json can...
i uploaded my images in mysql using blob with php coding. now how can i retrieve them and display inside a browser. ofcourse i also want swf files
...