I am using exec() inside a a script that runs as a daemon and forks child processes using the pear class Net_Server.
I am getting a strange issue whereby the return code (the third param of of exec) comes back as -1. When I run the command on the command line, or with exec in a normal php script the return code is 0 as it should be. Anyone have any idea why this is happening, and how to fix it?
Quick question: One can set the path where a cookie is valid, but is it also possible to get (read) this path from the cookie (in PHP)?
Or else: is it possible to extend a cookie's time, without knowing what path it's on (but keeping the path the same)?
This code is being used to parse email, it's stored as a table in a mySQL database. I believe it's PHP code. What does the (.+) do?
/A new order has been successfully placed through(.+)Name:(.+)Company:(.+)Email:(.+)Address 1(.+)Order ID:(.+)Date:(.+)Payment Type:(.+)Order Status:(\s*)Accepted(.*)\n(.+)\$([\d\.]+)\s+X/si
Thanks, super-brainiacs!
I need a way to see all the defined variables of the current PHP instance.
By currently defined I mean all the globals, all the local to THIS scope and all the locals to other scopes.
Is there something built in?
Has anyone here tried it or is it possible?
I've been using PHP for quite a few years but never know exactly the underlying c scripts.
Is there a way to go into it?
Hi all
I Have a system. I which I need to edit the PDF in every specific evcent, for that I googled a lot and reached to conclusion that it can be achieved by first converting PDF to HTML, editting the HTML and then again converting the same HTML to PDF file.
Is there any Library available in PHP to convert PDF file to HTML?
And if anyone available with other way to achieve my task, please let me know,
NOTE: PLEASE DO NOT SUGGEST ZEND FRAMEWORK USE.
In php how would I grab all javascript from a page given it's url? Is there a good regular expression to get the src of all javascript script tags or the script inside of them?
Hello, i was viewing this video and i really want to develop this is PHP with no AJAX, do you how to start? where can i find some examples codes? Thanks.
Is there a static code analyzer for PHP files? The binary itself can check for syntax errors, but I'm looking for something that does more, like unused variable assignments, arrays that are assigned into without being initialized first, and possibly code style warnings. Open-source programs would be preferred, but we might convince the company to pay for something if it's highly recommended.
Hi all,
Somehow the following code is very slow on another server, on my own server it works ok
http://www.bldd.nl/stackoverflow/test.php
How should i optimize this code??
Kind regards
I'm developing a multiclient-server program with Java based on GUI and database. The demand regarding the program from the client side is to make sure all the time that there is a connection to the server, and if the connection is lost (server goes down/problem with socket or stream) it should be notified.
In other words I need a solution for continuously checking the connection to the server.
What is the best way to do that ?
I'm building a PHP framework and my english is not the best.
There are several classes (database abstraction, module, router,...) in my framework and there is a place where they all have to be initialized and executed together.
What is a good name for a "master" class that initializes and runs all other classes?
I like CKEditor and my server uses PHP. I want to use CKEditor to edit the static HTML pages. Is there something that I can drop in that will give me a file browser and let me click a file and edit in CKEditor and save? Image upload would be nice but optional.
hello
is there any way that when i user send an email to [email protected] the php script reads the email's information and replay to the user automatically ?
Cheer
For example: I want to accept or reject a photo.
The input button for accept and the form is:
<form method="post" action="viewRequests.php">
<input type="submit" onClick="showAlertBox()">
</form>
showAlertBox() is a javascript function which shows a confirmation dialog with Yes or No. If I choose No then the form submission should not be triggered.
what to do in this case
Does die() successfully terminate the php script at that point or only with output bufferring?
would it be secure to do a:
if(!isset($_SESSION['logged_in'])){
die('you do not have permission to access this page.');
}