473,800 Members | 2,457 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

loop through php page with different GET and save

170 New Member
Hello.

I have a site running php pages looking like this: mypage.php?firs tname=bob&lastn ame=hoskins

There are multiple different combinations of names

eg. mypage.php?firs tname=bob&lastn ame=hoskins
mypage.php?firs tname=jane&last name=elliot
etc

Is there a way I can make a script to automatically "go to" each of these pages in turn and then save each one as a .html file in a folder on the server? Almost as if I was using a "download whole site" program to create all the pages in the folder. (But they would need to be static html pages.) I'm open to various ways if there is more than one way to do this.

Thanks.
Nov 21 '07 #1
2 1088
brettl
41 New Member
I think you could use the Smarty - Template Engine and loop through an array of variables to produce static html pages. Here is the link to get smarty and read up on the documentation.

Smarty - Template Engine

Hope this helps.
Nov 21 '07 #2
beary
170 New Member
I think you could use the Smarty - Template Engine and loop through an array of variables to produce static html pages. Here is the link to get smarty and read up on the documentation.

Smarty - Template Engine

Hope this helps.

Hmmm. This looks like overkill for what I need. Is there no simple php function or code snippet that would work?
Nov 21 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1122
by: Sarah | last post by:
Hi, I have an Access database of about 1000 records. I am trying to use asp to loop through the record set one at a time, creating the html code for a web page. I would like to save the actual html output as a html file and then loop through it again creating a new web page and saving it, etc... I have web pages that compare prices of products from on-line stores. These prices change weekly. I need a quick way to be able to update
7
2114
by: Shadow Lynx | last post by:
I realize that his question has been asked, in many other forms, many times in this group. Even so, my tired eyes have not yet found a sufficient answer, so I've decided to "reask" it even though I'm sure this will offend some of the more seasoned verterans of this board. The Players: Consider a simple web form, which I'll call Page A, that has a couple of controls on it. It's not important what they are, only that they're static...
6
4904
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of the html page controls the form fields that are required. It doesn't function like it's supposed to and I can leave all the fields blank and it still submits the form. Also I can't get it to transfer the file in the upload section. The file name...
3
3618
by: fiefie.niles | last post by:
I would like to save a web page to a file. When I do that, sometimes the saved web page does not look like the original web page. For example, when I save www.msn.com, it looks very different the original page. How can I save the web page to look like the original (as if I do "File" - "Save As" and under "Save as Type" select "Web Page, complete (*.htm,*.html)" ? Thank you. This is how I save the web page: Set fs =...
1
1265
by: David Lozzi | last post by:
Howdy, I've decided to try and use the gridview and a sqldatasource. When I add the sqldatasource connection (to MSDE 2000) and press save, I get "Visual Studio has encountered an unexpected error." and it then makes me save it as a different file name. When I save it as a different name, and make some other changes to the gridview or a label, then hit save, it errors again and wants to save it as a different name again. I've run Windows...
5
1422
by: Annie | last post by:
hello guys, I have a scenario that I am confused about ... I have a number of pages which are using a Master page ... Then I have seperate Footer user control that can reside in master page or could be kept in the content pages (still not confirmed and looking for any suggestion)
12
4779
by: =?Utf-8?B?RnJlZU5FYXN5?= | last post by:
Hello, the scenario: There's an ASPX page which shows some text and has three buttons at the bottom: Save, Print and Close. Print and close is done by javascript. But how can I save the page on the client's computer? He/she could do this using the browser (file/save), but I need to have it done by pressing the pushbutton. In my serverside code I get the button-click-event, I also know how to get
3
1864
by: randy.buchholz | last post by:
I have been encountering strange behaviour on client machines where the pages truncate the display in the middle of the page. At some point the browser just goes white from one line to the bottom of the browser. No error shows, and the visible portions of the pages function normally. I can't find any way to reproduce. It will happen on different pages and will truncate at different points on the same page for different users and...
0
9551
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10505
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10276
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10035
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9090
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7580
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4149
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2945
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.