www.webdeveloper.com

Search:

Type: Posts; User: TecBrat

Page 1 of 16 1 2 3 4

Search: Search took 0.04 seconds.

  1. Progress! (I think) I changed the second block...

    Progress! (I think)

    I changed the second block to this:


    RewriteCond %{HTTP_HOST} ^secure.mysecureserver.net$
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d...
  2. It turns out it was a browser cache issue. Even...

    It turns out it was a browser cache issue. Even though I use "ctrl+F5" or "ctrl+shift+r" to refresh, it was still caching. I opened in a new browser (chrome) and it worked fine. I'll dump my cache....
  3. Make re-writes work for shared ssl as well and normal site

    This is a wordpress site.

    Here's my attempt to do this.

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]

    RewriteCond %{HTTP_HOST}...
  4. rewrite negative conditions seem to be ignored.

    For, http://www.samplesite.com/, I have an .htaccess file with this in it: (It's a wordpress site)

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]...
  5. Stackoverflow.com and the stackexchange family of...

    Stackoverflow.com and the stackexchange family of sites is excellent when you have a question. Avoid w3schools. They have outdated answers with serious security flaws in their example code.
  6. Thread: PHP URL call

    by TecBrat
    Replies
    12
    Views
    5,240

    I agree with the warning about the password in th...

    I agree with the warning about the password in th URL. If you contol that domain, consider changing that approach.

    You can use file_get_contents for a very simple data grab, or you can read up on...
  7. Replies
    1
    Views
    448

    :confused: If you'll post the relevant portion...

    :confused:
    If you'll post the relevant portion of your code, it will help the community be better able to help ou.
  8. Replies
    3
    Views
    993

    You could use readfile() as nogdog suggested,...

    You could use readfile() as nogdog suggested, then use either DOM or string functions to remove any php blocks.
  9. Replies
    1
    Views
    529

    Google fckedit or tinymce

    Google fckedit or tinymce
  10. Replies
    17
    Views
    1,631

    After I posted that, I went to read a little more...

    After I posted that, I went to read a little more about it 'cause it's been on my mind to try and catch up. I was talking about mysqli and PDO, each of which, I believe, includes perpared...
  11. Replies
    17
    Views
    1,631

    As for "new PHP exploits", that might be more...

    As for "new PHP exploits", that might be more likely "new exploits to scripts written in PHP" where the fault is on the developer, not the language. That being said, I have read recently about some...
  12. Thread: XML parser

    by TecBrat
    Replies
    10
    Views
    4,567

    You probably need a new thread, but the quick...

    You probably need a new thread, but the quick answer is AJAX. Google it and you'll be in a whole new world of interactive web development.
  13. Replies
    1
    Views
    2,020

    I'm out of practice with this specific task, but...

    I'm out of practice with this specific task, but I wrote this a while back. Maybe it will help you:
    cURL multipart from data file upload.
  14. Thread: XML parser

    by TecBrat
    Replies
    10
    Views
    4,567

    tickdata was root and I was missing...

    tickdata was root and I was missing 'attributes()->'


    <?php
    $string='<?xml version="1.0" encoding="UTF-8"?>
    <tickdata>
    <t>??a: 17:12</t>
    <m s="G?" l="620,54" c="-23,33" p="-3,62" v="-1"/>...
  15. Thread: XML parser

    by TecBrat
    Replies
    10
    Views
    4,567

    You can probably do this with DOM like you...

    You can probably do this with DOM like you started, but I've not used it before.

    assuming
    $xml = simplexml_load_file($url);

    then see what happens when you try this:

    ...
  16. Thread: XML parser

    by TecBrat
    Replies
    10
    Views
    4,567

    What do you want do do with the data from the...

    What do you want do do with the data from the second xml?
  17. Disable magic_quotes_gpc

    This ought to help:
    http://php.net/manual/en/security.magicquotes.disabling.php
  18. Replies
    2
    Views
    1,562

    I googled "php file manager open source", without...

    I googled "php file manager open source", without the quotes, and saw several possibilities.
  19. Replies
    14
    Views
    3,479

    *petty* But, why "thanks mimibaae8" when all...

    *petty* But, why "thanks mimibaae8" when all he/she did was copy and paste a line out of my post?
  20. Replies
    3
    Views
    479

    To add to NogDog's answer, it looks like you need...

    To add to NogDog's answer, it looks like you need mysql_fetch_assoc() so that
    $page_views = $row['page_views'];

    does what you need.
  21. Replies
    1
    Views
    802

    My solution ended up being: ...

    My solution ended up being:


    $s='BrowseNodes/BrowseNode//BrowseNode[Name="Categories"]';


    The double slash causes it to traverse the unknown levels of nesting.
  22. If you have a real need to keep using the switch...

    If you have a real need to keep using the switch statement, you might consider:


    switch(true)
    {
    case empty($_COOKIE['username']):
    $username='someuser';
    $key='a secret...
  23. Replies
    22
    Views
    2,055

    I appologize, I replied with PHP when you posted...

    I appologize, I replied with PHP when you posted in the javascript forum. Glad you're getting the JS replies now.
  24. Replies
    1
    Views
    802

    [RESOLVED] More help with Xpath

    I marked my old thread resolved, and now I need more help.

    I have XML that includes a section similar to this:



    <BrowseNodes>
    <BrowseNode>
    <Name>Category</Name>
    ...
  25. Replies
    22
    Views
    2,055

    I started to suggest the modulus operator, but...

    I started to suggest the modulus operator, but then found this:


    //found on adminzone.com
    function round_nearest($no,$near)
    {
    return round($no/$near)*$near;
    }

    echo...
Results 1 to 25 of 377
Page 1 of 16 1 2 3 4
HTML5 Development Center



Recent Articles