Jump to content

dnzone

Members
  • Posts

    18
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Male

dnzone's Achievements

Member

Member (2/5)

0

Reputation

  1. I don't know if this is the right place to place my question but i am sorry if i post it in the wrong forum. I am trying to develop my own forum. So i would like to know if any of u guy / gal know any site that have free PHP forum template / sample for download so that i can start from there. Thanks for the help
  2. The driver that I use in ODBC Data Source Administrator is Microsoft dBase Driver (*.dbf). Is it correct. Below is my code:- $db_conn = odbc_connect("payrhh",'',''); if (!$db_conn) { echo "error"; } else { $sql_result=odbc_exec($db_conn, "select * from staff"); $sql_rows = 0; while(odbc_num_rows($sql_result)) { echo odbc_fetch_array($sql_result); } odbc_free_result($sql_result); } This is the result that i get ArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayPHP Fatal error: Maximum execution time of 30 seconds exceeded in C:\Inetpub\wwwroot\rhpos\testing.php on line 18 can anyone help me.
  3. has anyone try installing php on window vista? is it possible? i am currently running php5 + win XP 32 bit and it work fine but i am thinking of upgrading my pc to vista so i want to know if php5 is able to work with vista 32bit
  4. I have a problem, which is when i display a php page that has a variable that is not defined it did not display the PHP Notice error. I have seen the php.ini and it is already set and i have try to copy my c:\php and put it into another pc and the PHP Notice is display on the ie page. So i think my problem is on the IIS or maybe my IE. IIS is IIS v5.1 (Windows XP service Pack 2) IE is IE 7.0 Can anyone please help me. Did anyone fact this kind of error before?
  5. I get the error message below when i try to run the follow code. can anybody tell me where did i do wrong. I am running PHP 5.1.2 on IIS 5.5 (Windows XP) [code] $filename = "textfile.txt"; $fp = fopen($filename, "w+"); $somecontent =  "Hello World"; fwrite($fp, $somecontent); fclose($fp); [/code] PHP Warning: fopen(textfile.txt) [function.fopen]: failed to open stream: Permission denied in c:\Inetpub\wwwroot\PHProg\testfile.php on line 10 PHP Warning: fwrite(): supplied argument is not a valid stream resource in c:\Inetpub\wwwroot\PHProg\testfile.php on line 12 PHP Warning: fclose(): supplied argument is not a valid stream resource in c:\Inetpub\wwwroot\PHProg\testfile.php on line 13
  6. Thank alot crayon, it help me a lot.
  7. Can anyone teach me how i can redirect my page for one page to another page automatically. My senario is like this, I have a login page in which when the user login I will set the cookie and after 5 to 10 minutes my cookie will expire. And when the cookie expire I will redirect the page to an error page to tell the user that he or she need to login again. And from the error page I want it to automatically redirect itself to the login page so that the user can login again. So how can i redirect my page from the error page to the login page automatically after a few second. Can anyone teach me. Thanks.
  8. Is it posible of php to send a sms? Can anybody teach me how to do it Thanks.
  9. I have install the PostgresSQL 8.1.3 and PHP 4.4.1 and my web server is running under windows XP IIS so I am wondering does the phpPgAdmin 4.0.1 run under this eviroment. I have download the phpPgAdmin 4.0.1 and I have tried unzip it and copy the folder into the "C:\Inetpub\wwwroot\phpPgAdmin" folder and I try to access the index page "http://localhost/phpPgAdmin/index.php" and I get the page show this message "You are not authorized to view this page" can anybody teach me how to solve this problem. I have try to display a phpinfo() page and it works ok. Thanks.
  10. [!--quoteo(post=355283:date=Mar 15 2006, 05:46 PM:name=ToonMariner)--][div class=\'quotetop\']QUOTE(ToonMariner @ Mar 15 2006, 05:46 PM) [snapback]355283[/snapback][/div][div class=\'quotemain\'][!--quotec--] Which ever database you use as the back end try as far as possible to use the corresponding php functions. Doing so lets you use all the 'special functionality' of that particular database. Using generic php database functions limits what you can do as to be generic means it will only have the functionality that is applicable to 'all' (I say all meaning most) database. [/quote] Thanks for the advice ToonMariner, I will keep that in mind.
  11. I am wondering, can anybody tell me the difference in using the ODBC Function to connent to a Microsoft SQL Server comparing to the Microsoft SQL Server Function. Because I have decided to use Microsoft SQL Server 2005 Express Edition as my back end, and I have try the ODBC Function already. Buy I just found out that there is also function specified for Microsoft SQL Server. I Hope that some can give some advice regading this two type of function. Thanks.
  12. [!--quoteo(post=354835:date=Mar 14 2006, 06:39 PM:name=wildteen88)--][div class=\'quotetop\']QUOTE(wildteen88 @ Mar 14 2006, 06:39 PM) [snapback]354835[/snapback][/div][div class=\'quotemain\'][!--quotec--] You might want to change any instances of [b]$pgnodes;[/b] to [b]$_GET['pgnodes'];[/b] as you're using pgnodes; to get the variable value form the url which is incorrect as you dont have register_globals turned on. Instead you have it turned off which it should! When you have register_globals turned off you have to use the superglobal arrays found [a href=\"http://uk.php.net/manual/en/language.variables.predefined.php\" target=\"_blank\"]here[/a]. [/quote] Thanks for the help guys. as it turn out i just need to use the $_GET['pgnodes']. Special Thanks to wildteen88
  13. when i paste the php code and then i try to submit the post i get a forbiden page why? how do i post the entire script? pls help...
  14. [!--quoteo(post=354819:date=Mar 14 2006, 05:27 PM:name=redarrow)--][div class=\'quotetop\']QUOTE(redarrow @ Mar 14 2006, 05:27 PM) [snapback]354819[/snapback][/div][div class=\'quotemain\'][!--quotec--] Show the code line of 9, 25 46 code from node.php ok. [/quote] Ok the code for line 9 is like this [code]echo "Current pgnodes is ",$pgnodes;[/code] the code for the line 25 is like this [code]if ( $pgnodes != 0 )[/code] the code for the line 46 is like this [code]<input type="hidden" name="node" value="<?php echo $pgnodes;?>"><br />[/code] Is there any problem with my code... [!--quoteo(post=354819:date=Mar 14 2006, 05:27 PM:name=redarrow)--][div class=\'quotetop\']QUOTE(redarrow @ Mar 14 2006, 05:27 PM) [snapback]354819[/snapback][/div][div class=\'quotemain\'][!--quotec--] Line 9 code is like this echo "Current pgnodes is ",$pgnodes; Line 24 code is like this if ( $pgnodes != 0 ) Line 46 code is like this <input type="hidden" name="node" value="<?php echo $pgnodes;?>"><br /> Show the code line of 9, 25 46 code from node.php ok. line 9 should be ok know i hope. What is pgnodes set to. [code] echo "Current pgnodes is ".$pgnodes; [/code] [/quote] pgnodes is set to 0
  15. My problem is like this I have two php page. One is Forum.php and the other one is call node.php. Forum.php is the main page and when i click the link it will then call the node.php and at the same time pass the value click in the forum.php to the node.php's variable name $pgnodes. the problem now is that everytime i click the link from Forum.php to open the node.php, the node.php page will display the php error stated in my post above. can you help me to solve the problem. thanks.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.