View Full Version : Source Variable
IKinsler
08-08-2002, 06:24 PM
Is there a way to store the source code of a page in a variable??
Spookster
08-08-2002, 07:32 PM
yes
IKinsler
08-08-2002, 07:39 PM
Ha good answer... Can you please explain how? :D
Spookster
08-08-2002, 07:40 PM
Is this going to be a remote file or a local file?
Spookster
08-08-2002, 07:43 PM
You can use this function:
http://www.php.net/manual/en/function.file-get-contents.php
Spookster
08-08-2002, 07:44 PM
Or if you pull it into an array with each line of the source code being an element in the array:
http://www.php.net/manual/en/function.file.php
IKinsler
08-08-2002, 07:45 PM
It will be a remote file... And thanks very much for the references!
Spookster
08-08-2002, 07:52 PM
If it's a remote file ensure that you have permission to do so.
IKinsler
08-08-2002, 09:02 PM
Of course. :)
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.