if it is really a concern with timing, maybe you should be doing it another way?
i guess you are setting value in a database, running maintenance script, and if value is already set, not running script. then when maintenance script is finished, unsetting value in the database.
dont see how it...
ah... my host tells me that they have a custom firewall so that i cannot access other urls from a php script. thanks for the replies. (they will add individual urls to the whitelist for me though)
here is the most basic code i used to test, which produced the ever-working blank page (no result).
<?
// create a new curl resource
$ch = curl_init();
// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, "http://www.houseleng.com");
curl_setopt($ch, CURLOPT_HEADER, 0);
//...
I have not been able to get a cURL request to work in PHP. Is there anyone that can suggest a solution for me?
Everytime I use curl_exec() in PHP to do anything, it works and works for a long time and never produces a result.
I would ask as I have tried many things and cannot find a way to fix...
What do you mean by clean? The image you linked to looks very washed out, either by lighting when the photo was taken, or contrast / levels adjustment, or both. You can also use gaussian blur and unsharp mask to achieve a "smoothing" effect with black and white images.
for the submit button, make an onClick event which you can define in javascript elsewhere on the page (usually the header)
<input onClick="javascript:dropiframe()" type="submit" name="Submit" value="Go">
so, in the header, you would want something like this: (note, this is probably not...
I think what you need to do is change this line:
$OldestMessage = mysql_result($query, "oldmail");
The string $query is not a mysql resource, it is a string.
On this line, you are getting a MySQL result:
$NbMsg = mysql_result($query, "nbmail");
So, on the mysql_result call, use $NbMsg...
that sounds like the the buggy pirate release, there is a good release as well, but support adobe and buy their product if you like it.
also there are updates available on adobe.com if you have an early legal copy for some reason.
The layer mask tool is the best option for this I think. When exporting to after effects or other adobe products, the transparency will be retained as an alpha channel in the imported image.
If the layer with the layer mask is the only one visible, you will in effect be editing the alpha...
a dynamically generated link would be a slightly more simple option, although if you want to let people download more than once you will have to incorporate individual users.
generally, it works something like this - send them a link to a php page with a randomized value in the query string...
oh yeah, and for the mysql, the basic tree structure of "id, name, parent_id, date" works fine for directories, and the files should include "id, name, folder_id, date".
and you will have to include the code in your php script to compare file / folder lists with the database...
are you sharing all your files on the internet? seems like a lot of work just to use an alternative to the existing network file system.
make a php script that scans each directory and the files, compares to a database for the file date/time and updates as nesecarry. then, make a cron job that...
if it has line breaks recorded in it, be sure your expression contains the line break character when you try to match the two lines... (not sure how, but you can look it up)
if that doesnt work, perhaps the other set of reg exp functions would work (reg instead of preg for example).
convert the date value to a timestamp, get the current timestamp and compare the two values. timestamps are recorded in number of seconds, so if you divide by 86400 you get the number of days.
the function you need is mktime() - you can look up the syntax at...
i am not at home right now so i cant paste my code, but i was having problems because i passed the names of the variables to the function in an array, and then referenced the variables by using an eval statement to build the actual code.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.