php-general Digest 2 Feb 2009 02:43:07 -0000 Issue 5935
Topics (messages 287505 through 287517):
Re: Installation of php-5.2.8-win32-installer.msi
287505 by: kimwah
Weird url passing what does it mean, am I hacked?
287506 by: Terion Miller
287508 by: Ashley Sheridan
287510 by: Ashley Sheridan
287512 by: Terion Miller
287516 by: Ashley Sheridan
287517 by: Michael Kubler
CLI [Lack of] Performance on Windows
287507 by: Jason Young
Re: PHP Enclosing Tags? Do You Close Your PHP Declarations?
287509 by: Yannick Mortier
287515 by: Alpár Török
Re: Payment question in Canada
287511 by: Michelle Konzack
Re: CURL vs stream_socket_client
287513 by: Yves Arsenault
Re: [PHP-QA] problem code
287514 by: Daniel Brown
Administrivia:
To subscribe to the digest, e-mail:
[email protected]
To unsubscribe from the digest, e-mail:
[email protected]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
Confirmed it is a php installation bug.
Just found the step by step guide for Solving this problem.
You can get the solution in
http://d0--0b.blogspot.com/2009/02/cannot-install-php-528-to-xp-iis-5.html
Hope this help :)
--
View this message in context:
http://www.nabble.com/Installation-of-php-5.2.8-win32-installer.msi-tp21698463p21776117.html
Sent from the PHP - General mailing list archive at Nabble.com.
--- End Message ---
--- Begin Message ---
I noticed yesterday that sometimes I was seeing a strange url passing at the
bottom of the browser when clicking around my site I'm working on while
watching the page loads, its calling to mouserunner.com and I went to the
site and it is a bunch of links, my site is on a private server for a large
media company, clues on what this means and where to look to stop it, what's
it doing scraping my site or something?
Thanks folks...
--- End Message ---
--- Begin Message ---
On Sun, 2009-02-01 at 10:10 -0600, Terion Miller wrote:
> I noticed yesterday that sometimes I was seeing a strange url passing at the
> bottom of the browser when clicking around my site I'm working on while
> watching the page loads, its calling to mouserunner.com and I went to the
> site and it is a bunch of links, my site is on a private server for a large
> media company, clues on what this means and where to look to stop it, what's
> it doing scraping my site or something?
>
> Thanks folks...
Are you using some of their content on your site? You may not realise
it's come from them, it could be some Javascript you've found online and
used on your site. It's more than likely just a call-back script to
register a 'hit' along with other details.
As for scraping your sites content, there is no way to prevent this. If
your content is viewable for a human, it's viewable for a computer.
Would you mind posting a link so we can see what you're seeing?
Ash
www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
On Sun, 2009-02-01 at 11:01 -0600, Terion Miller wrote:
>
>
> On Sun, Feb 1, 2009 at 10:57 AM, Ashley Sheridan
> <[email protected]> wrote:
>
> On Sun, 2009-02-01 at 10:10 -0600, Terion Miller wrote:
> > I noticed yesterday that sometimes I was seeing a strange
> url passing at the
> > bottom of the browser when clicking around my site I'm
> working on while
> > watching the page loads, its calling to mouserunner.com and
> I went to the
> > site and it is a bunch of links, my site is on a private
> server for a large
> > media company, clues on what this means and where to look to
> stop it, what's
> > it doing scraping my site or something?
> >
> > Thanks folks...
>
> Are you using some of their content on your site? You may not
> realise
> it's come from them, it could be some Javascript you've found
> online and
> used on your site. It's more than likely just a call-back
> script to
> register a 'hit' along with other details.
>
> As for scraping your sites content, there is no way to prevent
> this. If
> your content is viewable for a human, it's viewable for a
> computer.
>
> Would you mind posting a link so we can see what you're
> seeing?
>
>
> Ash
> www.ashleysheridan.co.uk
>
> Hi Ash!
> My site isn't an outside app, it's an in house work order app hosted
> on our corporate servers, I was working on it yesterday and caught a
> glimpse in the bottom of the browser where you can see page loads , I
> kept seeing a www.mouserunner.com in there and was wondering what the
> hell...I googled and visited the site and found no other post anywhere
> complaining about this site or if it was a hacker/phishing site...
Copying the list back in on this.
You still haven't mentioned if you were using any scripts you sourced
from elsewhere? Have you performed a search on the server in question
for any files containing a link to that website?
Ash
www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
On Sun, Feb 1, 2009 at 11:17 AM, Ashley Sheridan
<[email protected]>wrote:
> On Sun, 2009-02-01 at 11:01 -0600, Terion Miller wrote:
> >
> >
> > On Sun, Feb 1, 2009 at 10:57 AM, Ashley Sheridan
> > <[email protected]> wrote:
> >
> > On Sun, 2009-02-01 at 10:10 -0600, Terion Miller wrote:
> > > I noticed yesterday that sometimes I was seeing a strange
> > url passing at the
> > > bottom of the browser when clicking around my site I'm
> > working on while
> > > watching the page loads, its calling to mouserunner.com and
> > I went to the
> > > site and it is a bunch of links, my site is on a private
> > server for a large
> > > media company, clues on what this means and where to look to
> > stop it, what's
> > > it doing scraping my site or something?
> > >
> > > Thanks folks...
> >
> > Are you using some of their content on your site? You may not
> > realise
> > it's come from them, it could be some Javascript you've found
> > online and
> > used on your site. It's more than likely just a call-back
> > script to
> > register a 'hit' along with other details.
> >
> > As for scraping your sites content, there is no way to prevent
> > this. If
> > your content is viewable for a human, it's viewable for a
> > computer.
> >
> > Would you mind posting a link so we can see what you're
> > seeing?
> >
> >
> > Ash
> > www.ashleysheridan.co.uk
> >
> > Hi Ash!
> > My site isn't an outside app, it's an in house work order app hosted
> > on our corporate servers, I was working on it yesterday and caught a
> > glimpse in the bottom of the browser where you can see page loads , I
> > kept seeing a www.mouserunner.com in there and was wondering what the
> > hell...I googled and visited the site and found no other post anywhere
> > complaining about this site or if it was a hacker/phishing site...
> Copying the list back in on this.
>
> You still haven't mentioned if you were using any scripts you sourced
> from elsewhere? Have you performed a search on the server in question
> for any files containing a link to that website?
>
>
> Ash
> www.ashleysheridan.co.uk
>
> no scripts that i've found, I inherited this app, and its about 57 pages
1200 lines each and I don't have access to the server corp rules...
--- End Message ---
--- Begin Message ---
On Sun, 2009-02-01 at 13:42 -0600, Terion Miller wrote:
> On Sun, Feb 1, 2009 at 11:17 AM, Ashley Sheridan
> <[email protected]>wrote:
>
> > On Sun, 2009-02-01 at 11:01 -0600, Terion Miller wrote:
> > >
> > >
> > > On Sun, Feb 1, 2009 at 10:57 AM, Ashley Sheridan
> > > <[email protected]> wrote:
> > >
> > > On Sun, 2009-02-01 at 10:10 -0600, Terion Miller wrote:
> > > > I noticed yesterday that sometimes I was seeing a strange
> > > url passing at the
> > > > bottom of the browser when clicking around my site I'm
> > > working on while
> > > > watching the page loads, its calling to mouserunner.com and
> > > I went to the
> > > > site and it is a bunch of links, my site is on a private
> > > server for a large
> > > > media company, clues on what this means and where to look to
> > > stop it, what's
> > > > it doing scraping my site or something?
> > > >
> > > > Thanks folks...
> > >
> > > Are you using some of their content on your site? You may not
> > > realise
> > > it's come from them, it could be some Javascript you've found
> > > online and
> > > used on your site. It's more than likely just a call-back
> > > script to
> > > register a 'hit' along with other details.
> > >
> > > As for scraping your sites content, there is no way to prevent
> > > this. If
> > > your content is viewable for a human, it's viewable for a
> > > computer.
> > >
> > > Would you mind posting a link so we can see what you're
> > > seeing?
> > >
> > >
> > > Ash
> > > www.ashleysheridan.co.uk
> > >
> > > Hi Ash!
> > > My site isn't an outside app, it's an in house work order app hosted
> > > on our corporate servers, I was working on it yesterday and caught a
> > > glimpse in the bottom of the browser where you can see page loads , I
> > > kept seeing a www.mouserunner.com in there and was wondering what the
> > > hell...I googled and visited the site and found no other post anywhere
> > > complaining about this site or if it was a hacker/phishing site...
> > Copying the list back in on this.
> >
> > You still haven't mentioned if you were using any scripts you sourced
> > from elsewhere? Have you performed a search on the server in question
> > for any files containing a link to that website?
> >
> >
> > Ash
> > www.ashleysheridan.co.uk
> >
> > no scripts that i've found, I inherited this app, and its about 57 pages
> 1200 lines each and I don't have access to the server corp rules...
Do a search on all the files for that site. I'm guessing you'll find
something in a .js file somewhere.
Ash
www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
Maybe you can use Firebug <http://getfirebug.com/>, or the Web Developer
<https://addons.mozilla.org/en-US/firefox/addon/60> plugins for Firefox?
Michael Kubler
*G*rey *P*hoenix *P*roductions <http://www.greyphoenix.biz>
Ashley Sheridan wrote:
On Sun, 2009-02-01 at 13:42 -0600, Terion Miller wrote:
On Sun, Feb 1, 2009 at 11:17 AM, Ashley Sheridan
<[email protected]>wrote:
On Sun, 2009-02-01 at 11:01 -0600, Terion Miller wrote:
On Sun, Feb 1, 2009 at 10:57 AM, Ashley Sheridan
<[email protected]> wrote:
On Sun, 2009-02-01 at 10:10 -0600, Terion Miller wrote:
> I noticed yesterday that sometimes I was seeing a strange
url passing at the
> bottom of the browser when clicking around my site I'm
working on while
> watching the page loads, its calling to mouserunner.com and
I went to the
> site and it is a bunch of links, my site is on a private
server for a large
> media company, clues on what this means and where to look to
stop it, what's
> it doing scraping my site or something?
>
> Thanks folks...
Are you using some of their content on your site? You may not
realise
it's come from them, it could be some Javascript you've found
online and
used on your site. It's more than likely just a call-back
script to
register a 'hit' along with other details.
As for scraping your sites content, there is no way to prevent
this. If
your content is viewable for a human, it's viewable for a
computer.
Would you mind posting a link so we can see what you're
seeing?
Ash
www.ashleysheridan.co.uk
Hi Ash!
My site isn't an outside app, it's an in house work order app hosted
on our corporate servers, I was working on it yesterday and caught a
glimpse in the bottom of the browser where you can see page loads , I
kept seeing a www.mouserunner.com in there and was wondering what the
hell...I googled and visited the site and found no other post anywhere
complaining about this site or if it was a hacker/phishing site...
Copying the list back in on this.
You still haven't mentioned if you were using any scripts you sourced
from elsewhere? Have you performed a search on the server in question
for any files containing a link to that website?
Ash
www.ashleysheridan.co.uk
no scripts that i've found, I inherited this app, and its about 57 pages
1200 lines each and I don't have access to the server corp rules...
Do a search on all the files for that site. I'm guessing you'll find
something in a .js file somewhere.
Ash
www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
I'm not much for running PHP on Windows, but I thought that many of the
performance issues had been worked out...
However, I'm trying to run a PHP through CLI and having a terrible
experience with speed. This is running Windows Server 2008 (with a
Quad-Core Intel, 4 GB of RAM).
My problem in particular is a small script that bzread()s from a
large-ish (104 MB) file, and throws some data into a sqlite db.
It's not really hitting any resource limits that I know of - the PHP
process isn't even using 3% CPU, and RAM usage is minimal... it's
just... slow.
It's not even just this script. It's not doing it now, but when I was
playing around with it last night, it was taking quite a bit to execute
small echo statements from reading stdin from the php process (although
'php -qa' doesn't exhibit this behavior)
Anyway, Windows processes about 4,000 rows per minute, while Linux does
10.6K. I know I shouldn't expect much out of the platform, but this just
straight CLI, I figured it would be at least respectably similar.
Any insight?
Thanks!
-Jason
--- End Message ---
--- Begin Message ---
2009/1/30 Nitsan Bin-Nun <[email protected]>:
> Do you close your PHP <?php tags?
>
No, I don't. The reason is that I use subversion and I always get a
message when I don't leave the last line empty.
So I kind of have to leave the <?php Tag opened.
I once read that this is even recommended by the PHP developers... Has
anyone got a quote for me about this?
--
Currently developing a browsergame...
http://www.p-game.de
Trade - Expand - Fight
Follow me at twitter! http://twitter.com/moortier
--- End Message ---
--- Begin Message ---
2009/2/1 Yannick Mortier <[email protected]>
> 2009/1/30 Nitsan Bin-Nun <[email protected]>:
> > Do you close your PHP <?php tags?
> >
>
> No, I don't. The reason is that I use subversion and I always get a
> message when I don't leave the last line empty.
> So I kind of have to leave the <?php Tag opened.
> I once read that this is even recommended by the PHP developers... Has
> anyone got a quote for me about this?
>
> --
> Currently developing a browsergame...
> http://www.p-game.de
> Trade - Expand - Fight
>
> Follow me at twitter! http://twitter.com/moortier
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
I know thw ZF codinf style includes it as a must. See here :
http://framework.zend.com/manual/en/coding-standard.php-file-formatting.html#coding-standard.php-file-formatting.general
--
Alpar Torok
--- End Message ---
--- Begin Message ---
Am 2009-01-30 22:47:10, schrieb Edmund Hertle:
> Read this discussion. I think this will help you:
> http://marc.info/?t=123298989700001&r=1&w=2
Address Not Found
www.marc.info could not be found. Please check the name and try again.
Thanks, Greetings and nice Day/Evening
Michelle Konzack
Systemadministrator
24V Electronic Engineer
Tamay Dogan Network
Debian GNU/Linux Consultant
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
<http://www.tamay-dogan.net/> <http://www.can4linux.org/>
Michelle Konzack Apt. 917 ICQ #328449886
+49/177/9351947 50, rue de Soultz MSN LinuxMichi
+33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
signature.pgp
Description: Digital signature
--- End Message ---
--- Begin Message ---
Hey there,
First off I'd like to thank the Magento module's author for the support.
The canada post shipping module now works!
The problem was a little bit different then I saw in other posts and forums.
Basically, the curl function wouldn't connect to the
sellonline.canadapost.ca system on the desired port (30000).
In the curl section of code, we set opts.. and in the opts... we set the URL
and the port #. For some reason this would not work.
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_PORT, $port);
So.... what ended up working was to add the port directly to the url and
comment out the port option..
// basically this is what is being passed to the URL opt
$url = 'http://sellonline.canadapost.ca:30000';
curl_setopt($ch, CURLOPT_URL, $url);
// and comment out the port opt
//curl_setopt($ch, CURLOPT_PORT, $port);
So, after some diggin' around on curl.... and great support by module's
author.... problem solved. Canada Post shipping module now works.
:)
Yves Arsenault
"Love is the only force capable of transforming an enemy into a friend".
--Martin Luther King, Jr.
On Fri, Jan 30, 2009 at 4:18 PM, Yves Arsenault <[email protected]>wrote:
> Hi all,
> It really seems to me that somehow when the curl command is run that it's
> not posting the request to port 30000 to sellonline.canadapost.ca.
>
> That's the impression I'm under.
>
> Any ideas?
>
> Yves Arsenault
>
> "Love is the only force capable of transforming an enemy into a friend".
> --Martin Luther King, Jr.
>
>
> On Fri, Jan 30, 2009 at 12:40 PM, Yves Arsenault <[email protected]
> > wrote:
>
>> Hi Todd,
>> First off.. thanks for the reply.
>>
>> I've dumped the xml data and tried to view it in Firefox... commented out
>> the curl code (and all the other stuff) just to see what exactly was getting
>> passed.
>>
>> Firefox did not display it as it does xml... like when I got directly to
>> that xml file with firefox, I get the "This XML file does not appear to have
>> any style information associated with it. The document tree is shown below."
>> (grey bar)... it always shows properly formed xml documents like that for me
>> (collapsible)...
>>
>> But, when I dump it in the PHP script using:
>> print $eparcelRequest;
>>
>> It will just display the values... don't see any collapsible xml tags like
>> when I view the xml directly.
>> So I was thinking it might be in the format sent..
>>
>> I'll try to set the user agent.
>>
>> Thanks!
>> Yves Arsenault
>>
>> "Love is the only force capable of transforming an enemy into a friend".
>> --Martin Luther King, Jr.
>>
>>
>> On Fri, Jan 30, 2009 at 12:19 PM, Boyd, Todd M. <[email protected]> wrote:
>>
>>> > -----Original Message-----
>>> > From: Yves Arsenault [mailto:[email protected]]
>>> > Sent: Friday, January 30, 2009 9:40 AM
>>> > To: PHP List
>>> > Subject: [PHP] CURL vs stream_socket_client
>>> >
>>> > Hi there,
>>> > I'm not in PHP on a daily basis, but from time to time I get to
>>> program
>>> > a
>>> > little in PHP for certain projects.
>>> >
>>> > Recently, I've installed a Magento system... and I've installed a
>>> > canada
>>> > post shipping module for this system.
>>> >
>>> > One thing that seems to be tripping it up is that it's using curl.
>>> >
>>> > curl is attempting to send xml data to canada post's server on port
>>> > 30000.
>>> > The response from canada post's system is always an html page...
>>> >
>>> > I've run a test using stream_socket_client and have gotten it to work,
>>> > the
>>> > canada post's system responds with the corresponding XML data with
>>> > shipping
>>> > info.
>>> >
>>> > I'm wondering if there are any curlopt_ options that should be set
>>> that
>>> > aren't currently set...
>>> > Could be that curl is not sending properly formatted XML.
>>>
>>> This may be a stretch, but try to set the User Agent string to mimic
>>> Firefox before sending your request. I wrote a PHP scrape to gather
>>> guild member information from the World Of Warcraft Armory [1] a few
>>> years back, and it kept giving me HTML instead of XML until I used the
>>> User Agent of a browser that most sites accept is capable of parsing
>>> XML.
>>>
>>> A lot of sites conditionally send IE (and unknown browsers) XHTML
>>> instead of XML if there is any transformation of data involved.
>>>
>>> Also--your comment "Could be that curl is not sending properly formatted
>>> XML" is possible. Have you looked at the resulting HTML that is sent to
>>> curl to make sure that it's not a server error message? If it's the
>>> results you were looking for (but in XHTML format instead of XML), I'll
>>> bet it's a User Agent thing.
>>>
>>> Just a thought...
>>>
>>>
>>> // Todd
>>>
>>
>>
>
--- End Message ---
--- Begin Message ---
Top-posting.
Chris, you're on the wrong list. Please send messages like this
to [email protected], and subscribe[1] to that list to follow
along. This QA list is for the PHP Quality-Assurance Team.
1: http://php.net/mailinglists - or - [email protected]
On Sun, Feb 1, 2009 at 14:08, Chris Ives <[email protected]> wrote:
>
> What is wrong with this code?
>
>
>
> $x_Message = $x_fname." ".$x_lname." ".$_practice." just registered for
> ".$x_nevent."Method of payment ".$x_payment." Email address is".$x_email."
> Telephone number".$x_tele. "Question is ".$x_qanda.";
>
>
>
> $message = $x_Message;
>
> $from = $x_email;
>
> $to = "[email protected]";
>
> $subject = "Panorama Registration";
>
> $headers = "From: $from";
>
> /* Now we are ready to send the email so we call php's mail() function
>
> with the appropriate variables from above included in the brackets */
>
> mail($to,$subject,$message,$headers);
>
>
>
> --
> PHP Quality Assurance Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
</Daniel P. Brown>
[email protected] || [email protected]
http://www.parasane.net/ || http://www.pilotpig.net/
Unadvertised dedicated server deals, too low to print - email me to find out!
--- End Message ---