39,320 Topics

Member Avatar for
Member Avatar for tcollins412

how do you change the timeout of a session? can you do something in the php.ini?

Member Avatar for Stefano Mtangoo
0
83
Member Avatar for khlouk rada

hello! I'm new to the forum. I really need help from all of you. I have a form in an html page "index.html" like below: [CODE]<form action="login.php" method="post">...[/CODE] How can I prevent users from viewing the login.php in the action attribute of the form tag above by just typing its …

Member Avatar for khlouk rada
0
98
Member Avatar for fuston05

I set my cookie on a previouse page, this page here i call it and set it to a var, then when i echo it it says undefined var. Just curious.. im missing something simple here.. not sure what it is. Cookie is set, i verified that. and if i …

Member Avatar for fuston05
0
113
Member Avatar for joban.ali

Hi I just wanted some advice regarding my login script. Example: I have 2 types of user "Student" and "staff" I would like both types of users which are in different tables to log into one login form, at the moment I have 2 separate scripts. The general assumptions apply …

Member Avatar for Zagga
0
113
Member Avatar for scarcella

Hey guys i need help itegreating OpenCart into my existing website!!! If you guys can help me please!! Here is the website frontend: [url]http://www.peacockinkcartridges.com/new_site/[/url] But i need to have the opencart to products and stuff to display in the Catalogue page. Thanks, Marais

0
102
Member Avatar for itisnot_me

ok so what i am trying to do is loop through the POST data to create an array of the data to be used later. this is what i have but when i use is_array it returns not an array. i swear it was working at one point but now …

Member Avatar for itisnot_me
0
110
Member Avatar for maxbalboa

Hi Everyone, I got a strange problem with session. Session variables that I define in a page with "www" prefix in the domain name for example http://www.foo.com/page1.php for some reason can't be recognized in page2.php if I remove the "www". But if I use "www" like http://www.foo.com/page2.php, it works just …

Member Avatar for mayureshgoyal
0
556
Member Avatar for rajeesh_rsn

Hi friends, I need a simple help or query for my search option in my website. I had a table which storing movie information. The rough form of table structure as follows. Movie name | Director | Genre | Producer | Story line | Cast ------------------------------------------------------------------- | | | | …

Member Avatar for jkon
0
103
Member Avatar for Scharl

I am using libhash++'s getHashFromFile() as seen in [url=http://hashlib2plus.sourceforge.net/example.html]this[/url] example to get the hash from files. When the file is a simple text file I get the same result as I get with md5_file() in PHP and the program [url=http://www.pc-tools.net/win32/md5sums/]md5sums[/url], but when it is a binary file I don't get …

Member Avatar for rbross
0
84
Member Avatar for pzuurveen

Hi I've writen a server is PHP that i want to run every min. so i can do something like in cron [CODE]*/1 * * * * lynx -dump http://www.somedomain.com/myserver.php[/CODE] But i want to make sure there only 1 running. The web tells met to check for an prosesid but …

Member Avatar for rbross
0
376
Member Avatar for kuink

Hi guys, I'm new in php and i'm having a problem. My problem is, how to print and save to database. here is the schema, [CODE] 1 / \ 2 3 /\ /\ 4 5 6 7[/CODE] what is php algorthym for that case?. 1 is sponsor for 2 and …

Member Avatar for manibcaa78
0
122
Member Avatar for kkjay

Hi guys, im trying to develop a social networking application and im having some trouble showing a user's selected avatar. Every users can upload pictures and there is a field called avatar and when this is set to 1, it is the users avatar pic. Only one pic can be …

0
91
Member Avatar for JamesWoodward

Hey guys, I have been asked to write a program in php which is to play hangman but used in messenger chat. We are using imified to create our "bot". The game to me sounds backwards to normal but here is the deign brief. . In your game of hang-man, …

Member Avatar for Alan.Smith
0
168
Member Avatar for krusty511

I need to print from a PHP program directly to a printer on the user's computer (if there is one). I've used JS page print, but this is somewhat clumsy.

Member Avatar for Bestwebdesign
0
92
Member Avatar for yamot47

[CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script type="text/javascript"> function buttonPress(str) { alert(str); } </script> </head> <?php session_start(); error_reporting(E_ALL ^ E_NOTICE); include "dbconfig.php"; $id=$_SESSION["valid_user"]; ?> <body> <form name="Item Search" method="post" action="search.php"> Item Search:<br> <label> <input name="swords" type="text" size="30" maxlength="30"> …

Member Avatar for yamot47
0
196
Member Avatar for accra

Hi to all, am having problem doing this. i want to show a link and not a button.when the link is clicked,then the <form></form> content is echoed for the user to make a choice,this should not open a new window,all this should take place on the same page.another problem i …

Member Avatar for accra
0
171
Member Avatar for eltonpiko

hi im working on a project for a friend to modified an existing website with a google map api.the site has some menu that link to a specified cluster on the google map and i want to add some more menu and link it to a marker on the map …

Member Avatar for pritaeas
0
142
Member Avatar for himanshumishra

Dear All, I wish to print my records of following code in table format echo "LOAN NO = &nbsp;$title<br>" ; echo "NAME = &nbsp;$title1 <br>" ; echo "ADDRESS = &nbsp;$title2 <br>" ; echo "AREA OFFICE CODE = &nbsp;$title3 <br>" ; echo "LINK AO = &nbsp;$title4 <br>" ; echo "APPLICATION NO. …

Member Avatar for himanshumishra
0
94
Member Avatar for TySkby

Hi All, I'm sorta stuck on this one. Hopefully some of you folks can help me out... My question in a nutshell: Is there a way to have PHP extract all of the files from an archive without preserving the directory structure? Extra Info: A site I'm working on allows …

Member Avatar for TySkby
0
161
Member Avatar for Xtremefaith

So ultimately my goal is this: I have a table of info (from mySQL database) being displayed on my page, btracker.php. On this page is a pulldown menu for the month and the year (I need both to work but for now I'm [I]just trying to solve the [B]month[/B][/I]). [CODE=html] …

Member Avatar for Xtremefaith
0
151
Member Avatar for I.am.someBody

excuse me, well, i just want to ask if it's possible to highlight the textbox and display its error in php or if not, is there any way that i can do to make it possible but still with php?.. can somebody pls tell me how? thanks a lot! :) …

Member Avatar for zizuno
0
50
Member Avatar for bangla

Hi, 1. When i type [url]http://localhost[/url], i get the XAMPP page. 2. I started eclipse.exe. Created a new php project(workspace- C:\Program Files). also create a simple hello world php file. 3. eclipse and xampp both saved in c/program files. 4. opened up C:\Program Files\xampp\apache\conf\httpd.conf. In the httpd.conf file, i put …

Member Avatar for mrjimoy_05
0
78
Member Avatar for JBLDW

What is the purpose/point of [B]echo[/B], [B]endif[/B], and [B]return[/B]? Also, whilst on this subject, why should I enclose values in [B]" "[/B] when enclosing them in [B]' '[/B] works just as well? I know [B]echo[/B] can be used in place of print, but why and when should I use [B]echo[/B] …

Member Avatar for JBLDW
0
154
Member Avatar for trellonoob

Hey guys I'm hoping someone can help me out. I have an admin page with the ability to update existing data from a table, I have textboxes being created for each record(this works) but its the submit/update script that doesnt work. What it does right now is nothing, i hit …

Member Avatar for nuttyniall
0
291
Member Avatar for CFROG

I'm trying to output the results of an array to a table. To be more specific, I'm trying to output pictures ... let's say 5 pics per row for example. Below each pic I'd like to display a few options like delete, etc. I'm not looking for the answer, just …

Member Avatar for ijn1
0
281
Member Avatar for xagutxu

Hi, everybody: I have written an include file in my php file "main.php", with and include "ip.php", which is: <?php function getRealIpAddr() { if (!empty($_SERVER['HTTP_CLIENT_IP'])){ //check ip from share internet $ip=$_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])){ //to check ip is pass from proxy $ip=$_SERVER['HTTP_X_FORWARDED_FOR']; } else{ $ip=$_SERVER['REMOTE_ADDR']; } return $ip; } ?> …

Member Avatar for xagutxu
0
84
Member Avatar for mithesh

hi I need to display date which is stored in database and need to format and display on web page the current format is (Y-m-d) I need to display as (d-m-Y); On the web page pls anybody help me with the php script I will paste my code: [CODE]<?php $d=$_POST['sdd']; …

Member Avatar for antonyruban
0
8K
Member Avatar for lttleastig

Hello guys I wanna make a registration page for a game which uses SQL DB does anyone know how to encrypt a pass so that it ends up like this? [CODE]0x7BF1EA5EBADD9D7DD2D43E25ABEBCD100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000[/CODE] btw the column that the pass is sored in is BINARY that converts into "999momo999" i think its md5 …

Member Avatar for lttleastig
0
111
Member Avatar for lttleastig

[CODE]Fatal error: Call to undefined function mssql_connect() in C:\xampp\htdocs\reg.php on line 3 [/CODE] it just comes up with that and this is the only code i have [CODE]<?php session_start(); mssql_connect("Philip-Pc\DRAGONICA", "sa", "123456"); ?>[/CODE] any ideas?

Member Avatar for lttleastig
0
73
Member Avatar for sujitrulz

Hi, Can any body provide me some code reference regarding,how to limit execution of a function to a registered user everyday for n number of times.Like user can only send 20 mails everday.so allowing execution of mail function for only 20 time everday and resetting the counter the next day …

Member Avatar for pritaeas
0
79

The End.