www.webdeveloper.com

Search:

Type: Posts; User: hammerslane

Page 1 of 11 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    7
    Views
    2,606

    Test successful.

    Test successful.
  2. Replies
    3
    Views
    1,061

    Followup question

    Leading on from this question, I have a question more to do with PHP than htaccess.

    In any browser, if you try to access a folder with htaccess restrictions, it prompts you to enter a username and...
  3. Replies
    3
    Views
    1,061

    Thanks Bear, that article had the answer...Lovely.

    Thanks Bear, that article had the answer...Lovely.
  4. Replies
    3
    Views
    1,061

    Newbie htpasswd question

    Hi guys

    Can somebody help me understand how .htaccess encrypts/hashes a password which a user submits, to compare it to the one in .htpasswd?

    I'm using PHP to create a .htpasswd file, but I'm...
  5. Thanks NogDog. I remember thinking of that...

    Thanks NogDog.

    I remember thinking of that option, but quickly dismissing it, "because what if the file name contained a forward slash?"
    I now realise that I am an idiot.
  6. I'm looking for two predefined variables...

    Scenario: The script location is at /home/server/e/example.com/htdocs/folder/contact.php on the server.

    Question: does a predefined variable exist which contains either of these values:

    ...
  7. Replies
    13
    Views
    3,214

    Many thanks, bokeh and ffurnai! Mission...

    Many thanks, bokeh and ffurnai!
    Mission accomplished.
  8. Replies
    13
    Views
    3,214

    Work out if $int is a multiple of 3?

    Hey guys, I'm not much of a mathematician, and I have a question about arithmetic in PHP.

    Is it possible to test a number to see whether it goes into another number?
    For example, I'd want to test...
  9. Okay, thanks Fang.

    Okay, thanks Fang.
  10. : Setting the 'browse' path

    Hey folks,

    I know that using the following code makes a `browse...` button appear next to a plain text input field:


    <input type="file" name="textfield">

    Question: Is there any way to get...
  11. Thanks very much NogDog, that works brilliantly.

    Thanks very much NogDog, that works brilliantly.
  12. Replies
    8
    Views
    2,255

    I had that notice before, I think I fixed it by...

    I had that notice before, I think I fixed it by setting doc_root in php.ini.

    Alternatively, you could try $HTTP_SERVER_VARS['DOCUMENT_ROOT'] instead of $_SERVER['DOCUMENT_ROOT']
  13. Replies
    8
    Views
    2,255

    Try changing this: $handle =...

    Try changing this:
    $handle = fopen('atortega.html',xt');

    To this:
    $handle = fopen($_SERVER['DOCUMENT_ROOT'] . '/atortega.html','xt');

    Let me know how it turns out.
  14. Replies
    4
    Views
    2,534

    On prog2:

    On prog2:

    <? if($_SERVER['HTTP_REFERER']!="http://path-to-script/prog2.php") { header("Location: prog1.php"); } ?>
    {prog2 content}

    Is that what you meant?
  15. My eregi() script takes 20 seconds to run

    Hi guys,


    I have a question about a script I've already made. I'm not really that advanced with PHP, but I managed to put together this script: (here's the source code)
    ...
  16. Replies
    1
    Views
    1,382

    PHP Form Question

    Hello everybody

    *hi doctor nick*

    I have a problem with a couple of scripts which I thought would be fairly simple, but I can't get to work.

    It is essentially just a form, which uses...
  17. it worked! thanks shimon :):)

    it worked!
    thanks shimon :):)
  18. str_replace on database content string

    hello there, thanks for reading.
    i have a problem with some content in my database.
    i get the field content into a string called $body, then i want to do a php str_replace to $body.
    so the...
  19. Replies
    1
    Views
    578

    404 error logging

    hi there, thanks for reading :)

    i've got custom 404 error pages set up on my windows server.
    my aim is to log to my mysql database, what the intended target was, before the 404 page was shown. is...
  20. Replies
    4
    Views
    1,455

    nah i'm just experimenting, trying to get a pages...

    nah i'm just experimenting, trying to get a pages html into a string and then do a few 'find and replaces' with it. not just a straight page copy.

    thanks.
  21. Replies
    4
    Views
    1,455

    yeah, that's exactly what i was looking for,...

    yeah, that's exactly what i was looking for, thanks adam.
  22. Replies
    4
    Views
    1,455

    put a page's html into a string?

    howdy, thanks for reading.

    example.
    i have a page called 1.php. i was wondering if it's possible to have a bit of code which opens another page, and puts the html of that into a string.
    i could...
  23. Replies
    14
    Views
    1,817

    huh? i'm not a pro. i'm a n00b loser who...

    huh? i'm not a pro.
    i'm a n00b loser who dislikes the default mozilla ff text editor
    that is all
  24. Replies
    14
    Views
    1,817

    i've got it, but you still can't edit the source...

    i've got it, but you still can't edit the source of a document quickly from it. there's a view source button, but you can't edit what program you edit the code with.

    please prove me wrong....
  25. Replies
    14
    Views
    1,817

    yeah, that doesn't allow 'view source' to be...

    yeah, that doesn't allow 'view source' to be edited still. i have the same trouble, why can't view source be edited?
    the mozedit extension is ok, but you have to go tools, mozedit, 'in tab' and...
Results 1 to 25 of 257
Page 1 of 11 1 2 3 4
HTML5 Development Center



Recent Articles