[PHP-DB] php session
hi people, I'm having a little trouble getting sessions to work properly with php. I have put session_start(); on all pages before any data is printed. The session will start on the first loading of the page but after a link is clicked the session seems to die i have no idea why. for the links on the pages i have included the SID constant like so: Link but after a link is clicked the links them appear to lose the reference to the SID constant so instead of looking like Link the session_start(); isn't right at the start of the pages, its a few lines after but none of the lines before session_start(); print any data, they only store data in variables...does that matter?? I'm completely stumped trying to get this to work properly. can anyone offer any suggestions? Thanks heaps. signature.asc Description: This is a digitally signed message part
[PHP-DB] Re: PHP4.22/OCI8/Netscape 3.63 tnsnames problem...
David Leach <[EMAIL PROTECTED]> wrote: > If I specify the ORACLE_SID, and export it within my environment before > webserver startup, php/oracle do not look up the SID within > tnsnames.ora. I verified this with truss: > > Trace output: > Fatal NI connect error 12545, connecting to: > > (DESCRIPTION=(ADDRESS=(PROTOCOL=beq)(PROGRAM=/data01/oracle/bin/oracle)( > ARGV0=orac > leblah)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))')(DETACH > =NO))( > CONNECT_DATA=(CID=(PROGRAM=)(HOST=foo)(USER=fish > > [ ORACLE_SID=blah, OciLogon ( "user", "pw", "" ); -] If you are really using that third, empty parameter, omit it. The manual says: | If the optional third parameter is not specified, PHP uses the | environment variables ORACLE_SID (Oracle instance) or TWO_TASK | (tnsnames.ora) to determine which database to connect to. OciLogon("user", "pw"); Regards... Michael -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Looking for a programmer
Hi: I'm looking for an experienced PHP programmer to do two fairly simply integration projects. The first project is integrating Paypal with a directory "add listing" page as in this example: http://www.travelbcca.com/directory/links.php?action=addlink. The second project is adding a pre-written virtual tour/still photo tour page-set to the OpenRealty stock php site; eg: http://jonroig.com/freecode/openrealty/ I'm willing to pay top rate to the person who is qualified to complete the work in a timely and professional manner. Thanks, Aaron Aaron Lagadyn Evergreen Internet & Computer Science 25-711 Malone Road Ladysmith, BC V9G 1S4 Ph: 250 245-7486 Fx: 250 245-7171 Toll-free 877 556-4233 Email: [EMAIL PROTECTED] Company Websites: www.evergreencomputerscience.com for professional quality Website hosting and site maintenance. 100 MB only $17.95/mo. Also, professional-grade search engine submission service, and target email marketing programs. www.supervirtualtours.com for 360 interactive photos for the Internet. Full motion photos for marketing real estate or accommodations online. "Remember to back-up your data for safety's sake."
RE: [PHP-DB] mysql_select_db() and mysql_query()
> A friendly error message advised me that "mysql_db_query" is deprecated > and > to use "mysql_select_db() and > > mysql_query()". but I can't seem to get past this return in the Browser: > "Parse error: parse error in c:\program files\apache > > group\apache\htdocs\crup_hs_local\result.php on line 58". I think I don't > understand the basic syntax. > > /*$result = mysql_db_query($dbname,$sql);*/ > /*mysql_db_query is deprecated; use mysql_select_db() and mysql_query()*/ > $result = mysql_select_db($dbname) or die(mysql_error(); You're missing a closing parenthesis on the above line. ---John Holmes... -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php