Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.

Thread Tools Display Modes
Share |
Old 02-23-2015, 08:07 PM
spacefem spacefem is offline
Contributing Member
Join Date: 01-01-04
Location: Kansas, America!
Posts: 145
iTrader: 0 / 0%
encoding underscores

hey all! I'm trying to write a php script to fetch some XML files and having some inconsistencies.

I've tried two different ways to open these files...

first curl:

then xml parsing with DOM:
$xmlDoc = new DOMDocument();

in both cases, some of the files I want to get can't be found. And it's the ones with underscores that seem to not work sometimes.

Examples of files that work, every time... I can open these just fine:

Examples of files that totally do NOT work ever... I get a "not found" error in my script even though I can open them in a browser!

what's up with this... can you think of any way I should treat or encode underscores differently?
Reply With Quote



Old 02-24-2015, 09:34 PM
raicabogdan's Avatar
raicabogdan raicabogdan is offline
Contributing Member
Join Date: 10-03-08
Location: On the web
Posts: 116
iTrader: 0 / 0%
So you're saying that curl is not able to open those URls due to underscore? Could you confirm if that's your issue?
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
About PHP encoding mimo91 Coding Forum 4 09-21-2012 05:17 AM
UTF-8 encoding and SEO peeping4dsun SEO Forum 7 10-12-2011 07:01 AM
Underscores vs. dashes in URLs - GoogleWebmasterHelp HTMLBasicTutor Google Forum 7 09-06-2011 08:16 AM
How Google Handles Underscores peter_d Google Forum 12 08-11-2007 05:56 AM
Underscores or Hyphens netricksdotcom Google Forum 13 10-26-2006 06:45 PM

V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory

All times are GMT -7. The time now is 01:36 AM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC