Free Web Hosting Forum
(#1 (permalink))
Old
Member
nanotech is on a distinguished road
 
Posts: 41
Join Date: Apr 2012
Default cron and redirect - 07-04-2012, 01:30 AM

i have made a test code to see if CRON can run it with a redirect

<?php
header("Location: iresponder\sendmails.php");
exit;
?>

that code doesn't work

is that code normal or does it need to be modified

i have a free account and i wonder if cron allowed redirecting
on free account

need some light on this one
Reply With Quote
Sponsored Links
(#2 (permalink))
Old
d3iti's Avatar
Super Moderator
d3iti is on a distinguished road
 
Posts: 6,531
Join Date: Jul 2009
Location: Spain
Default 07-04-2012, 05:30 AM

Hello,
CRON service is not usually used to redirect a page. The reason is that the CRON service is running on the server, and browse pages (redirect page) is done inside the browser (PC) of the visitor.

It is desirable that you gave more information about what you are trying to achieve, and perhaps we can give a correct solution to the problem.


Recuerda realizar copias de seguridad de tus sitios web. Si este mensaje te ayudó puedes pulsar sobre el botón karma
Reply With Quote
(#3 (permalink))
Old
Member
nanotech is on a distinguished road
 
Posts: 41
Join Date: Apr 2012
Default 07-04-2012, 01:05 PM

i am trying to use "infinite responder" for autoresponder and there a php file

called sendmails.php that sends email to my subscribed users the problem is

if i run the file directly from my host address no problem works like a charm

but if i use it in CRON some features dont work ( redirect with string values

outside there main file ) i suspect that some included and or headers redirect

functions dont work under CRON that previous code stated in my thread was

to test my theory for that particular problem and has i expected it didnt work

is there any way to get around that issue

nano
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com