www.webdeveloper.com

Search:

Type: Posts; User: Jerail

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Run a Function for Each Occurrence of a Substring Within a String

    I'm looking for the most efficient way of searching through a string, and for each occurrence of a substring, run a function on it. Similar to the array_filter() function for arrays, except it would...
  2. Replies
    3
    Views
    1,525

    If you really wanted to change the content of a...

    If you really wanted to change the content of a div tag exactly the way you say, you could do this:


    <?php ob_start() ?>
    <html>
    <head>
    </head>
    <body>
    <div id="findMe">
    this...
  3. The messages on this board are stored in a...

    The messages on this board are stored in a database (probably MySQL or PostgreSQL), but that's separate from what you were talking about. The information from a database can be retrieved based on...
  4. Replies
    7
    Views
    840

    I'm not entirely sure what your question is. Is...

    I'm not entirely sure what your question is. Is your script not working? That can't be your entire script...it doesn't actually do anything except check whether the person is using https://...
    ...
  5. Replies
    2
    Views
    1,349

    It might be useful for you to know that ...

    It might be useful for you to know that

    $_SERVER['HTTP_REFERER']
    contains the URI of the last page the visitor was at.

    Also, you have bad syntax:

    header('Location: ".$_GET['returnto']."');...
  6. Replies
    4
    Views
    3,119

    Well, then put them in a special directory above...

    Well, then put them in a special directory above webroot, and just use .htaccess to block all requests for that directory.
  7. Replies
    4
    Views
    3,119

    I think this contains the answer you're looking...

    I think this contains the answer you're looking for: http://forums.tizag.com/showthread.php?t=893
  8. Replies
    7
    Views
    1,338

    As for darkening the arrows, you'll just have to...

    As for darkening the arrows, you'll just have to find the image in the style directory, open it up in Photoshop (or even Paint) and re-colour them...
  9. Replies
    4
    Views
    5,794

    Well, if you had a JavaScipt variable var1 and...

    Well, if you had a JavaScipt variable var1 and you wanted to send it to PHP $var1, then you'd have to either submit it in a form, or place it in a cookie.


    javascript.html
    ------

    <script...
  10. Replies
    5
    Views
    2,193

    I've done it various ways, but what I find...

    I've done it various ways, but what I find usually works best for me is to have all the pages called from one central script, as you said.
    My approach tends to be that the string representing what...
  11. Replies
    7
    Views
    853

    Just my two cents: If you're going to use...

    Just my two cents: If you're going to use mod_rewrite, plan it out well from the beginning of a project. You can even draw it out. Just make sure you're well aware before writing any PHP how...
  12. Replies
    3
    Views
    4,070

    Anyone Know a Good ASP.NET Online Tutorial?

    I'm finding in today's job market most companies are looking for knowledge of ASP.NET, and formerly I've only ever written PHP. I got some books from the library about it, but none of them are really...
  13. Replies
    3
    Views
    1,053

    Well, it's not exactly an e-mail form. It's a...

    Well, it's not exactly an e-mail form. It's a subscription form, where users have to enter their name and e-mail to subscribe to a newsletter.

    I resolved the problem by using AJAX, which looks...
  14. Replies
    3
    Views
    1,053

    [RESOLVED] E-mail Addresses in Forms

    I have a form where a user inputs an e-mail address, and then submits it with GET method. In IE this works fine, but in Firefox, the browser converts the @ symbol to "%40". This results in the form...
  15. Replies
    2
    Views
    869

    A common practice when developing a website that...

    A common practice when developing a website that needs to support multiple languages is to place all the actual content (words) of the site in a separate file from the actual document. That way, I...
  16. Replies
    12
    Views
    1,755

    If you're hosting this on a test home computer,...

    If you're hosting this on a test home computer, then it could be that your e-mail port (port 25) is blocked by your ISP. I usually get around this by using FTP with PEAR extensions (google it). You...
  17. When deciding which to use, I usually ask myself:...

    When deciding which to use, I usually ask myself: will the script still run alright if the file for some reason can't be included?
    If it's absolutely required for the functioning of the website,...
  18. Replies
    10
    Views
    14,695

    You should have posted this in the PHP forum,...

    You should have posted this in the PHP forum, since it doesn't really have anything to do with HTML.

    I would suggest that you start learning some PHP. Try starting with the tutorials on PHP and...
  19. Replies
    5
    Views
    3,758

    I found that this article...

    I found that this article is a good introduction to sending request via POST with AJAX (which is what you need to do if you want to upload images).
  20. Replies
    6
    Views
    1,083

    The reason for this is that you must give the...

    The reason for this is that you must give the browser header information before any actual output. So if you've already sent some text/html to the browser, it won't accept new headers.
    The way...
  21. Replies
    6
    Views
    1,083

    header('Location: index.php'); should work. If it...

    header('Location: index.php'); should work. If it doesn't, then tell us what the error is so we can troubleshoot.
  22. Thread: file download

    by Jerail
    Replies
    6
    Views
    798

    Yes, the only way I know of doing it is by...

    Yes, the only way I know of doing it is by changing the headers. Either directly in the server configuration or with a server-side scripting language.

    If that isn't an option, then I guess the...
  23. Ok, thanks it works now. I never would have...

    Ok, thanks it works now. I never would have thought of that. Darn IE...
  24. [RESOLVED] AJAX on IE not Working (Microsoft ActiveX)

    I'm new to AJAX, and I've created a little app that searces through a database of people dynamically as the user types. It seems to be working fine in Firefox, Opera, Chrome, Iceweasel, and a number...
  25. Replies
    1
    Views
    713

    Well, if you want to match a username with one...

    Well, if you want to match a username with one in the database you'd do

    "SELECT * FROM table WHERE username = '$user'"
    The query for finding a partial match--when the mysql field simply contains...
Results 1 to 25 of 84
Page 1 of 4 1 2 3 4
HTML5 Development Center



Recent Articles