Jump to content

ju8ular1

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

ju8ular1's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. my PHP parser has suddenly dropped out of interpreting/parsing mode. iv checked the ScriptAlias, Application-Type settings in httpd.conf and all is the same - i figured this can be the only source of the problem. the only changes iv made recently was to set PHP in my path (%PATH%;C:\php5;), and copied a new libmysql.dll to the appropriate directory (when mySQL wasnt connecting before). phpinfo() runs fine but all my other scripts drop out of parsing mode. if you look at the source for my PHP pages from the browser, all the code is still there. any advice? iv tried to reboot my PC and restart Apache but nada.
  2. im testing a fairly big php application (adodb abstration with no transactions), and iv been asked to comment on performance issues with regards to concurrent access. do u know of any good resources where i can get my hands dirty on this? i guess a php app would follow same testing principles like with any other web app: session handling/control/security; authentication/validation; functional specs even better, does anyone know of a load testing framework for php? im pretty new to php and therefore thought id post here thanks
  3. hi, im usually a little paranoid about turning apache off once i start surfing the web. since the local server address is 127.0.0.0, can a prying eye actually telnet or browse to port 80 on my IP address, and view the contents of my .htdocs? if so, whats a quick but effective workaround for this? if not, can someone remotely activate it, provided im online? pls forward any relevant articles/resource links if you have any.
  4. iv followed all (ok *most*) of the pointers on installing PHP5.1.2 on XP home, with apache 2 and mysql 5: - i verified my php.ini file (in PHP root -> c:\php5) - i set my path and restarted my pc (%path%;c:\php5) - on phpinfo(), mySQL support is reported as enabled im not getting any "call to undefined" errors, but every script that tests a DB connection, just outputs the source, not excluding HTML. i am using an ADO package, but iv also tried doing with plain old mysql_connect - same problem. iv only got one php_mysql.dll (in ext), but about 3 libmysql.dll's, all in different dirs (1 in C:\php5, 1 in C:\Windows, 1 in ..\mysql server 5.0\bin). the first 2 are the same version. where am i going wrong - apart from having the 3 libmysql.dll's - and which libmysql.dll should i delete substitue?
  5. i get it now. thanks a lot. um, iv got a similar problem. file format is: 2002,Foo,Bar,21 Childers Crs, VA, USA 2002,Foo,Bar,16 Killkenny Rd,VA,USA 2002,Foo,Bar,417 Junk Ave,MA,USA 1999,Fooz,Bra,3207 Slimjims Dr,WI,USA 1999,Fooz,Bra,13 Ungry Pl,WI,USA aim is to print out the last line of each unique record. i know you can do this in SQL, like: [code] SQL>SELECT field1, max(*) FROM table GROUP BY field1 [/code][code] how do u do this in PHP?
  6. thanks barand, that worked fine. a few questions: -file() reads in entire contents into array. how does PHP differentiate between every $line of $data? -similarly, how does count($data) count only the number of delimited variables on current line, instead of the whole file?
  7. hi, iv got a very simple csv parsing problem. im trying to output the first 3 fields on a flat-file database from the 1st record. here's sample data: 2002,Foo,Bar,999,Wages,2000.00,2010.00,2090.00 ,,,777,Cellphone,150.00,120.00,150.00 ,,,111,Subsidy,400.00,400.00,400.00 1999,Fooz,Bra,999,Wages,2010.00,2320.00,2210.00 ,,,777,Cellphone,150.00,120.00,150.00 ,,,111,Subsidy,400.00,400.00,400.00 so final output will look like: 2002,Foo,Bar,999,Wages,2000.00,2010.00,2090.00 2002,Foo,Bar,777,Cellphone,150.00,120.00,150.00 2002,Foo,Bar,111,Subsidy,400.00,400.00,400.00 1999,Fooz,Bra,999,Wages,2010.00,2320.00,2210.00 1999,Fooz,Bra,777,Cellphone,150.00,120.00,150.00 1999,Fooz,Bra,111,Subsidy,400.00,400.00,400.00 i know my logic's bent & im getting infinite loops, so i won't even bother posting my code. any help much appreciated.
×
×
  • 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.