Jump to content

amyhughes

Members
  • Posts

    22
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

amyhughes's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Nope. tried that. It also gives errors. It's not just parenthesis it doesn't like. None of the non-trivial examples I've found work through the php interface. Maybe the strings have to be encoded somehow. I've tried escaping the characters it seems to have difficulty with and that doesn't fix it, and discussions I've found say it won't take escaped strings.
  2. Well, I'm not just scraping links. I'm following a few specific links on the page and summarizing both the main page and those linked pages. Basically, I want to drop a link in a box and have it spit out information that would require thirty clicks and a bunch of scrolling and copy-paste and window switching to get by hand. It's something I have do do hundreds of times for pages in a particular format. But yeah, getting the links is not terribly difficult and I'm moving on to other methods.
  3. I'm just learning to use xpath to scrape links from a site. Here's some code that works: $dom = new DOMDocument(); @ $dom->loadHTML( $html); $xpath = new DOMXPath( $dom); $hrefs = $xpath->evaluate( '/html/body//ul//li[@class="interwiki-de"]//a'); What I'd like is something like the following, though I don't know if the details for the union are correct, or could be simplified: $hrefs = $xpath->evaluate( '/html/body//ul//li[@class=("interwiki-de"|"interwiki-jp")]//a'); This gives me "Warning: DOMXPath::evaluate() [domxpath.evaluate]: Invalid expression in ..." It was just a guess, so I tried something that was more likely to work (actually a couple things before I got to this point): $hrefs = $xpath->evaluate( '/html/body//ul//(li | stuff)//a'); This also gives me an invalid expression. In fact, any expression that contains parenthesis gives an invalid expression. The example unions I see lead me to believe it's possible to do what I want. What am I missing, please?
  4. Just for giggles I re-booted. Not sure what needed that, and it's not the first time tonight, but it did the trick. The darn thing is working now. I have the original code I posted working now. I'm assuming I needed MySQL 5.0.* for php 5.2.*, as the poster in that thread said, and that I needed to reboot after downgrading all these things. Thanks, Corban, for your help.
  5. Google is a beautiful thing but I'm not sure I know how to use it. I put the pdb files in the same directory as the DLLs, and now it hangs rather than crash. I don't know how to get a backtrace unless it gives me one of those "sorry for the inconvenience" dialogs.
  6. I don't know where to get that, and I'm reluctant to download it from just anywhere. And building it from source is beyond the scope of reasonable, and probably fraught with failure, anyway. Highly unlikely, and please don't break anything on my account.
  7. > php_mysqli.dll!01572beb() php_mysqli.dll!01571582() php5ts.dll!0078a023() php_mysqli.dll!01578d97() php5ts.dll!0079cdf9() php5ts.dll!007a30b5() php5ts.dll!0079c595() php5ts.dll!008292a4() php5ts.dll!00782e87() php5ts.dll!0083e14d() ntdll.dll!7c9101bb() ntdll.dll!7c9114b6() ntdll.dll!7c9114f4() ntdll.dll!7c9114ca() ntdll.dll!7c90d07c() kernel32.dll!7c80a77a() kernel32.dll!7c80a79e() kernel32.dll!7c83089d() ntdll.dll!7c9115a6() ntdll.dll!7c9115a6() kernel32.dll!7c8308bf() libmySQL.dll!01366980() libmySQL.dll!01364859() libmySQL.dll!0136480f() php_mysqli.dll!01572545() php5ts.dll!00787a7d() php5ts.dll!0081c800() php5ts.dll!0083dfe3() php5apache2_2.dll!100034fd() libapr-1.dll!6eed198a() php5apache2_2.dll!10003271() mod_mime.so!6fc21a40() php5ts.dll!0083bfd0() libhttpd.dll!6ff020e1() libhttpd.dll!6ff0246e() libhttpd.dll!6ff0e90e() libhttpd.dll!6ff0a87c() libhttpd.dll!6ff04d21() libhttpd.dll!6ff04fd3() libhttpd.dll!6ff1d2dc() msvcrt.dll!77c3a3b0() ntdll.dll!7c91a5de() kernel32.dll!7c80b713() ntdll.dll!7c91a5de()
  8. No, it was un-zipped. When I down-graded, I deleted the php folder and un-zipped the older files, edited php.ini again, restarted apache.
  9. Got the downgraded database working. fetch_assoc() still crashes apache.
  10. I downgraded from MySQL 5.1 to 5.0.67. I'm now unable to create user accounts that "stick". Here's a session... mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | books | | mysql | | test | +--------------------+ 4 rows in set (0.00 sec) mysql> use books; Database changed mysql> grant select, insert, update, delete, index, alter, create, drop -> on books.* -> to bookorama identified by 'bookorama123'; Query OK, 0 rows affected (0.00 sec) mysql> quit Bye C:\Documents and Settings\Amy\My Documents>mysql -u bookorama -p Enter password: ************ ERROR 1045 (28000): Access denied for user 'bookorama'@'localhost' (using password: YES) Yes, I'm typing it correctly. Multiple times. Edit: Nevermind. Deleted anonymous accounts. Able to get in now.
  11. I now have php 5.2.6, apache 2.2.9 and mysql 5.0.67. I have a root account with a password and I'm able to login. I can create a user account without any errors, but when I try to log in to that user account I get ERROR 1045 (28000): Access denied for user 'bookorama'@'localhost' (using password: YES) This has turned into a MySQL problem. Before I can resume testing on the original php problem I must solve this MySQL problem. But I've had about enough. Thanks for your help.
  12. I do not have a 64-bit OS. This is WinXp Pro SP3 (32-bit version). I did downgrade MySQL, and now it won't let me back into my database. I'd really like to just blow it away and start over. Edit: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) I told it not to modify my security settings. Edit2: Apparently it did blow away the old database. Root did not have a password, so trying to log in with one failed.
  13. Crash I offer as reason for my next downgrade the last comment in this thread: http://bugs.php.net/bug.php?id=44645
  14. Curious. I have one in my php directory (c:/php) and one with my mysql installation (c:/Program Files/MySQL/MySQL Server 5.1/bin), and they don't look like they are the same version (they aren't the same size or date). I'm guessing the one in the php directory is 5.0.something. Which am I using when I make calls from a php script? I installed MySQL as a service a few days ago, before I started working with php. Should I downgrade MySQL?
×
×
  • 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.