Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. monkey64

    PHP Booking Calendar

    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...
  2. monkey64

    Aliasing images to a remote server with .htaccess

    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...
  3. monkey64

    Aliasing images to a remote server with .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...
  4. monkey64

    Unable to initialize module Module compiled with module API=20090626

    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...
  5. monkey64

    Run Zend Server Community edition optimized files on shared host

    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.
  6. monkey64

    Run Zend Server Community edition optimized files on shared host

    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...
  7. monkey64

    Crontab - executing a PHP script

    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.
  8. monkey64

    Crontab - executing a PHP script

    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.
  9. monkey64

    Crontab - executing a PHP script

    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...
  10. monkey64

    Crontab - executing a PHP script

    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...
  11. monkey64

    Crontab - executing a PHP script

    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 * * * *...
  12. monkey64

    Run .bat file from VB.NET to move files

    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.
  13. monkey64

    Run .bat file from VB.NET to move files

    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...
  14. monkey64

    Performance Issues | LINQ query - multiple inner joins

    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...
  15. monkey64

    Find first character in string and return everything after.

    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...
  16. monkey64

    Find first character in string and return everything after.

    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...
  17. monkey64

    An efficient database (to join or not to join?)

    My table is 2.3 MB in size. I would consider that large! At what point would you consider spliting the tables?
  18. monkey64

    An efficient database (to join or not to join?)

    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...
  19. monkey64

    Encrypt file in PHP, Decrypt in ASP. Any ideas?

    [CODE] <? define('MYZIPPASSWORD' , 'password'); function encryptFile($file){ if (!is_file($file)) return false; $tempFile = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'zipArchive_' . uniqid('zipper', true) . '.zip'; unlink($tempFile); exec("zip -P " . MYZIPPASSWORD . "...
  20. monkey64

    Encrypt file in PHP, Decrypt in ASP. Any ideas?

    Thanks for that. To use a zip file would make a lot of sense as it's not language dependant. I'm experimenting at the moment with some classes.

Part and Inventory Search

Back
Top