Re: Change HTML



WhatsPHP wrote:
Can PHP be used to change my clients static HTML pages? By themselves?

How do you mean 'By themselves'?


Instead of having to download the HTML from the server, then use
dreamweaver and upload the file back?

You can manipulate files on the same server without effort: look into
fopen(), fwrite() and the like. If PHP runs on a different server, it's
something different. A possible solution would be to let PHP connect through
FTP, download the html-file, change it, and upload it again. Should be no
problem.

Grtz,
--
Rik Wasmus


.



Relevant Pages

  • Re: able to upload 28 meg file, yet php.ini limits posts to 10 megs. What is up with that?
    ... Maximum size of POST data that PHP will accept. ... I just uploaded a 28 meg file to the server. ... assuming that the upload should have failed, ... The server does have Plesk installed, which I know, in times past, has ...
    (comp.lang.php)
  • Re: risk of chmod 0777
    ... As it's a mutualized server, big images can't be resized in the PHP script due to the memory limit, that's why I do it using a ftp connection in my own program. ... It is a Java applet for easy FTP file upload, the pro version can resize images at the client side, before they are uploaded, which saves upload capacity and reduces server-side processing. ...
    (comp.lang.php)
  • Re: PHP Exploitation
    ... Try to RDP to the server, ... Subject: PHP Exploitation ... By now, i am able to upload php files to a Windows 2003 Server, so i ... Need to secure your web apps NOW? ...
    (Pen-Test)
  • Re: File Upload using ftp commands
    ... the server* and so don't know anything about the client's file system. ... They are putting files from the php server onto some other remote ... php tmp file, the upload worked smoothly. ... David wrote: ...
    (comp.lang.php)
  • Re: able to upload 28 meg file, yet php.ini limits posts to 10 megs. What is up with that?
    ... Maximum size of POST data that PHP will accept. ... I just uploaded a 28 meg file to the server. ... assuming that the upload should have failed, ... But I've never seen Plesk undermine the importance of the post_max_size ...
    (comp.lang.php)