wildteen88
Staff Alumni-
Posts
10,480 -
Joined
-
Last visited
Never
Everything posted by wildteen88
-
Zend Studio, Windows and MySQL
wildteen88 replied to onlyican's topic in Editor Help (PhpStorm, VS Code, etc)
Ah, Umm I'm not sure. I guess it'll be a good idea to check out the zend studio manual. Should be discussed in their somewhere -
PHP4 is okay. Its up to which version of PHP to start of with. if you use PHP4 you just need to adapt the Apache configuration slightly.
-
Zend Studio, Windows and MySQL
wildteen88 replied to onlyican's topic in Editor Help (PhpStorm, VS Code, etc)
You need to edit the php.ini and configure the [b]extension_dir[/b] directive to point to the PHP extensions folder. The extension folder is located in side the folder you have installed PHP to. So if you have installed PHP in the root of your hard drive in a folder called php. Then the path to the PHP extension folder will C:\php\ext The next step is to remove the semi-colon (;) from the the start of [b]extension=php_mysql.dll[/b] -
I'm really sure what is going on really. However try this simple script: [code]<?php if(isset($_POST['submit'])) { echo "<b>The Message:</b><br />\n" . nl2br($_POST['msg']) . "<hr />\n"; } ?> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> <textarea name="msg">Enter your message</textarea><br /> <input type="submit" name="submit" value="Post Message" /> </form>[/code] Do you get the same result as you do with your forum?
-
Auto-generate links on PHP function names
wildteen88 replied to Daniel0's topic in PHPFreaks.com Website Feedback
[quote author=Crayon Violent link=topic=108806.msg438210#msg438210 date=1158775433] wildteen- i guess that reduces SOME typing, but since all you have to do is type php.net/functionname and it does the same thing... seems like just another thing superfluously taking up my memory. [/quote] I'm just so used to choosing the site I want to search using the FF search engine thingys in the top right. -
My PS2 is actually quite clean compared to my friends. The front of his PS2 (the bit under the ridge of the DVD/CD drive tray and where you put your memory card and control etc) is covered in Dust. However mine is pretty clean. I hardly clean it. Just dust the top of the console every now and then.
-
Prehaps check that the file exists first, by using file_exists before including it like this: [code=php:0]if(file_exists("ma/$zip/1.php")) { include("ma/$zip/1.php"); } else { echo "Sorry that Zip Code does not exist. Please try again"; }[/code]
-
Works fine for me. I get "Woo Right". Is it not working for you? Could you explain what you are aiming to do.
-
When you include these files is the header in the same folder as the file that is including the header? For example you code is this: file_that_includes_header.php [code=php:0]include 'includes/header.php';[/code] Your header graphic will need to be in the same folder as file_that_includes_header.php and not in the includes folder. As the file that is being included/required is not run in the location in which it is being included from. Instead is run from the file that is including/requiring the file.
-
Come to think of ity ou can probably add [b]AcceptPathInfo On[/b] to htaccess file in root of your websites document root.
-
Umm, xyn wnated to delete a couple of session variables. Not a whole session.
-
Not all server variables will be available. Some server variables are only available for certain servers. Such as if you are using IIS server you can grab the username that is logged onto the workstation that is browsing the site, However you cant do this if you are using Apache server. However having a quick look over at php.net on the PATH_INFO variable I found this: [quote=http://uk.php.net/manual/en/reserved.variables.php]'PATH_TRANSLATED' Filesystem- (not document root-) based path to the current script, after the server has done any virtual-to-real mapping. [color=red][b]Note: As of PHP 4.3.2, PATH_TRANSLATED is no longer set implicitly under the Apache 2 SAPI in contrast to the situation in Apache 1, where it's set to the same value as the SCRIPT_FILENAME server variable when it's not populated by Apache. This change was made to comply with the CGI specification that PATH_TRANSLATED should only exist if PATH_INFO is defined. Apache 2 users may use AcceptPathInfo = On inside httpd.conf to define PATH_INFO.[/b][/color][/quote] NOTE the text in red.
-
Nope. Its just an old stock version 3 playstation 2. I've had it for about five years or so now.
-
Auto-generate links on PHP function names
wildteen88 replied to Daniel0's topic in PHPFreaks.com Website Feedback
When we had IPB our admin (phpfreak) did have such a feature implented, as it did link to the PHP manual hosted on our main site. Not sure whether this will be added back though. I used to use the feature a lot when I first signed up here. At the moment I have a PHP search engine plugin installed in FF. It allows me to type in a function name into the search box and it takes me to php.net displaying the page for that function. You can get it [url=http://mycroft.mozdev.org/download.html?name=php+fun&sherlock=yes&opensearch=&submitform=Search]here[/url]. Download the one you want in your native lanaguage. Only for Firefox though. -
Where do I save php files in WAMP?
wildteen88 replied to Lee's topic in PHP Installation and Configuration
Yeah that is correct. PHP runs on the server, thus you had to instal WAMP. You cannot run php files like you can when you double click a html files and it opens up in IE. PHP is not a lanaguage the browser understands, as PHP is a web programming langauge. HTML, CSS and javascript are client side lanagugaes which the browser understands. PHP generates the output which will be mainly text/HTML from your code. -
PHP5 and MYSQL 5 Installation Problem
wildteen88 replied to roneill18901's topic in PHP Installation and Configuration
When you run the phpinfo function, can you find a mysql section anywhere in generated page that phpinfo generates? Also did you use the php installer? -
Rather than exploding the comma and then stiching the number back together. Use str_replace: [code=php:0]$tmp_price = $_GET['pricemax']; // remove any commas from price max. $price = str_replace(',', '', $tmp_price);[/code]
-
Use unset, eg [code=php:0]unset($_SESSION['var_name']);[/code] If you wnat to delete the session data for fieldDept, fieldName, fieldMail then you can do this: [code=php:0]unset($_SESSION['FieldDept'], $_SESSION['FieldName'], $_SESSION['FieldMail']);[/code]
-
PHP5 and MYSQL 5 Installation Problem
wildteen88 replied to roneill18901's topic in PHP Installation and Configuration
Did you restart your server. It is important you restart the server, not the hardware, eg the computer it self, but the server software, eg IIS or Apache or what ever server software you are using. If you did restart the server. check that PHP is using the correct php.ini file. Also if you have changed the Windows PATH variable, you will have to restart your computer for the additon to the PATH variable to come available. -
Where do I save php files in WAMP?
wildteen88 replied to Lee's topic in PHP Installation and Configuration
Look for the WAMP installation directry which I think is located in the root of the hard drive - C:\WAMP - look for a folder called [b]htdocs[/b] or [b]www[/b] within the WAMP folder. You put all your php files in the htdocs or www folder. You can then access these php files by going to http://localhost/filename.php -
You just add the following: [code]php_flag magic_quotes_gpc Off php_flag magic_quotes_runtime Off php_flag magic_quotes_sybase Off[/code] Into the htaccess file. Just copyu and paste in to the htaccess file Save. What this does is changed PHP configuration if magoc quotes is enabled.
-
Silly question about my profile, or is it ??
wildteen88 replied to tomfmason's topic in PHPFreaks.com Website Feedback
Or click your username to the left of your post, eg click where it says [b][url=http://www.phpfreaks.com/forums/index.php?action=profile;u=39880]strawberrypassion[/url][/b] <--- Or clikc this link :D -
Mod_rewrite on Exponent CMS pages with index.php?section=1
wildteen88 replied to sickendeavour's topic in Apache HTTP Server
You'll wnat to do something like this: [code]RewriteEngine On RewriteRule ^section([0-9]+).php$ /index.php?section=$1[/code] Note: the mod_reright module will have to be enabled within the main servers configuration file (httpd.conf) -
You add them into the htaccess file.
-
by PS2 I mean PlayStation 2! Lol! :D