Jump to content

when q is empty in ?q=something


etrader

Recommended Posts

I have search page in the form of search.php?q=query, as the php script calls for other files and a long process. When visiting search.php directly, the value of q is indeed null, and it makes a long loop and use lots of cpu.

 

How to kill the script or redirect to the main page when visiting search.php?

Link to comment
https://forums.phpfreaks.com/topic/231917-when-q-is-empty-in-qsomething/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.