Search:

Type: Posts; User: AlexC_; Keyword(s):

Page 1 of 10 1 2 3 4

Search: Search took 0.05 seconds.

  1. Thread: Bash, delete

    by AlexC_
    Replies
    5
    Views
    361

    [SOLVED] Re: Bash help !!!

    Be careful when using this, as it doesn't do exactly what you may want it to do. For example, in Bash the wildcard glob "*" does not match dot-files by default, and you need to enable the "dotglob"...
  2. Replies
    3
    Views
    259

    Re: PHP redirect not working

    You should rework your logic ... having data being supplied to the user but then wanting to redirect straight away makes zero sense.
  3. Replies
    2
    Views
    391

    [SOLVED] Re: PHP class question

    Array dereferencing is new since PHP 5.4.0, so unless you're running 5.4.0+ then you'll get a syntax error. To work around it, simply assign the return value to a variable, and then access the array...
  4. [SOLVED] Re: The "1" in print function ( PHP programming)

    It's simple. As stated in the docs (http://php.net/print) the return value of 'print' will always be 1. The "HELLO" appears first, followed by the three ones which are being printed out by the very...
  5. Replies
    36
    Views
    1,259

    Re: PHP HTML button functionality (logic problem)

    bneva; there seems to be a lot of misinformation being handed to you here so I'll try and clear a few things up.

    The code I gave you will work, the reason you're running into issues is that the...
  6. Replies
    36
    Views
    1,259

    Re: PHP HTML button functionality (logic problem)

    <form action="foo.php" method="post">
    <input type="hidden" name="file" value="myfile">
    <input type="submit" value="Delete">
    </form>


    <?php
    if (isset($_POST['file'])) {
    /** Add...
  7. Replies
    4
    Views
    659

    Re: Sudo in a user's crontab

    He wants to run a command as root but without placing the command in roots crontab; so he would need sudos default behaviour to run as root.

    Maybe I'm reading it wrong, but his question would be...
  8. Replies
    4
    Views
    659

    Re: Sudo in a user's crontab

    Just prefix the command with 'sudo' and make sure in your /etc/sudoers file (edit it via 'visudo') that you can run the specified command without the need to enter your password.
  9. [SOLVED] Re: preg_match number has only 0's and 8's (PHP)

    Don't use regex for this, use http://php.net/strpos
  10. Replies
    36
    Views
    1,259

    Re: PHP HTML button functionality (logic problem)

    You're mixing server side (PHP) with client side (JavaScript). You can not call PHP functions from within JavaScript.

    You don't need any JavaScript for this to work. That HTML form will POST to...
  11. Replies
    36
    Views
    1,259

    Re: PHP HTML button functionality (logic problem)

    Go simpler and just make each its own HTML form, with 1 hidden input being the identifier for the file and 1 submit button per form. Of course, validate the values server-side for security reasons.
  12. Replies
    17
    Views
    1,263

    Re: Inkscape - Powerful and Easy

    GIMP is a raster image editor. Inkscape is a vector image editor. They can not be better then each other, or worse than each other - they do different things
  13. Replies
    21
    Views
    918

    Re: A new approach to handling encryption

    TimeDistort12, it really would never happen because what you're suggesting implies a false sense of security and is very dangerous.

    "security" is not one thing, it's a layer of things and by doing...
  14. Re: Coding PHP for newbies. Why this page does not work?

    unknownPoster, that is no problem - just do as it says and use the === operator. The overhead of using regex for such simple operation is not a good idea.

    To quote a famous saying:



    Regex is...
  15. Re: Coding PHP for newbies. Why this page does not work?

    http://php.net/ereg has been deprecated for a long time and should not be used, please suggest http://php.net/pcre over it. Also, for such simple thing regex is not even needed. You can use...
  16. Replies
    10
    Views
    1,951

    Re: PHP get the time in a given city in the world?

    Your previous post makes 100% no sense. What do you mean, and what is the *actual* error produced by PHP?
  17. Replies
    10
    Views
    1,951

    Re: PHP get the time in a given city in the world?

    Ensure that you have "display_errors" on and that you have a high enough "error_reporting" level. This can be done either in your php.ini configuration file or you can put the following at the top of...
  18. Replies
    10
    Views
    1,951

    Re: PHP get the time in a given city in the world?

    There is no need to set the environment all the time. Simply use PHPs many DateTime classes/functions, http://php.net/datetime for example:


    $a = new DateTime('now', new...
  19. Replies
    8
    Views
    302

    [SOLVED] Re: About PHP Errors

    On localhost it is obviously OK to enable "display_errors". Also ensure that your "error_reporting" is set to "E_ALL | E_STRICT" within your php.ini file.

    Also, the missing semi-colon is perfectly...
  20. Re: Request feedback on my implementation of a DNS server

    Excuse me? We're not your slaves. I've given you plenty of information but your lack of willingness to actually put a little bit of effort in is down right rude.

    As I said before, get over your...
  21. Re: Request feedback on my implementation of a DNS server

    It took you 15 minutesto go to doc.powerdns.com, and use the search function within your browser to type "backend" or "opendbx"? Hell. Besides, you not knowing what OpenDBX is can't be blamed on...
  22. Re: Request feedback on my implementation of a DNS server

    Then either your DNS server is lacking regarding standards, or you're incredibly slow are reading man pages :P


    You're right, having to Google to find out something is just unheard of these...
  23. Re: Request feedback on my implementation of a DNS server

    I don't have any feedback on your actual code & program per se, however:


    Nor will your own custom program. Subscribing to their mailing list is a hell of a lot easier than doing what you're...
  24. Thread: Java or PHP....

    by AlexC_
    Replies
    14
    Views
    675

    [SOLVED] Re: Java or PHP....

    Guys, you can't just "learn" JavaScript and create an animated drop down menu.

    Dhiraj, you first need to learn HTML. This is the markup language that will display your data. You then use CSS to...
  25. Replies
    8
    Views
    859

    Re: PHP Globals and Values

    That's really not a good idea for what he's wanting to do.

    bcn17, why do you even need this var? How often do you plan on even changing your directory structure? Read http://php.net/include to...
Results 1 to 25 of 250
Page 1 of 10 1 2 3 4