Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. Command executed by PHP have the same permissions that your web server has. make sure your Apache user has sufficient permissions to execute the commands.
  2. That is done by simply allowing 'directory browsing' within your server configuration. Nothing at all to do with regular expressions or PHP for that matter.
  3. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=314868.0
  4. You can (and should) close topics yourself.
  5. This topic has been moved to Apache HTTP Server. http://www.phpfreaks.com/forums/index.php?topic=314862.0
  6. This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=314808.0
  7. This topic has been moved to Other Libraries and Frameworks. http://www.phpfreaks.com/forums/index.php?topic=314815.0
  8. I don't see any call to session_start.
  9. Remove all the error suppression and you might at least get a hint towards whats wrong.
  10. This topic has been moved to PHP Installation & Configuration. http://www.phpfreaks.com/forums/index.php?topic=314804.0
  11. This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=314795.0
  12. So you want.... $result = str_replace(array(" And ", " Of "), array(" and ", " of "), $string)."\n";
  13. This topic has been moved to Application Design. http://www.phpfreaks.com/forums/index.php?topic=314785.0
  14. This topic has been moved to Linux. http://www.phpfreaks.com/forums/index.php?topic=314778.0
  15. On a Linux system there are users and groups. Users can belong to certain groups and usually default to belonging to a group with the same name as there user name. This allows you to make files and chmod them in such a way (664) so that only the owner (me), someone belonging to a certain group (by default - me) can read and write to that file, while everyone else can only read that file. Where cPanel comes into it I have no idea. It is simply a web application used to aid in server administration. Web servers however run as a specific user and group. Apache for instance might run as the apache, and the apache user might by default belong to the apache group. Now, because php executes as an apache module (part of apache), if you create a file using php it will belong to the apache user and the apache group.
  16. if($qry_getAdverts["AdvertID"] > 0 && ($qry_getAdverts["accesslevelID"] == 0 )) { should be.... if($row_getAdverts["AdvertID"] > 0 && ($row_getAdverts["accesslevelID"] == 0 )) {
  17. Variables are not interpolated within single quotes.
  18. Yeah, pretty well impossible considering its already the concat operator though.
  19. $query ="select * FROM telephone_admin where name Like '%" . $_GET['answer'] . "% ' "; You should not use the $_GET array directly within a query like that either. see mysql_real_escape_string and make sure you sanatize user inputted data.
  20. Unless you configure your server especially to handle other file types as php, yes.
  21. This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=314698.0
  22. So replace spaces with - using str_replace.
  23. Can we have an example of what the inputted data might look like?
×
×
  • 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.