Hello everyone
I would like to ask for help for a php script I'm trying to finish and it needs a url is incremented by 1 value.
Example:
http://www.theurl.com/otherstuff/more/more--z-/more-1.html
I need the script increases that value by 1 each time until 50, to this:
http://www.theurl.com/otherstuff/more/more--z-/more-50.html
Thanks in advanced
Hi there zarkas, and welcome to the site!
I think this should do what you asked:
for ($i = 0; $i < 50; $i++) { $url = 'http://www.theurl.com/otherstuff/more/more--z-/more-'.$i.'.html'; }
Exactly,
This is my code:
For ($i=1;$i<=5;$i++) { $web='URL I NEED'.$i.'.html'; $html->load_file($web);
The url need to split just before the $i
Thank you very much. It´s working!