Can you be a bit more specific?
Presumably you are booking time slots and you need a calendar style interface.
The PHPJabbers website and you will find several commercial calendar based products.
In the past, I have used this freeware PHP Booking Slots Calendar script and it did exactly what I...
Chris
Tried adding the [L] after the rule, but I still see the same performance hit.
To prove that my rule was causing the issue, I created a series of test pages. One had the hardcoded absolute image URLs and this page was on average 10 times faster to load than when using the .htaccess...
I have been trialing Amazon's S3 service with the intention of using it to serve images from instead of choking the current web server with multiple image requests. Early tests were encouraging, so I started to think about how I could serve the files on the Amazon S3 storage service.
The...
I am trying to install a PHP Extension.
Have copied the .so file to my extensions dir, added the reference to php.ini and re-booted. I have the following error when I try to execute a test page:
Warning: dl() [function.dl]: mymodule: Unable to initialize module Module compiled with module...
Thanks jpadie.
Strangely, the optimizing part of Zen Guard is not really mentioned on the Zend Guard page. It seems more of an obfuscation product used for protecting from unlicensed use and reverse engineering.
Running phpinfo() on my shared host tells me that Zend Optimizer is supported:
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
with the ionCube PHP Loader v3.3.4, Copyright (c) 2002-2009, by ionCube Ltd., and...
Got it work . Eventually...
Seems I didn't need to specify the full path after all.
MAILTO=myemailaddress.com
*/5 * * * * /usr/bin/php webs/xxx/htdocs/cron.php
Thanks to all.
Just had a thought...
Should I expect an error email upon unsuccessful execution? I presume that's the point of the MAILTO tag. I'm getting nothing.
As for permissions, have set my htdocs dir to 777. Still no luck.
Okay. I have entered <b>which php</b> in the shell.
It gave me <b>/usr/bin/php</b>
MAILTO=myemailaddress.com
*/5 * * * * /usr/bin/php -q /home/xxx/webs/xxx/htdocs/cron.php
That is what I have got already?
BTW. How long after saving the crontab would you expect to wait before the change is...
When I say "is not working", I mean that my php script is not being executed. If it was, I would be receiving an email.
I am on a shared server with limited shell access. I don't think I have access to the log files. I can run execute my php script from within the shell successfully, and I...
My host has PHP compiled as an Apache module.
I am hoping to run the cron.php file every 5 minutes. The file is just a test and sends me an email. That's all.
Either I have specified the wrong path or my syntax is wrong because it is not working.
MAILTO=myemailaddress.com
*/5 * * * *...
Within minutes of posting this, the answer came to me!
It's all to do with permissions for the file itself.
Right click the file, then Properties > Security > Authenticated Users > Edit. Click Full Control. Job done.
Hope it helps someone else in the future.
I have a .bat file which moves files from one location to another:
move "W:\imagedump\*.jpg" "C:\test\"
When I manually click the .bat file, it works perfectly. When I get VB.NET to run the process, I get a quick DOS box flash and nothing happens. I'm guessing it is a security issue. This...
I have a LINQ query which has multiple inner joins. I've got a feeling that this is not perhaps the most efficient way to acheive my result. I hace a recorset of 16k rows and the query executes in 8-10 seconds.
What can I do to speed it up?
SELECT Stock.CatalogueNo...
Thanks for the examples. As my part codes are always in the pattern [A-Z], followed by [0-9], I'm going with feherke's excellent preg_replace example.
Had to take a first look at regex to undertstand the caret within the square brackets. I found a good site here...
I have the string "MYPART0123456789"
I want to search it for the first occurance of a character within the range [0-9], and return everything after that (0123456789).
I have experimented with strstr, but I need to pattern match.
I know the code below won't work, but I can't get any further...
I have a stock table in my database with 20k records.
I'm not experiencing any performance issues.
At this stage, I could split this large table into 3 smaller tables. One for stock, price, and category and simply join them in a query.
Is there a real performance issue leaving one large...
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.