Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. Your joking aren't you? If you are unable to even remember the process you used to install php then it is HIGHLY likely that the problem is something YOU have done incorrectly. Just calm down.
  2. This topic has been moved to HTML Help. http://www.phpfreaks.com/forums/index.php?topic=315444.0
  3. <a href="balbla.com" target="_blank">blabla</a> Will by default open a new window. Allot of people have new windows set to open in a new tab instead. There is no way to open a new tab explicitly.
  4. Functions have there own scope. You need to pass variables into them. function testfunction($str){ echo $str; } $testvar = "test worked!"; testfunction($testvar);
  5. Providing the properties are public (which they are considering your using the old php4 syntax). class site { var $name = 'Site'; var $data = 'on'; } $s = new site; echo $s->name; echo $s->data;
  6. You would likely need to modify the code. The idea of 'uploading a file' alone sounds like a job for the web server / browser.
  7. The subjects says "Getting variable from current URL". Maybe the OP should clarify.
  8. You can still do it (I'm not sure anyone at Godaddy know what there doing). You just need to use the host name that they expect to be passed to this script. Seriously, I've heard nothing but bad stuff about Godaddy, if (when) you get the chance, change hosting.
  9. Whats wrong with $_GET['album'] ? Or have I missed something completely?
  10. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=315341.0
  11. This will now return true if the given gender is valid, or false otherwise. public function isValidGender($gender) { $validGenders = array("male", "female", "mtf", "ftm", "androgyne", "intersex"); return in_array($gender, $validGenders); }
  12. . is used to join two variables together. I'm not sure it can be explained much simpler.
  13. I would probably browse the 'windows & overlays' section. http://plugins.jquery.com/projects/plugins/windows-and-overlays
  14. There are plenty of plugins around for jQuery that will do this.
  15. This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=315296.0
  16. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=315249.0
  17. This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=315284.0
  18. Your duplicating data this way. I would make it a simple numerically indexed array. Arrays don't have names. They can be stored in variables, but I'm not sure that is what you meen.
  19. Theres not much you can do. Now imagine if an entire university of people decide to visit (all from within the same network). This is why websites ask for login.
  20. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=315161.0
  21. include* does not generate any error if it didn't work. Post your code.
  22. You need to take this up with your host.
  23. Your first example says that the hostname is [host], that is incorrect. mysqldump -h ipaddress(or)hostname -A -ucasting354sds -pCast85496 > /home/content/a/l/m/almo10000/html/casting-call-db/_DailyBackups/backup.sql
  24. Then leave. The socket error is there responsibility as far as I'm concerned. Have you tried specifying the hostname or ip address for the database server? If you go by this route you should be able to connect to the database via the network and get around the socket error.
  25. You should be able to see the ./configure options for your existing install when you view phpinfo(), make sure you install all dependencies too though. As for installing mod_php, within /etc/apache2/mods-available there is a file called php5.load. Within there you can tell Apache where your *so file is located. Of course, any changes to that file will require Apache to be restarted.
×
×
  • 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.