Recent content by arxanas

  1. A

    [PHP] Dynamically Referencing Variables?

    I'm trying to dynamically reference a variable using variable variables. For example, this: $var1 = "hi"; $var2 = "something else"; $var3 = "asdfhjkl"; $varname = "var1"; echo $$varname; I'm trying to make it say "hi", here. However, all the examples I've looked at online only use variable...
  2. A

    [PHP] Weird class problem?

    Okay, so I've got this problem with PHP classes. It says that there's an unexpected T_NEW. From what I can gather, I can't use this bbcode parser in the class I'm making. Is there anything I'm doing wrong here? Code: <?php require_once("./nbbc/nbbc.php"); //This is the BBCode parser thing /* *...
  3. A

    Is there a PHP script that can use part of the url (eg. "?q=videourl.flv") and use...

    Why yes, yes there is. This would get that kind of thing: <html> <body> flashvars=<?php echo $_GET["q"]; ?> </body> </html> The $_GET array has all those url parameters, and you can access one by using $_GET["parameter_name"]
  4. A

    [PHP] preg_replace using multi-dimensional arrays?

    Will it cause a parse error or something by having an array like this: $array_example = array(array(":)", ":-)"), array(":(", ":-(")); $array_replacements = array(":]", array(":[")); $result = preg_replace($array_example, $array_replacement); which should turn both :) and :-) into :],and so on...
  5. A

    [PHP] preg_replace using multi-dimensional arrays?

    Will it cause a parse error or something by having an array like this: $array_example = array(array(":)", ":-)"), array(":(", ":-(")); $array_replacements = array(":]", array(":[")); $result = preg_replace($array_example, $array_replacement); which should turn both :) and :-) into :],and so on...
  6. A

    Facebook PHP API install?

    PEAR doesn't work and I don't know how to get it otherwise... I searched for download links and I get different things. What do I have to do to install and use Facebook's PHP API?
  7. A

    Facebook PHP installation?

    I have been trying to install the Facebook API for PHP for a while now, and it doesn't seem to work. I tried PEAR and it failed, and I can't seem to understand the instructions on Facebook's site. So could you please explain to me, step by step, where to download and install the API?
  8. A

    Facebook PHP API installation?

    Assuming I am a total n00b, I can't read the instructions, and PHP PEAR is broken, and I can't access PHP.ini, please tell me how to install and use the Facebook API! 1) Where do you download it from? Direct link if possible. 2) What contents do you extract, and where? 3) How do I make calls to...
  9. A

    [mysql] Take integer from DB and do math in PHP?

    Assuming I have an integer taken from a mysql database, how can I do math on it in PHP?
  10. A

    can someone please help me debug my php?

    Embed the variables in the strings and see if it works, like this: echo "<p>".$storeAddress1."</p>"; becomes echo "<p>$storeAddress1</p>";
  11. A

    How to publish my html website for free?

    Is it configured to accept incoming communications?
Back
Top