Search Results - VBForums

Search:

Type: Posts; User: dunlop03

Page 1 of 13 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    1
    Views
    443

    Re: MYSQL Not Excluding Row ?

    Got it, I needed to wrap my other conditions in parenthesis :rolleyes:
  2. Replies
    1
    Views
    443

    MYSQL Not Excluding Row ?

    I'm having this weird issue (Rope is currently around my neck :eek:). Im using query below via PHP to display rows from a MYSQL database. The "private !- 1" part is not working, hence its still...
  3. Prevent direct access to files in a specific folder ?

    I have a folder on my server that I use to store .zip files that I upload via an upload script on my website. I want to give access to these files to my "registered/logged in" users. How can I deny...
  4. Replies
    1
    Views
    1,128

    Counting User Post Count ?

    I didn't think this was going to be so tricky. Basically I have two tables in my mysql database (user, comments). Each table has the users id. I simply just want to count how many posts/comments each...
  5. Replies
    6
    Views
    894

    Re: PHP Session Issue

    No the table field is of type int(11). Thank you for your suggestions, i'll take note and implement. As for echoing the mysql error, you mean remove the "or die ("Query error")" from the query ?
  6. Replies
    6
    Views
    894

    Re: PHP Session Issue

    Sorted it, I had to encase the group ID in double quotes ? I thought you didn't need to do that. Anyone know why ?
  7. Replies
    6
    Views
    894

    PHP Session Issue

    I've created a simple comment feature for my website. And I'm using sessions to determine who is in the admin group so they can delete comments.

    Group ID 1 = Normal User
    Group ID 2 = Admin
    ...
  8. Replies
    4
    Views
    3,509

    Re: Partial Page Refresh Problem

    We'll... I'm not sure to be honest. Im basically just trying to refresh a specific DIV (#content) without reloading the entire page.
  9. Replies
    4
    Views
    3,509

    Re: Partial Page Refresh Problem

    Any ideas anyone ? :confused:
  10. Replies
    4
    Views
    3,509

    Partial Page Refresh Problem

    Hi Guys,

    Im using the code below to refresh the contents of a specific div on my webpage. But the problem I'm having is that when it refreshes it removes the contents completly rather than...
  11. Replies
    8
    Views
    2,142

    Re: IE Navigation Bar Issue

    Exactly, you still need to develop for all browsers, regardless of how many uses them.
  12. Replies
    8
    Views
    2,142

    IE Navigation Bar Issue

    Ive got s simple css dropdown navigation bar, works fine on all browsers except Internet Explorer. When I load the website it only displays the text links of the navbar, no background image, no drop...
  13. Replies
    4
    Views
    860

    Re: ereg_replace() is deprecated ?

    It says line 1, but thats the php tag, weird as hell.
  14. Replies
    4
    Views
    860

    Re: ereg_replace() is deprecated ?

    Nobody got any ideas ?
  15. Replies
    4
    Views
    860

    ereg_replace() is deprecated ?

    Hi guys, Im getting this error when using php 5.3:


    Deprecated: Function ereg_replace() is deprecated in etc.........

    When I remove the following section of code from my file the error goes...
  16. Replies
    5
    Views
    1,233

    Re: Change Random Number Every Hour ?

    You got any sample scripts of this?
  17. Replies
    5
    Views
    1,233

    Re: Change Random Number Every Hour ?

    Its for the entire site. I just need to set a different number every hour.

    Im now using this inside my function, its sets a cookie for one hour:


    srand(floor(time() / (60*60)));
    ...
  18. Replies
    5
    Views
    1,233

    Change Random Number Every Hour ?

    Im using this code to generate a random number:


    <?php
    srand ((double) microtime( )*1000000);
    $random_number = rand(1000,5000);
    echo "$random_number";
    ?>

    The problem is, I want this to...
  19. Replies
    14
    Views
    1,865

    Re: include an external file

    Ok maybe ive not been clear lol. The "http://mafiahunt.com/test.php" file only contains php, it only has 1 small function in it. So when a user runs the other file i want that file to include the...
  20. Replies
    14
    Views
    1,865

    Re: include an external file

    Ok heres the actual domain


    http://mafiahunt.com/test.php

    See if you can get the output of that ;)
  21. Replies
    14
    Views
    1,865

    Re: include an external file

    Thats all i want is the output :(
  22. Replies
    14
    Views
    1,865

    Re: include an external file

    But what content are you getting from "http://cowarama.com" I want to get content from a .php file "/test.php"

    Basically I dont want a file to run on a users server unless it has a specific file...
  23. Replies
    14
    Views
    1,865

    Re: include an external file

    I can assure you that the page exists.

    Ok, Im using this now:


    $f="http://www.test.com/test.php";
    $data = file_get_contents($f);
    echo $data;

    Im not getting any errors with it, but its not...
  24. Replies
    14
    Views
    1,865

    Re: include an external file

    That doesnt seem to work. I got this error (the url is only an example url for the purpose of this post):


    Warning [2] file_get_contents(http://www.test.com/test.php)...
  25. Replies
    14
    Views
    1,865

    include an external file

    Hi,

    I want to include an external php file inside a php file, so if i use a php file on: www.test.com i want to include a file from www.site.com

    Ive looked a several methods and cant come up...
  26. Thread: URL Replace

    by dunlop03
    Replies
    1
    Views
    1,008

    URL Replace

    Hi,

    Im tring to wrap a url in code blocks using the replace method. This is the method im using currently:


    $replace = "Replace text here";
    $message = preg_replace("#<a href=(.*?)</a>#ims",...
  27. Replies
    2
    Views
    578

    Re: preg_replace Problem

    I used the second method and it works perfeclty, thanks alot SambaNeko +1
  28. Replies
    2
    Views
    578

    [RESOLVED] preg_replace Problem

    Hi guys,

    Im trying to replace a words that are entered into a settings field (seperated by a ,)

    So in my admin panel I enter words in the "hide_words" setting field like so: ...
  29. Replies
    3
    Views
    538

    Re: 404 Error Advice

    Ive created a plugin and ive inserted a jquery script in the plugin file, when the user runs the plugin it looks for the file in the jquery script.

    The thing is, that this file is not in that...
  30. Replies
    19
    Views
    2,304

    Re: Look For Specific Text In A PHP Webpage

    That may be the case here, but the actuall forum im using allows guests to view the profile page. So the page is publically viewable.
  31. Replies
    19
    Views
    2,304

    Re: Look For Specific Text In A PHP Webpage

    Sry for the late reply.

    Ok for example, If i click on one of your usernames here and view your profile page , Im trying to find specific text/string or html element, like so
    <img src="image...
  32. Replies
    3
    Views
    538

    404 Error Advice

    Hi guys,

    Im thinking of setting my 404 error page to automatically redirect to my websites homepage using .htaccess, like so:


    ErrorDocument 404/index.php

    Im wondering will this have any...
  33. Replies
    19
    Views
    2,304

    Re: Look For Specific Text In A PHP Webpage

    Yes thats true, but I need to get the text string from "http://www.test.com/member.php" << example url
  34. Replies
    19
    Views
    2,304

    Re: Look For Specific Text In A PHP Webpage

    Im sorry, Im trying to get a specifis string in the rendered out put of , example (http://www.test.com/member.php?)
  35. Replies
    19
    Views
    2,304

    Re: Look For Specific Text In A PHP Webpage

    Yes the page is publically viewable, I wonder is it because the page is php and the rendered content is not actually in the file , its the php thats rendering the information onto the webpage itself ?
  36. Replies
    19
    Views
    2,304

    Re: Look For Specific Text In A PHP Webpage

    Im just trying locate a specific line of text or string on a php page and echo yes if its found and no if its not found.
  37. Replies
    19
    Views
    2,304

    Re: Look For Specific Text In A PHP Webpage

    Here is the error that its displaying:




    Thats not the URL, its just an example.
  38. Replies
    19
    Views
    2,304

    Look For Specific Text In A PHP Webpage

    Im using this ti search for specific text in a webpage:



    <?php
    $link = "http://www.test.com/";
    $linkcontents = file_get_contents($link);

    $needle = "Hello";
    if (strpos($linkcontents,...
  39. Re: Look For Specific Text In A Webpage

    Its ok guys, I got it myself:


    $link = "http://www.test.com";
    $linkcontents = file_get_contents($link);

    $needle = "1.0.0";
    if (strpos($linkcontents, $needle) == false) {
    echo "String not...
  40. [RESOLVED] Look For Specific Text In A Webpage

    Hi guys,

    I need a php script that will look for specific text on a webpage. If the text is there it will echo something, if its not there it will echo something else.

    Hope someone can come up...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.