wildteen88
Staff Alumni-
Posts
10,480 -
Joined
-
Last visited
Never
Everything posted by wildteen88
-
PHPv5.0.5 upgrade to PHPv5.2.6
wildteen88 replied to Dominika's topic in PHP Installation and Configuration
Yes PHP needs to be configured to use which ever extensions you want to use. PHP can be configured via the php.ini The only extensions you'll need to have enabled for MS SQL databases would be the following ;extension=php_msql.dll ;extension=php_mssql.dll (remove the ; at the start of the line to enable the extension. To disable do the opposite) Never enable ALL available extensions. Once you have configured PHP make sure your restart your HTTP Server (eg Apache, IIS etc) -
Don't expect any helpful replies then.
-
Wrap your variable in braces echo "<img src=\"images/{$page}T.jpg\" />"; Or do echo '<img src="images/'.$page.'T.jpg" />'; Edit: beaten to it
-
[REQUEST] A good free PHP forums that I can upload to a host
wildteen88 replied to Necropolis's topic in Applications
Its failing on the mbstring requirements. Create a new file called .htaccess within your forum/ folder and add the following commands to it: php_value mbstring.http_input pass php_value mbstring.http_output pass php_value register_globals off Now try installing phpBB again. -
How would we know. There are most probably thousands of news/affiliation scripts available. Looking at the site it is most probably custom made by the site owner.
-
Without it print_r wont return the generated string to the echo statement, for example the output would be array output here <pre></pre><hr /> and not <pre>array output here</pre><hr />
-
Your file paths. This cropImage(83, 60, "/uploads/$filename", 'jpg', "/uploads/th-$filename"); Should be cropImage(83, 60, "./uploads/$filename", 'jpg', "./uploads/th-$filename");
-
Use mysql_fetch_assoc to fetch the results from your query eg while($row = mysql_fetch_assoc($rowCount) { echo '<pre>'.print_r($row, true).'</pre><hr />'; }
-
Never start a file path with a forward slash, as PHP interprets this as the root of your file system (just like C:/ on windows). Use ./ instead (the . at the start of the path means current working directory). Or remove the forward slash completely.
-
Fatal Error (include_path='.;C:\xampp\php\pear\')
wildteen88 replied to jrp91384's topic in Apache HTTP Server
But the code is being ran from your windows machine. The error can only be fixed by changing the path from a *nix path to a windows path. PHP won't know that the file being required is on an external server. -
I just don't think its a very efficient way of doing things. Especially if you leave the first parameter of the implode function blank.
-
i've never seen the use of implode/file as a better way of including a files contents before. Personally I use include/require etc to include PHP code within my pages, anything else I'd use file_get_contents.
-
Wrap your variable within curly braces {}, eg <td width="75">{$row['brand']}</td> You will have to do this with all your $row variables and/or variables which are arrays within your string.
-
echo statements can span multiple lines, I would recommends a heredoc statement, echo <<<MY_HTML; place all your HTML here MY_HTML; There are numerous ways for making your code better.
-
Your need to escape your single quotes within your string. echo ' <td> <a href="index.php' . $slink . '" javascript:imagechange(); onMouseOver="imgChange(\'5\', \'/image/down_home.png\'); playSound(0);"onMouseOut="imgChange(\'5\', \'image/up_home.png\'); playSound(0);" ><img border="0" src="image/up_home.png"><img border="0" src="image/separator.gif" width="2" height="34"></a></td>';
-
Have a look at this post. Download the .txt file rename to .php and test out the code.
-
25 second post timer is not 25 seconds
wildteen88 replied to Prismatic's topic in PHPFreaks.com Website Feedback
Rather than click your browsers back button. Load a new instance (as in window/tab) of the thread you're tying to reply to, then copy 'n paste your reply to the new page and try again.. -
If the $row variable is an array use a foreach loop foreach($row as $cell) { echo '<td>'.$cell.'</td>'; }
-
Fatal Error (include_path='.;C:\xampp\php\pear\')
wildteen88 replied to jrp91384's topic in Apache HTTP Server
Umm, hang on. You're using a *nix file path when you're using Windows! This a *nix file path /home/visolio/public_html/secure/billing/configuration.php This is a Windows file path C:\xampp\htdocs\Visolio_Clients\visolio_root\Scripts\phpscripts\announcment.php On windows absolute file paths must start with a drive letter. -
use unset($words) or $words = array();
-
If your are using Windows just select which ever files you want to be zipped and then right click on the selection and choose Send To > Compressed Zipped Archive
-
Trying to use conditionals on mysql results
wildteen88 replied to burntheblobs's topic in PHP Coding Help
This is not the correct way. You should use mysql_num_rows as shown here -
Have a look at this topic. They had a similar problem to you. May be it'll help.
-
[SOLVED] non-existent records in database
wildteen88 replied to careym1989's topic in PHP Coding Help
use mysql_num_rows to check if any results have been return from your query if(mysql_num_rows($data) > 0) { while($result = mysql_fetch_array( $data )) { // display results } } else { echo 'No results found.'; } -
If you search google you should be able to find some "JavaScript count down timers".