User Profile
Collapse
-
How Read a Header Info Like Bitrate and playtime of a mp3 file
i want a simple function to retrive header info like bitrate playtime of a mp3 files , any help would be highly appreciated ... thanx in advance -
how to disable autoindexing in apache 2.x
hello Dear Friends : for some reason i want to disable autoindex module
i tried but failed
when i uncomment the autoindex module
and restart the service so that changes may take effect .Code:#LoadModule autoindex_module modules/mod_autoindex.so
but apache http server stop .and when i uncomment the aotuindex module
...Code:LoadModule autoindex_module modules/mod_autoindex.so
-
paging like google
can any one help me creating a dynamic pagination script for non-sql entries
i made this simple paging script
...Code:<?php //Show Result Per Page $ResultPerPage=10; //Total Result Availaible $TotalResults =1000; //calculate how many pages will be created $TotalPages = $TotalResults / $ResultPerPage; $TotalPages = round($TotalPages,0); $c = 0; echo "<br>";
-
khalidbaloch replied to Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resourcein PHPthis might be syntax error ,add die mysql_error() function in every
mysql_query ,to figure out the mistake
you should also add this mysql_connect and dl_select in db_conn_ini.php
this code might
...Code:<?php //load the db_conn_ini file require ('includes/db_conn.inc.php'); $query = "select * from menu order by item_order"; $result = mysql_query($query) OR die(mysql_error());Leave a comment:
-
here your are using php substr function to limit the chracter ,and as you can see ronald's reply he ask you you to note
that
contarary to php substr() function mysql substr start position is 1 ,php substr start posistion 0,
so in my opion you should use the mysql substr funtion to bequase it will be faster ,to accomplish that ,so this will help you
...Code:$result = mysql_query("SELECT username,cat,SUBSTR(comment,1,100)Leave a comment:
-
using foreach loop to get values of a multi-dimensional arrays
hi every one, how are you folf , hope fine
dear Friends i want to get values of multi-dimensional arrays using foreach loop and after that print out the html using an other while loop ,
i tried alot but did not successed accutly i want to create an yahoo api websearch application i got a sample from developer.yahoo .com for this purpose ,this sample uses unserialize/serialize php
here is the code exapmle
... -
using vertical or horizantal image as border using css
is it posible to use image as a border for a table using css .
if it is how to do that ..
thanks in advance for any help ........ -
check this http://www.onlamp.com/pub/a/php/2000...us.html?page=2 this php class create dynamic next previous button for mysql recordLeave a comment:
-
it is working even in my local webserver but not working on ifastnet.com hosting server and it does not display any php error ... is there any command that force this server to show php errors .....Leave a comment:
-
-
no i did not tried it yet but now i will . i am unfimailar with these two functions. what do they do ?Leave a comment:
-
hi Ronald : this the complete code of admin cp index page
...Code:<?php header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past header("Pragma: no-cache"); session_start(); if (!isset($_SESSION['username']) && !isset($_SESSION['password'])) { header ("location: login.php");Leave a comment:
-
try by removing this line from text4.php
echo "$sql <br>";
mysql select statment is being printed out in html
good luck and take careLeave a comment:
-
please provid you database table info and let us know what do u want to retrive ...Leave a comment:
-
sorry dear friend i forget to type the problem acctully i was in little hurry and upset bcz of this problem therefore i am reposting my question
..hello Freinds i have almost complted my first php application .. i wrote it in my local webser ..it works fine on my local server acctully the problem interpreting me is in admin page which should redirect the viewer to login page if the session is not set .. i am using this code...Leave a comment:
-
how to force hosting server not cache php codes
hello Freind i have almost complted my first php application .. i wrote it in my local webser ..it works fine on my local server acctully the problem interpreting me is in admin page which should redirect the viewer to login page if the session is not set .. i am using this code at the starts of my admin cp page index that controll all the sub pages .
...Code:if (!isset($_SESSION['username']) && !isset($_SESSION['password'])) { -
-
khalidbaloch replied to how to disable select element when checkbox is checked without refreshing the pagein Javascriptthanks for coopration but my problem has been solved . i found this script on the net
...Code:<script Language="JavaScript"> var _T = "locked"; var _F = "unlocked"; function lockIt(_P) { var _L = document.aform.lck.value; if(_L==_P)return; document.aform.sub_cat.disabled=(document.aform.lck.value=(_L==_F)?_T:_F)==_T; document.aform.main_cat.disabled=(document.aform.lck.value=(_L==_F)?_T:_F)==_T;Leave a comment:
-
if mp4 is a video file and your trying to play it in windows media player or any other player like realplayer then first you need to install divx codec for this file. once you have installed divx codec open the mp4 file with any media player windows media realplayer etc ...
to get the div x codec for free cost click bellow
download divx codec
good luck and take careLeave a comment:
No activity results to display
Show More
Leave a comment: