Jump to content

Strings and Web Pages


kreut

Recommended Posts

Hello,

 

I was wondering if someone could help me to "get" the webaddress of a current webpage and then pull off pieces of the page.  All of my pages look like:

 

http://localhost:8888/algebra_book/Chapters/Quadratic_Functions/introductory_problem.php

 

BUT, the stuff to the left of Quadratic Functions WILL change in the future.  So all will look like:

 

*Quadratic_Functions/introductory_problem.php

 

Then, I'd like to pull off a $chapter variable, which in this case is Quadratic_Functions and a $page_name variable which in this case will be introductory_problem.

 

Thanks so much.

Link to comment
https://forums.phpfreaks.com/topic/229483-strings-and-web-pages/
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.