Welcome to Geeklog, Anonymous Sunday, September 01 2024 @ 12:24 am EDT
Geeklog Forums
Search of Static and External pages that contain PHP
Jerry Green
Anonymous
![cheerful cheerful](https://www.geeklog.net/forum/image_set/moods/cheerful.gif)
Search of static and external pages that contain PHP can't be searched on my Geeklog websites. Is this normal or have I done something wrong?
An example of a static page with this problem can be seen at:
http://www.historyandnews.co.uk/geeklog/public_html/staticpages/index.php?page=20060219235749226
If I search for buswell a word that appears near the top of this file it can't be found.
An example of a static page with this problem can be seen at:
http://www.historyandnews.co.uk/geeklog/public_html/staticpages/index.php?page=20060219235749226
If I search for buswell a word that appears near the top of this file it can't be found.
4
3
Quote
Status: offline
beewee
Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
That's funny, I was looking for a way to exclude some Static Pages from search, you provided the solution: simply use php enabled pages...
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
![Idea Idea](https://www.geeklog.net/forum/image_set/pixel.gif)
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
6
6
Quote
Status: offline
jmucchiello
Forum User
Full Member
Registered: 08/29/05
Posts: 985
In case beewee's response isn't clear, the staticpage plugin does not search php enabled pages.
22
4
Quote
Jerry Green
Anonymous
Are external PHP pages searchable?
5
6
Quote
Jerry Green
Anonymous
In the external page readme file it says:
For a normal page just the url to the page would be used, for a php page that has dynamic content
then the full url should be used (e.g. http://www.your.site/page.php). If the full url is used then
the php is executed and a search would be performed on the result.
If I enter the full url all searches fail as the search seems to join the full url onto the end of the unix path. Does anyone know how to make the search work?
I notice the homepage for this plugin no longer exists.
For a normal page just the url to the page would be used, for a php page that has dynamic content
then the full url should be used (e.g. http://www.your.site/page.php). If the full url is used then
the php is executed and a search would be performed on the result.
If I enter the full url all searches fail as the search seems to join the full url onto the end of the unix path. Does anyone know how to make the search work?
I notice the homepage for this plugin no longer exists.
5
5
Quote
Jerry Green
Anonymous
After much trial and error testing I have found that if I change the header and remove the substr function the search works.
I change subsstr('pageurl',1) to just 'pageurl'.
If I then put full url in for pageurl search works on external PHP pages.
I change subsstr('pageurl',1) to just 'pageurl'.
If I then put full url in for pageurl search works on external PHP pages.
2
6
Quote
All times are EDT. The time is now 12:24 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content