No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
58 Posted Topics
I am new with session. What i am trying to do is that if someone doesn't visit my site for lets say 5 day i want the session to expire. is there a way to do this as i am not aware of it.
I have two servers and one of them have mysql db and one doesnt so is it possible to use mysql db in my other server while hosting my website on another. also if there is how would you do it with php.
Well i need to make a program which would display a certain string in a triangle form in the middle of the console something like this: [code] t eee sssss ttttttt [/code] it wont display right here but i think you get the point. I am somewhat able to do …
Hello, I am using a GeoLite Country ip csv and storing it in the db. it contains ip numbers which are normally huge. My problems comes when I search for some of these numbers. my query: [CODE] SELECT * FROM range WHERE range1 >= 1213099967 [/CODE] This query works fine …
Hi, Only way I could think of is by saving the excel sheet in CSV format and opening it in PHP and retrieving the value using the fgetcsv() function. Here is an example... I just wrote this on the fly and it may have some mistakes ex: [CODE] $file = …
Hello, I have uploaded a test page on [URL]http://test.eezs.com/[/URL] The problem is that the content part of the page is not touching the bottom of the page. I have run this site in FireFox and it displays the way I want it to display but in IE it wont work. …
Hello everyone Just wanted to ask if any one know a reliable and reputable hosting company. I am going to be hosting a e-commerce website on it so i need it to be good. I dont want the hosting to be too expensive but something like godaddy.com wont work because …
1 Halo 2 Guild Wars 3 Counter Strike: Source 4 Morowind 5 Utopia (Online Game)
I know how to use PHP very well and I want to learn how I can implement XML into it. This is because I am planning on developing multi-part program with one main core. Can any one tell me good books which can help me learn XML and how to …
Hi I made a function which is suppose to send email, only problem is that I can send the email but its blank so can anyone tell me what I am going wrong. [code] //Function that send multipart emails function email2($TO, $PREMADE, $FROM = false) { //headers for emails //create …
Hi I am you can say a novice website designer and I made a layout for my website and it works in some browser and have issue in other. Here is a link to where you can see my template: [URL]http://71.185.46.175:8080/[/URL] If you dont feel safe opening the link or …
One way I can think of which can prevent a novice computer literate person is by using a No Right Click Java Script. This method can only slow down a person from viewing your source as there are many other way to get the source. Also you may want to …
I dont really have code for this but here it goes. First of all I have basic knowledge of JavaScript and have moderate knowledge of php. What I am trying to do is when someone click on a link. It will display a hidden form via Javascript modifying CSS(which I …
Here is a function I made: [code]function dis_sub(CID,ALI,NAME,PIC,EID) { SUB_CAT+CID.ALI.value = ALI; SUB_CAT+CID.NA.value = NAME; SUB_CAT+CID.IDD.value = EID; }[/code] It is saying that I have syntax error right after the = sign. Also SUB_CAT is not a variable.
You may want to phpinfo your server and check what the value for post_max_size is set to. if it is set lower then your picture size then there is your problem. I think Default for php is 2MB but not sure.
I made a small program which will encrypt my files using xor encryption method. It work but to encrypt 11MB file it take like 20 mins. any suggestions on how to make it faster would be nice. This is the function that encrypt (this is a thread): [code] [COLOR=#0000ff][COLOR=#0000ff]public[/COLOR][COLOR=#0000ff]void[/COLOR][COLOR=#000000] encrypt()[/COLOR] …
I am new at c# so i am not even sure if this is possible. This application i am making is a win app and its purpose is to make xor encrypted file. when i try to encrypt large file it takes long time so i am trying to make …
Problem: I have two tables and those two table have one field in common which is "S_ID" first table have 2 fields: "S_ID", "T_ID" second table have these fields: "S_ID", "First", "Last" ---------------------------------- What i want to do is that i need to extract the the field "S_ID" from the …
well I am using this code to format my date and time: [php]$date = date("m/d/Y g:i:s A T"); echo $date;[/php] and it prints out: [code]08/10/2006 4:07:37 AM GMT[/code] The problem is that it is printing the time in GMT which is wrong as I want it to tell me the …
well the problem i have is that when i use tables on every diffrent screen the cells change their shape to fit the screen so all the text is wraped accordingly. is it possible to stop table from shrinking at a certain point so that the text wont wrap more …
lets say i have a file named test.html and i want to store all the text of this file into a variable named $email. how would i do that and be able to change few things in text with string replace command. I am just trying to make html email …
I have three question: 1) how can i post a variable which is an array? 2) Lets say i post declare a variable by typing: [php]$_POST['test'] = 'hello';[/php] would it transfer that variable to next page. 3) is it possible to post variable with the header command: [php]header("Location: index.php?Successful=UPDATED&hello=yes");[/php] into …
I am trying to get URL from address bar and store it in a variable. Anyone know how it may be done as i was looking on php.net and couldn't find any function that grab URL form the address bar.
I think is problem may be more connected to HTML rather then php. The issue I have is that I have a my sql db and in one of the colume in which there is a string like: [code]Testing 1 2 3[/code] but when I extract the variable all I …
Any 1 know if there is a way to stop this popup for comming: I used this program Hijackthis and here is its log: Logfile of HijackThis v1.99.1 Scan saved at 5:56:11 PM, on 6/13/2006 Platform: Windows XP SP2 (WinNT 5.01.2600) MSIE: Internet Explorer v6.00 SP2 (6.00.2900.2180) Running processes: C:\WINDOWS\System32\smss.exe …
Well my question is that is it possible to use image swap without having to put a lot of code in the head of the page. well basically i dont want to defien my images in the head instead i want to define them right before the link and the …
What i am trying to do is to extract data from mysql table into a .CSV file and then after editing upload it again to update my DB. I am planning on using php but i at the time dont know which command will convert mysql table into .CSV and …
Well i trying to make a logout link that will exit frames to go to normal html page: when someone logout this command is run 2 transfer to next page: [PHP]header("Location: index.php?result=0"); [/PHP] what i am trying to do is exit the frames so that the index file is showed …
OK I wrote this query but i keep on getting error on it: [PHP]$query2 = "INSERT INTO ATTENDANCE (Class,Time,T_User_Name,S_Number,Absent,Date) VALUES ('$Class','$S_Type','$_COOKIE[User]','$S_Number','1','$Date')"; [/PHP] the error i get from php logs is: [28-Dec-2005 17:51:07] PHP Parse error: parse error, unexpected T_VARIABLE in /test/teachers/take.php on line 27 ------------------------- line 27 is the query …
Can anyone tell me where i can find better instructions for installiation of php on a Fedora 4 Linux as the ones that are provided on php.net are not very clear.
I made this function and the problem i have is that the Variavle $Time is not available to the whole program and what i mean by that is the function runs but doesn't set the variable to the whole thing and i have tested the function by doing echos. Is …
I made this code so that it can tell the program to get Morning (AM) or evening (PM) INFO [PHP] function Tms() { $time = time(); $time1 = mktime(12,00,00); if ($time > $time1) { $Time = 'AM'; } else { $Time = 'PM'; } echo $Time; echo "<br>"; echo $time; …
I am using somone's code as example because i dont really understand it. This is a small part of the code which i am using as example. Here is the code: [PHP] class MySQLDB { var $connection; //The MySQL database connection var $num_active_users; //Number of active users viewing site var …
Hello Can someone explain this code to me as i am a total newb when it come to classes. [PHP] class MySQLDB { var $connection; //The MySQL database connection var $num_active_users; //Number of active users viewing site var $num_active_guests; //Number of active guests viewing site var $num_members; //Number of signed-up …
First of all i am new to PHP Session. THE PROBLEM: I do session_start(); command at the begening of every page so that php uses session but what i also what it to do is that if that person closes the browser and returns back to same website it should …
I m not sure if this is right question to ask. I am trying to get php to make PDF file and email it to some one when they enter enough information. is it even possible as i have no idea how would you do this...
I have new with using sessions and i have a question to ask. I was wondering if it is to delete session if some one exit browser as i want to make my site secure so that some1 else dont sit on the comp and have all access to some1s …
Hello all what i am really trying to do is to use POST method to send info to next page with just HYPERLINK; Here is what i want: Get method: [CODE] <a href="http://www.someting.com?date=9/15/05&age=21">age and time</a> [/CODE] I want this to be in POST method without using forms. also i am …
HI I am pritty new with php but ok with it and what i am trying to do is making an inventory control system which is at time in xls file and want to transfer it to DB. what the problem is that i have never done this kind of …
I am really not sure what kind of problem this is but my guss is that it has to do something with php here is the code: [PHP]echo "<tr> <td colspan=\"3\" align=\"center\">"; for ($I=0;$I<$nrow;$I++) { $row1 = mysql_fetch_array($result); extract($row1); echo "<a href=\"./result?result_catalog=$TBL\"><img border=\"0\" src=\"http://www.eezs.com/images/$Picture\" width=\"111\" height=\"90\" /></a>"; if ($I == …
Hi Problem is that i run window xp and lately it is slowing down and messing up my guss is that the registry is really messy as i download and uninstall prog and kno that registry file dont delete even if i uninstall the program so any one kno a …
Hi I am new to php but i think this will work: [PHP]<? //database connection include 'includes/database.php'; //search query $query = "SELECT * FROM stories WHERE SOUNDEX(title) = SOUNDEX('$keyword') OR SOUNDEX(author) = SOUNDEX('$keyword') OR SOUNDEX(content) = SOUNDEX('$keyword'); $result = mysql_query($query) or die("Some error"); $nrow = mysql_num_rows($result); //table and loop for …
HI, I need to know how to display a variable from DB that has antoher variable in it: here is what i mean ($Description) is an variable that contain this html code: [HTML]<table height="688" width="500" border="0"> <tbody> <tr> <td width="82%" height="20"><strong><font face="Arial">$Name</font></strong></td> <td height="20"><strong><font face="Arial">$Item_num</font></strong></td> </tr> <tr> <td colspan="2" height="380"> </td> …
Well i should say i dont even kno JS and want to learn it. Can some one tell me some good books to learn JS for a newb person who you can take as a compleatly new to coding even thought i know some PHP. I have looked at some …
Is it possible to format text with php as in whenever php sees ~ in text it would put <br>. I am not sure if it is possible as i am new to php.
Ok I am making an admin part of the website and what I need to do is to be able to change the item detail while able to see the result on the fly. What I am really trying to do is to store my item detail into one columm …
Hi I am probally not the best person to help you with this but I think I know where the problem is. Try this code: [PHP] if ($_POST['ClientLessVPN'] == 'Yes') { $body2 = "Clint-Less VPN\n"; } [/PHP] I am pritty sure that this should fix the problem...
I am new at php so this might me a dumb question. Is it possible to use part of an include file another words i make an 1 big include file and only use parts of it as needed and not make many include files. Also is it possible to …
This sql command is for PHP but this is what happen to it after php had made chenges: [CODE]UPDATE Catalog SET Table='Harrow_VH' WHERE Name='Variable Action Harrow'[/CODE] I get this error both places php and mysql client it self: MySQL said: You have an error in your SQL syntax near 'TABLE …
I have learned php this summer so i am pritty new and need some help. what i am trying to do is that i have an item with an item# and a lot of other info from my db and would like to transfer that info in the array in …
The End.
ashneet