Save string data in .php file on host
Posted: Sun Nov 21, 2010 3:48 pm
Hi, I need to be able to save multiple string values to a .php file. My current coding echo's the results but getting it to save all the data and not just one entry to a file I am struggling with. Basically, we need to extra product values from a site that is not being maintained by ourselves and we are completing this manually, so I created this code to allow us to extract the product ids and names then output them but need to save them into a file for the rest of my system to call.
Here is my coding so far:
The above coding checks all links and extracts a string value from each, then output them on a webpage. As you can see from the coding, it echo's (echo $sid.",".$nam.",";) the values but I can not seem to get it to save all the values in the file seperated by a comma. It will only save on entry from each string and stop. Can anyone help me so I can save all instances of the 2 strings to my .php file?
The id of site to use comes from a form that a fields saves to $app
Any help would be great as racking my brains trying this out now... lol
Thanks very much people...
Jason.
Here is my coding so far:
Code: Select all
The id of site to use comes from a form that a fields saves to $app
Any help would be great as racking my brains trying this out now... lol
Thanks very much people...
Jason.