Jump to content

Need to return FALSE with specified URL


peljuu

Recommended Posts

Hi guys!

 

I'm new to PHP and I'm using Drupal and there's a function that one block will be called if PHP scripts returns value TRUE.

 

Now I want my "Search" to only show at ALL THE other pages but not index.

 

With the code:

 

if (Url::exists('http://www.example.com'))

 

I get my Search function to return TRUE so it will be showed on index page only, but not on any other pages!! So I kinda need this on reverse - how do I get a TRUE value for something that excists? In this case it would be www.example.com, or if anyone else has any other ideas I would be very thankful!

Link to comment
https://forums.phpfreaks.com/topic/232488-need-to-return-false-with-specified-url/
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.