
Jamesking56
-
Content Count
150 -
Joined
-
Last visited
Content Type
Profiles
Forums
Calendar
Posts posted by Jamesking56
-
-
I find IIS servers confusing to setup, so I just use PHP and Apache instead
-
PHP Rules!!! I think ASP is rubbish because not many servers use it and PHP is more popular
-
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();
-
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?
-
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} !-fRewriteRule ^.*/uploads_user/(.*)$ /uploads_user/$1 [L]RewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^([^/]+)/?$ /profile.php?user=$1 [L]RewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^([^/]+)/([^/]+)?$ /profile.php?user=$1$2 [L]
-
Oh wait, its working but I have yet to test it fully
-
It still says 500 error...EDIT: See Newer Post
-
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?
-
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
-
Thats perfect! thank you soo much!
-
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?
-
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?
-
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?
-
Yes! I fixed it by making the Script more simple! thanks!
-
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?
-
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) ) { echo "<li><a href=\"" . $project['site'] . "\" title=\"Go To " . $project['name'] . "\" target=\"_blank\">" . $project['name'] . "</a></li>"; } } else if ( $project == 0 ) { // No Projects echo "<li>No Projects Yet!</li>"; } else { echo "<li><a href=\"" . $query['site'] . "\" title=\"Go To " . $query['name'] . "\" target=\"_blank\">" . $query['name'] . "</a></li>"; } } else if ( $location == 'projects' ) { // Projects Page } else { // Location Not Found return false; } }
Now, When I use projects('sidebar'); on a page, it doesn't do it right!In my table, I have 1 Row, It outputs: "No Projects Yet!"In my table, I have 0 Rows, It outputs: "" (nothing)In my table, I have 2 Rows, It outputs: "Link1" and then "link2" (as it should)How can I fix it?
-
Yes! It worked! Thank you very much!I believe you can test for "\1".$str = "String";if(strpos($str,"\1") > -1)
-
How can I check if a String contains the Char1 Character? <-- that
-
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?
-
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.
-
Not for Spamming, so it can post topics and posts as me instead of me having to login, load the page... etc.you mean like a spambot... -
Hi there!Is there something out there that is a robot that can post in forums, So that you can setup what it posts and replies to and stuff?Preferably free please!Or,How can I make one using PHP?
-
How can I use PHP to check if a site is working?
-
Php And Asp Voting!
in PHP
Posted
Apache is soo easy! IIS never seems to work for me