Jump to content

leedude

Members
  • Posts

    13
  • Joined

  • Last visited

    Never

Everything posted by leedude

  1. or actually not... It still brings an error.  :-\ And i cant help noticing that there appears to be an extra close-bracket at the end.
  2. thankyou thankyou thankyou!!!!!!!!!!!!!!!!!! ;D ;D ;D ;D ;D ;D ;D ;D
  3. is there a way i can selectively update columns like i can with the insert command: update table1 set (page,title,dsc) = (1,"Page 1","This is Page 1") where id = 4; (this is excluding the id column from the update). This produces an error, is there a way i can do this like i can insert data:? insert into table1 (page,title,dsc) values (1,"Page 1","This is Page 1") plz help.
  4. Im trying to pass a get variable to an include called note.php: include "note.php?title=note1"; This causes the note to not show up at all. I have tried going to note.php?title=note1 in a browser and it works fine. I have also tried include "note.php";. This creates a blank note on the page(it works). Is there some special function i have to use to pass variables to an include? Please help.
  5. Nope, no effect. It seems that the problem is with ftp_connect.
  6. ok, ive managed to get it to pass xphp as xhtml by setting the default mime type in php.ini to: [code]application/xhtml+xml[/code] Though this means that is doesnt pass php as html any more, but as xhtml. It is as if the settings in httpd.conf do not affect it at all. I've tried commenting the default mime type line in php.ini out, but that just makes it output as text/html. I have updated my httpd.conf file to be: [code]LoadModule php5_module /modules/libphp5.so AddHandler php5-script .php AddHandler php5-script .xphp AddType text/html .php AddType application/xhtml+xml .xphp[/code] Please Help.
  7. is there a way i can set my httpd server to generate xhtml pages with the xphp extension? The php parts of my httpd.conf file: [code] LoadModule php5_module /modules/libphp5.so AddHandler php5-script php AddHandler php5-script xphp AddType text/html php AddType text/xhtml xphp [/code] It isn't passing the xphp documents as xhtml, just html. .xhtml documents work as xhtml though. I am testing this with a piece of code that generates a table with the <table> tag in capital letters (this brings an error in table.xhtml, but not in table.html as xhtml is case-sensitive where as html isn't). table.php and table.xphp both work! Why?
  8. thanks. Just wondering: is there a way to do it with post?
  9. Is there some way to make send a GET or POST variable like a session variable, without using a field. Something like this: [code] <?php $_GET['data'] = "hello"; echo "<a href = "page2.php">page 2</a>"; ?> [/code] Would produce: 86.131.190.81/page2.php?data=hello Usually i have to use a hidden field, which can get very tedious.
  10. ok, ive done a login with the username and password. Same result. [code]<?php $ftp_server = "192.168.0.7"; $ftp_user_name = "username"; $ftp_user_pass = "password"; $conn_id = ftp_connect($ftp_server) or die("ERROR 1"); $login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass) or die("ERROR 2"); ?>[/code] This produces an ERROR 1(with the connection) It seems that there is some kind of problem between my ftp program, and my php program. is there any kind of apache or php.ini setting that would fix this?
  11. ok, ive tried the script with ftp.at.debian.org and other ftp sites. same result. Please help someone. the --ftp-enable option is on in my php configure command by the way.
  12. Yes, i have several, but it is set up in such a way that anonymous access works aswell eg: ftp://86.131.190.81 goes to the anonymous account( a linux mirror) ftp://webupload@86.131.190.81 goes to the account for upload to my web server. Anyway, i thought the username and password details were only needed in the ftp_logon thing.
  13. I'm a sort of php newbie(at least i think so) and i am trying to connect to my ftp server which is on the same computer as my web server(Fedora Core 5 with MYSQL Server, Pure-ftpd, Apache 2 and PHP 5). I have just finished learning what i need to about sql and php, so now i moving onto ftp. I have started with a simple script to connect to the ftp server, but it just returns the error message. [code] <?php $ftp_server = "localhost"; $conn_id = ftp_connect($ftp_server,21) or die("Couldn't connect to $ftp_server"); ?>[/code] Why is this happening? i can access the ftp server by conventional means (eg:typing "ftp localhost" at the linux command line or accessing it through an internet browser). I have tried refering to the ftp server in different ways, like as 192.168.0.7(network ip address) or 86.131.190.81(internet ip). Any help would be much appreciated.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.