Jump to content

Jamesking56

Members
  • Content Count

    150
  • Joined

  • Last visited

Everything posted by Jamesking56

  1. how can I Read Files from Remote URL Directory into an Array??like "http://whatever.com/files/", get all list of files then put them into a array?
  2. How do I force it so that when a PHP page is viewed it pops up with a download box for a .HTML file download? (instead of displaying the HTML file)
  3. Apache is soo easy! IIS never seems to work for me
  4. I find IIS servers confusing to setup, so I just use PHP and Apache instead
  5. PHP Rules!!! I think ASP is rubbish because not many servers use it and PHP is more popular
  6. Hi Guys,I am using a script to display the source code of filesIt works but on PHP file it displays the code that will come out at the end, NOT the actual code of the page that I coded myself.Why is this and what function should I be using, Currently I am using file();
  7. Thanks for you help but I have tried what you said and STILL it doesn't work!For some reason it tries to see if profile "user_group.php" exists so it shows a profile doesn't exist error.My PHP file is there!For some reason, it seems to work on my XAMPP Server but not on a web-host.... Do you think its becuase of Safe Mode or a PHP.ini setting?
  8. Hi Guys,I have a site that uses a .htaccess file not made by me.It basically makes:http://bubblechat.uk.to/profile.php?=USERtohttp://bubblechat.uk.to/USERHow do I make it exclude my file user_group.php? it seems to be messing it up... I think...Here is my htaccess file: RewriteEngine OnRewriteCond %{HTTP_HOST} ^www\.bubblechat\.uk.to$ [NC]RewriteRule ^.*$ http://bubblechat.uk.to%{REQUEST_URI} [R=301,L]RewriteBase /RewriteCond %{REQUEST_FILENAME} -dRewriteRule ^.* - [L,QSA]RewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^.*/images/(.*)$ /images/$1 [L]RewriteCond %{REQUEST_FILENAME} !-fRewriteRu
  9. Oh wait, its working but I have yet to test it fully
  10. It still says 500 error...EDIT: See Newer Post
  11. Basically, What I am trying to do is:turn my site urls different like:show.php?id=WHATEVER = http://mysite.com/WHATEVERaction.php?do=WHATEVER = http://mysite.com/action/WHATEVERHow can I do this?
  12. What is wrong with my .htaccess file below? it produces an error 500? Options +FollowSymlinksRewriteEngine onRewriteCond %{http_host} ^pasteme\.uk.to [NC]RewriteRule ^(.*)$ [url="http://www.pasteme.uk.to/$1"]http://www.pasteme.uk.to/$1[/url] [R=301,NC]RewriteRule ^([a-zA-Z0-9_-]+)$ show.php?id=$1RewriteRule ^([a-zA-Z0-9_-]+)/$ show.php?id=$1RewriteRule ^action/([a-zA-Z0-9_-]+)$ action.php?do=$1RewriteRule ^action/([a-zA-Z0-9_-]+)/$ action.php?do=$1
  13. Thats perfect! thank you soo much!
  14. Hi,I have css files that are the same EXCEPT for colour differences. I want to make an AJAX/Javascript color changer on my site.So, How can I make AJAX/Javascript change the <link rel=""> so it changes the page's Color?
  15. Hi,I have css files that are the same EXCEPT for colour differences. I want to make an AJAX color changer on my site.So, How can I make AJAX change the <link rel=""> so it changes the page's Color?
  16. I need to search for a string in ALL PHP files and in other folders too, in the actual code, How can I do this is PHP?Like this:1.php2.phpfolder1 - 1.php - folder2 -- 2.phpsearcher.phpHow can I search all PHP files for a certain code, and the script to tell me which file its in and where?
  17. You might wanna update your signature ;)

    James

  18. Yes! I fixed it by making the Script more simple! thanks!
  19. When there is 1 table row its supposed to not use an while loop but it meant to display only that 1 rowWhen there are 2 or more, it uses the while loop to display them allWhen there is 0 rows, its meant to print "No Projects Yet..."Understand?
  20. Hi!I got a big Problem with a Function I am coding.Here is my function:FUNCTION: function projects ( $location ) { // Get Projects $query = mysql_query("SELECT * FROM projects WHERE active = 1") or error('FATAL','Could not get projects!'); $count = mysql_num_rows($query); if ( $count == 0 ) { $project = 0; } else if ( $count == 1 ) { $noarray = true; } // Check Location if ( $location == '' || !$location ) { return false; } else if ( $location == 'sidebar' ) { // Sidebar Project Links if(!$noarray) { while( $project = mysql_fetch_assoc($query) ) {
  21. Yes! It worked! Thank you very much!
  22. How can I check if a String contains the Char1 Character? <-- that
  23. I want to make a Country Redirector using PHPHow can I do this?I want to get the User's IP Address and redirect them to certain pages based on their countryIf the country cannot be found I want to display a page with Flags on it so they can click their country's flag.How can I do this?
  24. Hey,Can someone make a Twitter feed grabber for me in PHP?Make it so there is a Variable for the Feed URL and the dates look like "24 mins ago"All I need is Title and dateYou can do it for the Structure of: <ul class="tweet_list"><li class="tweet_even">TITLE <br /><a class="time" href="URL TO ITEM">TIME</a></li><li class="tweet_odd">TITLE <br /><a class="time" href="URL TO ITEM">TIME</a></li></ul> Thank you.
  25. Not for Spamming, so it can post topics and posts as me instead of me having to login, load the page... etc.
×
×
  • Create New...