wildteen88
Staff Alumni-
Posts
10,480 -
Joined
-
Last visited
Never
Everything posted by wildteen88
-
Make sure your editor is saving your file as ASCII encoding or as UTF8 without BOM Also make sure nothing is before your opening PHP tags (this includes spaces/newlines etc)
-
What do you mean you have to use trim() when you use header/set_cookie Post your code and any error messages you get.
-
[SOLVED] Maximum allowable data in PHP sessions...
wildteen88 replied to richrock's topic in PHP Coding Help
You can store as much data as you like within in sessions. All sessions are stored on the server. The only limits you can reach is the maximum memory a script can consume at one time, which by default is 128MB. -
$lines[] should be $lines And your foreach loop needs to be foreach($lines as $line_num => $line) { echo $line_num . ' = ' . $line; }
-
How to host multiple sites on same web server?
wildteen88 replied to rv20's topic in Apache HTTP Server
Apache can host more than one site using virtual hosts. -
This is all your function needs to be function getExtension($str) { $ext = pathinfo($str, PATHINFO_EXTENSION); return $ext; }
-
It is most probably the account your using when logging in to phpmyadmin which doesn't have sufficient privileges for altering privileges. phpmyadmin3.1.5 has a privileges tab at the top of the main page. This tab will not be visible if the account your using doesn't allow for privileges to be changed. You should get in contact with your host about this. When your host sets up new users the minimum privileges they should provide is select, delete, update and insert. Only your host will be able to fix this.
-
The words Owner, Co-Owner, Admin, Head Mod and Mod need to be wrapped in quotes.
-
[SOLVED] PHP Include, blank when nothing entered
wildteen88 replied to ev5unleash's topic in PHP Coding Help
This code in download.php: default case 'default'; include('downerror.html'); break; needs to be case 'default': default: include('downerror.html'); break; Also your links when you go to the jailbreal page should be index.php?id=download&os=windows not index.php?id=download?os=windows -
What line(s) did you add to index.php? Something you added has caused it. The code you posted seems to be ok. Also can tell us what version of SMF you are using and the mod you trying to install.
-
Its being asked before but i cant fined the anwser.
wildteen88 replied to paulman888888's topic in Apache HTTP Server
To do this you'd use mod_rewrite. So if you url is site.com/foo-123/bar-abcd Then this is what will be in your .htaccess RewriteEngine On RewriteRule foo-([0-9]+)/bar-([a-z]+)/ page.php?foo=$1&bar=$2 Now in page.php you'd use $_GET['foo'] for the first value, $_GET['bar'] for the second value. -
[SOLVED] PHP Include, blank when nothing entered
wildteen88 replied to ev5unleash's topic in PHP Coding Help
Move these lines case 'default': include('indexhome.html'); break; To the bottom of your switch. Now add default: after case 'default': -
Its being asked before but i cant fined the anwser.
wildteen88 replied to paulman888888's topic in Apache HTTP Server
You shouldn't have to do anything. Just use $_GET as normal. Eg: $_GET['variablename1'] and $_GET['variablename2'] -
I see nothing wrong with that code. Whats is the actual problem you're having? I am not understanding you
-
Tutorial on framsets All you'll need to do is setup a horizontal frameset with two frames. The top will contain your music player set this to 0% so its hidden (or if you want it visible set the height accordingly) and the bottom frame will contain your site.
-
Not without seeing your code. You should also tell use what is contained within these arrays and what you're trying to do.
-
If you want constant music to always play and not be interrupted when going to different pages then the only solution would be to use a frameset.
-
if you want an instant quote returned as soon as a selection is made you'll have to use Javascript. No need to for PHP here.
-
Change href=" to href=\" Remember if you start your strings with a double quote you'll need to escape all double quotes within your string. Otherwise you'll get the error you're receiving
-
Use the MySQL concat() function mysql_query("UPDATE table SET array=CONCAT(array, ',5')");
-
Have a look at this post http://www.phpfreaks.com/forums/index.php/topic,252307.msg1185070.html#msg1185070 Seems similar to what you're trying to do.
-
This is what you'll want to do $SQL_selectOptions = "SELECT optionID, optionName, optionPrice FROM options"; $rs_selectOptions = mysql_query($SQL_selectOptions, $admin); $selectOptions = array(); while($row_selectOptions = mysql_fetch_assoc($rs_selectOptions)) { $selectOptions[] = $row_selectOptions; } All your results will be stored into the $selectOptions array. Now to display all your results foreach($selectOptions as $options) { echo $options['optionID'] .'<br />'; echo $options['optionName'] .'<br />'; echo $options['optionPrice'] . '<br /><br />'; }
-
Is this possible - open image in new html page on fly?
wildteen88 replied to mwmc2001's topic in PHP Coding Help
What? You're not making any sense at all. You need to be more specific with your question, perhaps post an illustration of what you're wanting to do. -
Those errors have nothing to do with PHP Its to do with your HTML that is failing to validate.
-
Judging by your code I think $user_data($user_hi) should of been $user_data['user_hi'] and $user_data($user_lo) should of been $user_data['user_lo']