wildteen88
Staff Alumni-
Posts
10,480 -
Joined
-
Last visited
Never
Everything posted by wildteen88
-
In that case you'll want to make the $name variabled an array which you can do by adding [] at the end of variable name like so: $name[] = $dirs['name']; What will happen now $name will store the results as in an array.
-
Simple use the class/id name of your news, announcement and menu boxes before the link style. So for your news box do something like so: [code].news a:link, .news a:active, .news a:visited { FONT-SIZE: 9px; COLOR: #303030; FONT-FAMILY: Arial; TEXT-DECORATION: none; } .news a:hover { FONT-SIZE: 9px; COLOR: #303030; FONT-FAMILY: Arial; TEXT-DECORATION: underline; }[/code]
-
Yes you can do that. Just git rid of the echo statement. But the $name variable can [b]only[/b] be used on the page it was created on. It cannot be used on another page. So if you want to use $name over multiple pages you might want to store it in a session/cookie.
-
Yes mkdir works with Windows: [code=php:0]<?php mkdir('folder_name/'); ?>[/code] Before you use that function make sure the folder you are going to be creating the folder in doesnt have its permission setting Read-Only. You can check this in your FTP program.
-
OKay have you moved a file called libmysql.dll form the root of the PHP folder to the windows folder. Make sure you move any files and modify any files you restart the server for the new settings to be loaded into memory, otherwise the new settings wont come available until the server is restarted. Also add the PHP folder to the Windows Path variable and add the following line: #PHPIniDir PHPIniDir "C:/PHP" To Apache httpd.conf file too. POlace the php.ini in the PHP folder when you add the PHP folder to Windows PATH variable. When you create the chnage the PATH variable you must restart your computer.
-
By looks of things the secound parameter makes the script check for newline and carriage return characters too. I dont knwo what partterns 6 and 7 do. By looks of it they are ASCII characters.
-
Also DONT move the extensions out of the ext directory. Also when you make changes to the php.ini make sure you restart the server. Also I notice you are using Apache2.2, unless I am mistaken, currently PHP doesn't offically support this version of Apache. You might want to downgrade to Apache 2.0.x Also about the mysql.so file I believe that is for OS other than Windows. PHP Extensions for Windowws are dll files. .so files are for other OS I beleive.
-
Please read [url=http://www.phpfreaks.com/forums/index.php/topic,95378.0.html]this thread[/url]. You need to enable the mysql extension and setup the extension_dir directive in the php.ini. Which the post provided explains.
-
Yeah, you get rid of the strtolower function and make sure you have added the letter [b]i[/b] at the end of each expression, as described in my post above.
-
Dreamweaver only does this with a few lanagauges, Such as Javascript and i think ASP and VBScript. It doesnt do it for all lanaguages. Also if you are coding in PHP you're best of with an IDE, which someone has already provided a link to a thread that discusses the best IDE.
-
If you have an auction site, then I would recommend you to go for a dedicated server instead. With a dedicated server you are the only website on that server, whereas most hosts puts on a package called shared hosting where everyone is on the same server. So if one site is using too much server resources tan any other website on the server then the webhost will kick you off. So I'd recommend a dedicated server instead, which our sister site http://www.webhostfreaks.com/ provides such a service.
-
If you are use preg_replace use the [b]i[/b] syntax modifier in your expressions like so: $patterns[0] = '/content-type:/[b]i[/b]'; $patterns[1] = '/to:/[b]i[/b]'; $patterns[2] = '/cc:/[b]i[/b]'; The i makes the expression as case-insensitive. Susch as Cc: is the same as cc: No need for strtolower. So place the letter i (eye) after you closing delimiter, which is the forward slash (/)
-
By result you mean a mysql query if so you do something like this: [code=php:0]<?php // connect to db $query = "SELECT * FROM table_name WHERE condition=some_value") $result = mysql_query($query); if(mysql_num_rows($result) < '1') { // the query returned no results header("Location: no-results.php"); } else { // the query return at least 1 or more results header("Location: results.php"); } ?>[/code]
-
PHP Safe Mode may be turned on in number of places, either within the servers main configuration file (not the php.ini), which you may not be allowed access to, within an .htaccess file or which in a custom php.ini file.
-
Yes you can do this. What you'll want to search for is Pagination Tutorials. There are thousands of them out there. Also we wont write scripts for people eaither. We'll provide code snippets but not a fully functional script. [url=http://www.php-mysql-tutorial.com/]This site here[/url] will be able to help in doing so. If you run through tutorial numbers 3 throught to 9 whcih will teach you on how to use PHP and MySQL toggether. Tutotial number 8 is where you learn to add pagination.
-
Dont place #anchor in the include statment but on the main URL bar instead, eg: [code]<a href="#anchor">Move ot anchor</a> <?php include 'page.php'; ?>[/code] Think of include as copy 'n' paste, as that is what it does.
-
NO mods delete this please. This is a test we have a permission problem at the moment.
-
Help Me - Got an error while creating folder
wildteen88 replied to smartguyin's topic in PHP Coding Help
If you are trying to create a folder make sure the the directory inwhile the folder is being created has the correct permissions set, for example public_html directory needs its permission changed so you can write folders to it. You can chnage permission by changing the CHMOD settings. -
A simple suggestion please?
wildteen88 replied to bilis_money's topic in PHPFreaks.com Website Feedback
Your monitor settings must be setup wrong! As the colours are fine for me. They are basically the same as IPBs. I dont know if this feature has been disabled yet but you can change the forum theme in your profile, there is or was three to choose from. -
If you want your PHP code to be parsed in a HTML file you need to edit the servers config file. Such as for Apache you need to find a file called httpd.conf. Look for a a line like this: [b]AddType application/x-httpd-php .php[/b] Now add a space after [i].php[/i] and add .html to the end. Save the httpd.conf file restart Apache. You should now be able to parse PHP code in your html files.
-
How do we change our signatures?
wildteen88 replied to zq29's topic in PHPFreaks.com Website Feedback
I got to change alot of URLs as the URLS have changed to threads/posts. For my sig the sig limit will need to be about 2500 - 3000 chars! -
How do we change our signatures?
wildteen88 replied to zq29's topic in PHPFreaks.com Website Feedback
Hi SA. To chnage you signatur you need to got your Profile then goto Account Related Settings and you find a box that says member group. Change that to Global Moderator, then at the bottom theres a password box. Fill in your password then click The Change button. You'll now get an extend list of options on the left hand panel. -
Please read the [url=http://www.phpfreaks.com/forums/index.php?action=help;page=post#bbcref]BBCode Reference[/url] which provides a list of all BBCodes.
-
Isn't that what I suggested in my post above? Prehaps I didnt explain it very well.
-
You usually get this error message when you have an error in your sql query. Please read [a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=95376\" target=\"_blank\"]this thread[/a]. Also seardch the forum too as this question has been answered many times over