[PHP] pls help with session
Dear Sir/Madam, I've been coding session for quite sometime, but this is the first time i encounter such problem... index.php(login form) - login.php (verifies and set session userkey=1) - main.php (check session userkey) if check session userkey fail, gets redirected back to index.php in the login.php page, i've tested out session_is_registered(userkey); it was TRUE. but when i redirect it to main.php and did a checking on session_is_registered(userkey); it return FALSE... i've session_start(); at every start of the php page... what's wrong? I've output session not set on main.php when the userkey session is not set. when i click on back button and retry login, it works!!! what happened? please check my code again... ==login.php== include lib/mysql.php; include lib/u007lib.php; // connecting to mysql db , my own lib... $rs = getdb(); $rs-query(select * from ct_user where companyid like ' . $HTTP_POST_VARS[companyid] . '); $rs2 = getdb(); $erron = ; if(!$rs-eof) { // if company records found... $rs2-query(select * from ct_login where loginid like ' . $HTTP_POST_VARS[loginid] . ' and userid= . $rs-fields(id) . and pass like ' . $HTTP_POST_VARS[password] . '); if(!$rs2-eof) { // if loginid and password match... session_start(); // session key to be checked... $userkey = $rs2-fields(lvl); $userid = $rs2-fields(id); $userloginid = $rs2-fields(loginid); $usercomid = $rs-fields(id); $usercompany = $rs-fields(company); $usercompanyid = $rs-fields(companyid); // registering session key session_register(userkey); session_register(usercomid); session_register(usercompany); session_register(usercompanyid); session_register(userid); session_register(userloginid); setcookie(companyid, $HTTP_POST_VARS[companyid], time()+(60*60*24*30)); setcookie(loginid, $HTTP_POST_VARS[loginid], time()+(60*60*24*30)); //redirecting to main.php //header(location: main.php); exit(); if (session_is_registered(userkey)) { header(location: main.php); return; } else { echo session not set!; } // always return TRUE... } else { $erron = Invalid User / Password; } } else { $erron = No Such Company ID; } ? =end of login code =beginning code of main.php= ? session_start(); include lib/u007lib.php; include lib/mysql.php; // check session userkey if (!session_is_registered(userkey)) { echo session not set!; exit(); } // RETURNED FALSE HERE? Y? if($HTTP_SESSION_VARS[userkey]-0 1) { header(location: ./); return; } ? ==end of main.php code= best regards, -- James Tan IT Technical Specialist NextMove Technology Sdn. Bhd. [EMAIL PROTECTED] Tel: 03-5192 1366 Fax: 03-5192 1280 Lot 2-2, Jalan SU6A, Persiaran Tengku Ampuan, Lion Industrial Park, Section 22, 4 Shah Alam, Selangor D.E. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] session not set, server configuration?
Dear Sir/Madam, I've been trying out my script, it works fine so far on my pc with apache 1.3.26 with php 4.3.0 but when i uploaded to another server with http://www.mercstudio.com/test.php the session seems to be unstable. sometimes it works, sometimes not. http://www.mercstudio.com/hoteldemo/myadmin/ when i set the session key called userkey it works fine on my pc. but when i upload them on the server, some pc r able to login, but most of the pc did not get to login. the login check with mysql database went fine, but the session did not set on some pc attempting to login index.php - login.php (set userkey=1) - main.php (check session userkey 0) if session userkey is not set, the user will be brought back to index.php here's my login code: ==login.php== include lib/mysql.php; include lib/u007lib.php; // connecting to mysql db , my own lib... $rs = getdb(); $rs-query(select * from ct_user where companyid like ' . $HTTP_POST_VARS[companyid] . '); $rs2 = getdb(); $erron = ; if(!$rs-eof) { // if company records found... $rs2-query(select * from ct_login where loginid like ' . $HTTP_POST_VARS[loginid] . ' and userid= . $rs-fields(id) . and pass like ' . $HTTP_POST_VARS[password] . '); if(!$rs2-eof) { // if loginid and password match... session_start(); // session key to be checked... $userkey = $rs2-fields(lvl); $userid = $rs2-fields(id); $userloginid = $rs2-fields(loginid); $usercomid = $rs-fields(id); $usercompany = $rs-fields(company); $usercompanyid = $rs-fields(companyid); // registering session key session_register(userkey); session_register(usercomid); session_register(usercompany); session_register(usercompanyid); session_register(userid); session_register(userloginid); setcookie(companyid, $HTTP_POST_VARS[companyid], time()+(60*60*24*30)); setcookie(loginid, $HTTP_POST_VARS[loginid], time()+(60*60*24*30)); //redirecting to main.php header(location: main.php); exit(); } else { $erron = Invalid User / Password; } } else { $erron = No Such Company ID; } ? =end of login code =beginning code of main.php= ? session_start(); include lib/u007lib.php; include lib/mysql.php; // check session userkey if($HTTP_SESSION_VARS[userkey]-0 1) { header(location: ./); return; } ? ==end of main.php code= please advise, thank you -- James Tan IT Technical Specialist NextMove Technology Sdn. Bhd. Tel: 03-5192 1366 Fax: 03-5192 1280 Lot 2-2, Jalan SU6A, Persiaran Tengku Ampuan, Lion Industrial Park, Section 22, 4 Shah Alam, Selangor D.E. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: session not set, server configuration?
Dear Noel Wade, I've been coding session for quite sometime, but this is the first time i encounter such problem... in the login.php page, i've tested out session_is_registered(userkey); it was TRUE. but when i redirect it to main.php and did a checking on session_is_registered(userkey); it return FALSE... i've session_start(); at every start of the php page... what's wrong? I've output session not set on main.php when the userkey session is not set. when i click on back button and retry login, it works!!! what happened? please check my code again... ==login.php== include lib/mysql.php; include lib/u007lib.php; // connecting to mysql db , my own lib... $rs = getdb(); $rs-query(select * from ct_user where companyid like ' . $HTTP_POST_VARS[companyid] . '); $rs2 = getdb(); $erron = ; if(!$rs-eof) { // if company records found... $rs2-query(select * from ct_login where loginid like ' . $HTTP_POST_VARS[loginid] . ' and userid= . $rs-fields(id) . and pass like ' . $HTTP_POST_VARS[password] . '); if(!$rs2-eof) { // if loginid and password match... session_start(); // session key to be checked... $userkey = $rs2-fields(lvl); $userid = $rs2-fields(id); $userloginid = $rs2-fields(loginid); $usercomid = $rs-fields(id); $usercompany = $rs-fields(company); $usercompanyid = $rs-fields(companyid); // registering session key session_register(userkey); session_register(usercomid); session_register(usercompany); session_register(usercompanyid); session_register(userid); session_register(userloginid); setcookie(companyid, $HTTP_POST_VARS[companyid], time()+(60*60*24*30)); setcookie(loginid, $HTTP_POST_VARS[loginid], time()+(60*60*24*30)); //redirecting to main.php //header(location: main.php); exit(); if (session_is_registered(userkey)) { header(location: main.php); return; } else { echo session not set!; } // always return TRUE... } else { $erron = Invalid User / Password; } } else { $erron = No Such Company ID; } ? =end of login code =beginning code of main.php= ? session_start(); include lib/u007lib.php; include lib/mysql.php; // check session userkey if (!session_is_registered(userkey)) { echo session not set!; exit(); } // RETURNED FALSE HERE? Y? if($HTTP_SESSION_VARS[userkey]-0 1) { header(location: ./); return; } ? ==end of main.php code= best regards, James Noel Wade [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... James - Don't know how you're working with Cookies and sessions for sure, but the default / easy way to check for an established session is to put session_start(); at the top of every page that's going to access the session variables. That will check for an established/open session and make the registered session variables accessible to the page. Then a logical check is as simple as using session_is_registered() like this: if (session_is_registered(registered_variable_name)) //do something here if the person has already registered their session else //session not registered! Hope this helps! Take care, --Noel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Installation error..
hi Ryan, did u make clean on your php 2? i can't recall, u must delete a file config.*** (i can't recall the extension...) b4 u reconfigure... refer in the php install.txt hope it works :) regards, James Ryan Christensen wrote: Quick question.. I'm installing PHP 4.0.6 on a fresh install of Trustix 1.2. It compiles fine (I've even slimmid down the modules I'm compiling it with down to just apxs+mysql), but when I try to restart apache, it gives me the following error: Starting httpd: Syntax error on line 241 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/libphp4.so into server: /usr/lib/libimap.so: undefined symbol: SSL_CTX_set_tmp_rsa_callback Now, it mentions libimap.so, which is odd. after getting this error the first time I tried recompiling (after a make clean.. which should clear out the previous config, right?) Thoughts? Ryan -- ---PHP Rules--- James Tan Web programmer(php, c/c++, asp) Irc: Unknown007(dalnet) Country: Malaysia Clients List: http://www.ogaya.com http://www.tahbauto.com http://www.aseanvalues.com http://www.e-cpo.com http://your_own_portal? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: How to destroy a $variable
hi gerald, ok.. u could assign values to form input... eg: $myname= ; input type=text name=name value=?=$myname? ok.. for the thank you? simply do a if syntax to check if it's been submited... and put in a alert for ur javascript.. eg: ? ... //do your statement to put in the values ? html... ? if($submited) { ? script alert(thank you for your submittion... ) ; /script ? } ? hope it works :) Gerard Samuel wrote: Ok I have a form with a $PHP_SELF target, and I enter parts of the form when they enter information if something is wrong with their input. Now what I would like to do is destroy all the variables when the form is correct and posted, so that when the page comes back up again, I post a thank you message, and the form is blank. Just a thought. I tried setting strings to empty after data is submitted to the database like so $Age = ; etc at the bottom of the file. Bounce some ideas of me. Thanks -- ---PHP Rules--- James Tan Web programmer(php, c/c++, asp) Irc: Unknown007(dalnet) Country: Malaysia Clients List: http://www.ogaya.com http://www.tahbauto.com http://www.aseanvalues.com http://www.e-cpo.com http://your_own_portal? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Can anyone explain what this does?
hi kurt lieber, ok, did u gone through the tutorial on oop with php?? $this stands for the class reference and file is one of the variable inside the class... u can specify this only in the function of the same class... regards, James Kurt Lieber wrote: I'm sure this is a simple one, but I've never seen it before: $this-file = $file; I'm specifically confused about the - operator and what that does. I looked in the online documentation under operators, but didn't find anything. Ideally, if someone can point me to the location in the documentation that talks about this so I can get more info, I'd appreciate it. Thanks. --kurt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: lack of error
hi jon yaggi, i've notice some _ in your link, is the get header sent correctly?? u did not put in your source here, pls do... we are helpless to u without your code... regards, James Jon Yaggie wrote: i am generating an image. Everything is going fine except this one image. it shows only as a broken image. even if you go directly too the file all you get is a broken image. with out an error of some sort i am baffled where to start. any one got an idea what may cause such? here is the url you can try it. http://www.hvacsites.com/SiteBuilder/logo.php?tmpcolor=_dredlogo_text=sdfdsdfasfdlogo_style=1 Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code 100 bugs in the code fix one bug, compile it again 101 little bugs in the code 101 little bugs in the code . . .' And it continued until they reached 0
[PHP] Re: Problem Inserting Array of Rows from form
dear david, did u know u do not need to put single quote to enclose number type value?? notice ur field select syntax: INSERT INTO songs VALUES (' 1 // -- 1 is not enclosed with end quote... thus makes only 5 fields, not 6 , blah', ' ***', ' 45', ' 2', ' ') id[0]=: 2 try INSERT INTO songs VALUES ('1', 'blah', ' ***', ' 45', ' 2', ' ') id[0]=: 2 hope it helps, regards, James David wrote: I am trying to insert an array of rows or values from a PHP form into a MySQL database. There are six columns in the table songs: id, songname, rating, video, album_id, movie. Here is what I get when I submit the form Add songs for Record Array INSERT INTO songs VALUES (' 1, blah', ' ***', ' 45', ' 2', ' ') id[0]=: 2 this is debug code INSERT Failed, check the code.this is debug code The problem seems to be with this part: for ($i=0; $i= $songsinalbum; $i++) { $vals .=, ('$id[$i], $songname[$i]', '$rating[$i]', '$video[$i]', '$album_id[$i]', '$movie[$i]'); } // $vals=preg_replace(^,, , $vals); $vals=preg_replace('/^,/', '', $vals); // chop leading comma Complete code: When the user presses submit on the form this part executes: mysql_connect(192.168.0.1, mysqluser, mypassword); $vals=' '; for ($i=0; $i= $songsinalbum; $i++) { $vals .=, ('$id[$i], $songname[$i]', '$rating[$i]', '$video[$i]', '$album_id[$i]', '$movie[$i]'); } // $vals=preg_replace(^,, , $vals); $vals=preg_replace('/^,/', '', $vals); // chop leading comma $qry=INSERT INTO songs VALUES $vals; echo $qry; $res=mysql_query($qry); Here is part of the form: ? $i = 1; while ($i = $songsinalbum) { ? TD align=rightID: /TDTDinput type=text name=id[] size=3br/TD TD align=rightSongname: /TDTDinput type=text name=songname[] size=30br/TD ? $i++; }; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: access pop3 without IMAP
hi prachait saxena, I'm trying to build the same too... u can use the socket function to manupulate pop protocol at port 110 refer to the rfc link in the documentation for pop :) hope it helps... regards, James Prachait Saxena wrote: Hi, I want to check mail of a pop account. without using imap. Can any one know how to do that. kindly send it in details. bye -- Prachait Saxena Offical ( [EMAIL PROTECTED] ) Personal ( [EMAIL PROTECTED] ) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: REGEXP
hi,, u could try using explode function eg: arrayresult = explode(string, separator); cont = explode(thestring, \); echo cont[0] ; // result as Content-Type: multipart/mixed; boundary= echo cont[1]; //result as B42DA66C4EC07C9B572A58FC echo cont[2]; // array index 2 will be nothing.. null or hope it works.. regards, James Adrian D'Costa wrote: Hi, I am trying to capture the Header from a mail for my webmail using php and pop3. The header is something like this: Content-Type: multipart/mixed; boundary=B42DA66C4EC07C9B572A58FC When I use preg_split(/[\d;]*/, $buffer), I get Content-Type: multipart/mixed; What I want is to return the whole line split by the ;. I usually try to avoid regexp (too lazy) but now I want to use it. The final result I would need is: B42DA66C4EC07C9B572A58FC so that I can search in the body of the message for the rest of the parts. Any pointers would be helpful. Adrian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Australian Developers -- Contract/Partnership Oppourtunity
hi, I'm interested in the position, would it be ok if I were in the position to do it from distance?? I'm currently living in malaysia... I could do php with mysql. I could setup apache , mysql and php with source on the unix environment as well... php have been my major for about several months ago.. I've developed a payroll system with php. hope to hear from you soon, thank you regards, James Justin French wrote: Hi all, I'm currently putting in a tender together for a large web project, using PHP and MySQL, but I believe my skills may not quite be upto scratch (or at least my development speed / quality of code), so I'm considering finding a partner for the project. They have a realistic budget, realistic development time-frame, and there are enough components to the project to serve as an excellent trophy to show off our/your capabilities. I'm only interested in Melbourne (Australia) based PHP/MySQL developers, capable of writing efficient, clean code for applications such as: o detailed content management o intricate membership management o e-commerce (URL session based, not client side/cookies) o statistics / tracking gathering and analisys The developer must be able to show thier ability with real world examples, and the ability to write portable / reuseable code rather than one-off applications is a must. Understanding of the balance between browsers / design / information / code would be an added bonus. Essentially I'm looking for a freelancer / contractor available to work weekdays (even from home a lot of the time), and whilst this is a one-off project, I'm keen to find a long term business partner to persue similar projects full time. Terms / hours will be decent and negotiable for the right person. PLEASE no time wasters. Send BRIEF resume / details to [EMAIL PROTECTED] Justin French Creative Director Indent.com.au [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: OOP Problems
oh, i didn't realise how php is as flexible as vb :) yeah.. ops, missed out the owner-test1 does not exist :) thanx for tips :) [EMAIL PROTECTED] wrote: Hi u007! On Sun, 15 Jul 2001, u007 wrote: hie.. it's simply u did not declare ur class variable... well, actually you don't have to declare them, you can add members as you go (as opposed to C++ for example) class ctest { var $owner; function ctest($owner) { $this-owner = $owner; } function foo() { echo test!br; } } hope it works :) regards, James Andrew Kirilenko wrote: Hello! I have following problem: ? $container = new ccontainer(); $container-init(); $container-test1-foo(); $container-test2-foo(); $container-test2-owner-test1-foo(); $container-test1-owner-test2-foo(); class ccontainer { function ccontainer() { } function init() { $this-test1 = new ctest($this); $this-test2 = new ctest($this); } } class ctest { function ctest($owner) { $this-owner = $owner; } function foo() { echo test!br; } } ? Output of this script is: --- test! test! test! Fatal error: Call to a member function on a non-object in c:\www\a.php on line 8 --- How to solve this problem??? Best regards, Andrew Kirilenko, Senior Programmer / System Administrator, Internet Service. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Select IN array?
dear chris, mysql does not support 'in' clause at the momment... the only way to this is to use the loop to generate the sql syntax.. orr.. use the implode function... to join the array into 1 string separated by the first parameter... $catsql = implode(or cid=, $catids); $catsql = ((strlen(catsql)0)? substr(catsql, 3, strlen(catsql)): ); $catsql = select * from categories where . $catsql; Chris Lott wrote: I have an array of id numbers ($catids). I would like to select from the mysql database all records where cid is in that array. This syntax fails: select * from categories where cid in $catids What is the correct way to do this? It can be done outside of a loop, can't it? c -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] url without a query string?
heh.. y not u use the post method?? use a form.. put in the hidden form... and document.theformname.submit(); eg: form name='theform' action='.../index.php' input type='hidden' value='1' /form scriptdocument.theform.submit();/script Jon Yaggie [EMAIL PROTECTED] wrote in message 037601c1083b$b6583010$0100a8c0@piiimonster">news:037601c1083b$b6583010$0100a8c0@piiimonster... problem with a session is the link originates at another domain. so as far as i know i can pass a session between domains. yes js is not a problem except i dont know it. and refrshing is possible because on first load i will set up a session. can you specficate a url to refresh?? so that i cna refresh it without the query string? Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code 100 bugs in the code fix one bug, compile it again 101 little bugs in the code 101 little bugs in the code . . .' And it continued until they reached 0 - Original Message - From: James Tan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 09, 2001 12:37 PM Subject: Re: [PHP] url without a query string? hie... if i'm not wrong.. u could try using session :) that way, ucan have index.php s u ish :) --login.php-- session_start(); $id = 1; sessoin_register(id); --index.php-- session_start(); $memid = $id-0; // **statement** hope it helps.. good luck :) regards, James Jon Yaggie [EMAIL PROTECTED] wrote in message 033901c10832$68f072a0$0100a8c0@piiimonster">news:033901c10832$68f072a0$0100a8c0@piiimonster... i have nothing to do with the popup stuff :) - Original Message - From: Ben Bleything [EMAIL PROTECTED] To: 'Jon Yaggie' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, July 09, 2001 11:37 AM Subject: RE: [PHP] url without a query string? Yikes. Popups and porn. Anyhoo, I guess I can't help you. I just don't know enough about the inner workings of http. Sorry = Ben -Original Message- From: Jon Yaggie [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 08, 2001 9:34 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] url without a query string? i mean this is coming from a hardcoded link. example www.design-monster.com links to www.site.com/index.php?id=4 but site www.hopeless.com links to www.site.com/index.php?id=2 both these then have a membership link on them and the memebership service uses the refering url. but the referer needs to be exact. so the query string needs to be stripped some how? Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code 100 bugs in the code fix one bug, compile it again 101 little bugs in the code 101 little bugs in the code . . .' And it continued until they reached 0 - Original Message - From: Ben Bleything [EMAIL PROTECTED] To: 'Jon Yaggie' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, July 09, 2001 11:25 AM Subject: RE: [PHP] url without a query string? A shot in the dark would be to use HTTP Post instead of Get... but, I don't know http. -Original Message- From: Jon Yaggie [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 08, 2001 9:22 PM To: [EMAIL PROTECTED] Subject: [PHP] url without a query string? the problem i have a page that uses a query string to determine content. ie index.php?id=2 in this page there is a link to a memebership area that uses a remote service. this service requires that thee be the exact same refering url. is the refering url must always be index.php. how can i do this? can i do this? Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code 100 bugs in the code fix one bug, compile it again 101 little bugs in the code 101 little bugs in the code . . .' And it continued until they reached 0 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] url without a query string?
hie... if i'm not wrong.. u could try using session :) that way, ucan have index.php s u ish :) --login.php-- session_start(); $id = 1; sessoin_register(id); --index.php-- session_start(); $memid = $id-0; // **statement** hope it helps.. good luck :) regards, James Jon Yaggie [EMAIL PROTECTED] wrote in message 033901c10832$68f072a0$0100a8c0@piiimonster">news:033901c10832$68f072a0$0100a8c0@piiimonster... i have nothing to do with the popup stuff :) - Original Message - From: Ben Bleything [EMAIL PROTECTED] To: 'Jon Yaggie' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, July 09, 2001 11:37 AM Subject: RE: [PHP] url without a query string? Yikes. Popups and porn. Anyhoo, I guess I can't help you. I just don't know enough about the inner workings of http. Sorry = Ben -Original Message- From: Jon Yaggie [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 08, 2001 9:34 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] url without a query string? i mean this is coming from a hardcoded link. example www.design-monster.com links to www.site.com/index.php?id=4 but site www.hopeless.com links to www.site.com/index.php?id=2 both these then have a membership link on them and the memebership service uses the refering url. but the referer needs to be exact. so the query string needs to be stripped some how? Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code 100 bugs in the code fix one bug, compile it again 101 little bugs in the code 101 little bugs in the code . . .' And it continued until they reached 0 - Original Message - From: Ben Bleything [EMAIL PROTECTED] To: 'Jon Yaggie' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, July 09, 2001 11:25 AM Subject: RE: [PHP] url without a query string? A shot in the dark would be to use HTTP Post instead of Get... but, I don't know http. -Original Message- From: Jon Yaggie [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 08, 2001 9:22 PM To: [EMAIL PROTECTED] Subject: [PHP] url without a query string? the problem i have a page that uses a query string to determine content. ie index.php?id=2 in this page there is a link to a memebership area that uses a remote service. this service requires that thee be the exact same refering url. is the refering url must always be index.php. how can i do this? can i do this? Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code 100 bugs in the code fix one bug, compile it again 101 little bugs in the code 101 little bugs in the code . . .' And it continued until they reached 0 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]