RE: [PHP] all local sites stopped working ... [SOLVED]

2009-10-17 Thread Marc Christopher Hall


-Original Message-
From: cr.vege...@gmail.com [mailto:cr.vege...@gmail.com] 
Sent: Saturday, October 17, 2009 8:20 AM
To: Tommy Pham; general php
Subject: Re: [PHP] all local sites stopped working ... [SOLVED]

- Original Message - 
From: Tommy Pham tommy...@yahoo.com
To: general php php-general@lists.php.net
Sent: Saturday, October 17, 2009 2:03 PM
Subject: Re: [PHP] all local sites stopped working ...


 From: cr.vege...@gmail.com cr.vege...@gmail.com
 To: Tommy Pham tommy...@yahoo.com; general php 
 php-general@lists.php.net
 Sent: Sat, October 17, 2009 4:49:53 AM
 Subject: Re: [PHP] all local sites stopped working ...


 - Original Message - From: Tommy Pham tommy...@yahoo.com
 To: general php php-general@lists.php.net
 Sent: Saturday, October 17, 2009 1:29 PM
 Subject: Re: [PHP] all local sites stopped working ...


 - Original Message 
 From: cr.vege...@gmail.com cr.vege...@gmail.com
 To: Tommy Pham tommy...@yahoo.com; general php 
 php-general@lists.php.net
 Sent: Sat, October 17, 2009 4:19:17 AM
 Subject: Re: [PHP] all local sites stopped working ...

 - Original Message - From: Tommy Pham
 To: general php
 Sent: Saturday, October 17, 2009 1:02 PM
 Subject: Re: [PHP] all local sites stopped working ...


  - Original Message 
  From: cr.vege...@gmail.com
  To: Tommy Pham ; general php
  Sent: Sat, October 17, 2009 3:57:48 AM
  Subject: Re: [PHP] all local sites stopped working ...
 
  - Original Message - From: Tommy Pham
  To: general php
  Sent: Saturday, October 17, 2009 12:21 PM
  Subject: Re: [PHP] all local sites stopped working ...
 
 
   - Original Message 
   From: cr.vege...@gmail.com
   To: John Black
   Cc: php-general@lists.php.net
   Sent: Sat, October 17, 2009 3:17:22 AM
   Subject: Re: [PHP] all local sites stopped working ...
  
   - Original Message - From: John Black
   To:
   Cc:
   Sent: Saturday, October 17, 2009 11:53 AM
   Subject: Re: [PHP] all local sites stopped working ...
  
  
cr.vege...@gmail.com wrote:
In php.ini I defined: error_log =
C:\Inetpub\wwwroot\PHPError.log
then restarted the server with iisreset.exe
then started with IE: http://127.0.0.1/.../phpinfo.php
and after 10 minutes still Connecting / Waiting for  
 .../phpinfo.php
and still no C:\Inetpub\wwwroot\PHPError.log created ...
Other suggestions ?
TIA, Cor
   
So it is not just .php files which will not work? If you have 

 
 trouble 
  with
   .html files as well then it almost sounds like a firewall issue 

 since 
 your
   connection hangs until timeout.
   
Try this to see if the webserver is accepting a connection:
telnet 127.0.0.1 80
Then type the two lines below, ending each one with the enter 
key  
 (new 
  line)
HEAD / HTTP/1.1
Host: 127.0.0.1
(hit enter once more)
   
And you should get an answer from your server, mine looks like 
this:
HTTP/1.1 200 OK
Date: Sat, 17 Oct 2009 09:49:16 GMT
Server: Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2

 
  SVN/1.6.5
   PHP/5.3.0 with Suhosin-Patch
Content-Type: text/html;charset=ISO-8859-1
Connection closed by foreign host.
   
   
Does this work?
  
   John,
   Opening a *.HTM file from Windows Explorer goes well.
  
   It's not the same thing as using your web browser and try to view 
  the 
 *.HTM
  file(s) through IIS.  Notice the protocol difference file:// vs  
  http://.
  
   So the webserver is accepting a connection ...
   Nevertheless, where should I enter: telnet 127.0.0.1 80 ?
   From the OS prompt C:\  ?
  
   In a command prompt.  Directory path doesn't matter.
  
  From the C:\ prompt, I did:
  telnet 127.0.0.1 80[Enter]
  HEAD / HTTP/1.1[Enter]
  Host: 127.0.0.1 [Enter]
  [Enter]
  but all I get is a black window ...
 
  Looks like John was right about the firewall.  What service pack did 

  you have
 before your recent windows update?  You'll need to disable the firewall 
 in
 services and try the telnet again.
 

 Tommy,
 I did and do have Windows XP SP3. My firewall was turned off.
 I turned it On, but http://127.0.0.1/.../phpinfo.php is not working.
 I turned it Off, and http://127.0.0.1/.../phpinfo.php is not working
 and telnet commands don't show anything ...
 Any other idea ?
 TIA, Cor


 1) Did you run that command for granting permission of NETWORK SERVICE 
 for the c:\tmp?  and restart IIS?
 A: yes, I did restart IIS after every change in php.ini

 2) run 'netstat -ano' without the single quote in the command prompt and 
 show me what you see.
  Active Connections

 Proto  Local Address  Foreign AddressState   PID
 TCP0.0.0.0:80 0.0.0.0:0  LISTENING   1808
 TCP0.0.0.0:1350.0.0.0:0  LISTENING   848
 TCP0.0.0.0:4430.0.0.0:0  LISTENING   1808
 TCP0.0.0.0:445

RE: [PHP] mod primary key field - newbie question

2009-07-13 Thread Marc Christopher Hall


-Original Message-
From: Floyd Resler [mailto:fres...@adex-intl.com] 
Sent: Monday, July 13, 2009 5:41 PM
To: c...@hosting4days.com
Cc: php-general@lists.php.net
Subject: Re: [PHP] mod primary key field - newbie question

Sounds like you want to set the auto increment.  To do that, use this  
query:
alter table `table_name` auto_increment 1;

That will reset it to one.  Although I've never tried it, I assume you  
can give it another value.

Take care,
Floyd

On Jul 13, 2009, at 5:35 PM, c...@hosting4days.com wrote:

 newbie question ... I have a MySQL table where I want to update  
 (renumber) the primary numeric key field.

 - I successfully turned field off as a primary key index and UN auto  
 incremented it
 - then created new sequential numbers for it
 - then turned back on primary key index and re added auto increment in


 BUT when I make a new record it does NOT  start where new numbers stop

 last is 51
 next should be 52

 but jumps to 157

 Q: is there a way to reset the NEXT SERIAL ID NUMBER somewhere? how  
 do I fix this?


 --
 Thanks - RevDave
 Cool @ hosting4days . com
 [db-lists 09]



alter table `table_name` auto_increment 1;
Correct you can give it any value you wish it to start FROM. ie if you pass
51 as the value then the next will be Auto increment value will be 52
 

__ Information from ESET Smart Security, version of virus signature
database 4240 (20090713) __

The message was checked by ESET Smart Security.

http://www.eset.com
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: How to authnticate and use contents from ${HOME}

2009-07-11 Thread Marc Christopher Hall

First time I've ever seen LAMP described as a language...
 

__ Information from ESET Smart Security, version of virus signature
database 4234 (20090711) __

The message was checked by ESET Smart Security.

http://www.eset.com
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] CSS tables

2009-05-18 Thread Marc Christopher Hall






I would like to add that last time I checked, this is the PHP Mailing List
and not CSS or anything else. Can we please get back to regular PHP banter?





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


__ Information from ESET Smart Security, version of virus signature
database 4084 (20090518) __

The message was checked by ESET Smart Security.

http://www.eset.com


 

__ Information from ESET Smart Security, version of virus signature
database 4084 (20090518) __

The message was checked by ESET Smart Security.

http://www.eset.com
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] CSS tables

2009-05-18 Thread Marc Christopher Hall
and so I don't feel like a complete ass

http://jeffhowden.com/code/css/forms/ 
 

__ Information from ESET Smart Security, version of virus signature
database 4084 (20090518) __

The message was checked by ESET Smart Security.

http://www.eset.com
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] CamelCase conversion to proper_c_style

2009-04-27 Thread Marc Christopher Hall
My suggestion is to use the Find and Replace feature of your code editing
software. Sorry to disagree with Mr. Hayes, however, if you do as he says
and replace as you go you will be creating errors as these variables,
functions, etc will most likely be CaSe SenSItiVe. Change one then you need
to change all. 

As always, do not forget the first three rules of code writing; backup,
backup, backup.

Marc Hall

The difference between genius and stupidity is that genius has its limits.


*
Hi,

 I know it's probably heresy for a lot of coders, but does anyone know a
 function or class or regexp or somesuch which will scan through a PHP
 file and convert all the CamelCase code into proper C-type code? That
 is, CamelCase gets converted to camel_case. I snagged a bunch of
 someone else's PHP code I'd like to modify, but it's coded the wrong
 way, so I'd like to fix it.

 (I'm teasing you CamelCase people. But I really would like to change
 this code around, because it doesn't happen to be my preference.)

I'd say, if you must, then change as you go. If you do it all in a
oner you'll likely introduce a shed load of problems.

-- 
Richard Heyes
HTML5 graphing: RGraph (www.rgraph.net)
PHP mail: RMail (www.phpguru.org/rmail)
PHP datagrid: RGrid (www.phpguru.org/rgrid)
PHP Template: RTemplate (www.phpguru.org/rtemplate)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


__ Information from ESET Smart Security, version of virus signature
database 4036 (20090427) __

The message was checked by ESET Smart Security.

http://www.eset.com




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] 800 pound gorilla

2009-04-20 Thread Marc Christopher Hall


-Original Message-
From: Bob McConnell [mailto:r...@cbord.com] 
Sent: Monday, April 20, 2009 9:59 AM
To: Marc Christopher Hall; php-general@lists.php.net
Subject: RE: [PHP] 800 pound gorilla

From: Marc Christopher Hall
 
 Sun buys MySQL and now Oracle buys Sun (not final, yet). What will
happen
 with the main db we PHP'ers have come to know and love especially
since v 5

Speak for yourself, I prefer PostgreSQL. But there are already two
announced forks of MySQL, created by developers that left after Sun
bought the company. So I don't think you'll be in any trouble. I did a
Google search last week on executives departing MySQL and found them.

Bob McConnell




This being a PHP forum I will stand down on a performance/stability debate
over PostgreSQL and MySQL. These responses are what I was fishing for. My
gut reaction was Not again! and this time I initially feared a future axe
to MySQL. Upon further thought (and a few deep breaths) I agree that for the
near future, an immediate canning of MySQL would not be in Oracle's best
interest. However, since Oracle has been the competition and (I had no idea
other developers had already begun a fork of MySQL) I believe that Oracle
will close the door on MySQL eventually.

Time will tell. Meanwhile, back to work for me.

-Marc Hall


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] 800 pound gorilla

2009-04-20 Thread Marc Christopher Hall
Sun buys MySQL and now Oracle buys Sun (not final, yet). What will happen
with the main db we PHP'ers have come to know and love especially since v 5



RE: [PHP] 800 pound gorilla

2009-04-20 Thread Marc Christopher Hall


-Original Message-
From: paras...@gmail.com [mailto:paras...@gmail.com] On Behalf Of Daniel
Brown
Sent: Monday, April 20, 2009 9:52 AM
To: Marc Christopher Hall
Cc: php-general@lists.php.net
Subject: Re: [PHP] 800 pound gorilla

On Mon, Apr 20, 2009 at 09:48, Marc Christopher Hall
m...@hallmarcwebsites.com wrote:
 Sun buys MySQL and now Oracle buys Sun (not final, yet). What will happen
 with the main db we PHP'ers have come to know and love especially since v
5

Become a MySQL developer and help make the decision.

-- 
/Daniel P. Brown
daniel.br...@parasane.net || danbr...@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
50% Off All Shared Hosting Plans at PilotPig: Use Coupon DOW1


Ahhh, I love the smell of condescension first thing in the morning. BTW I am
a MySQL developer thank you. A developer does not an owner make. Where do
you get the idea that Oracle would put this to a democratic vote?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Possible Server Infection?

2009-04-05 Thread Marc Christopher Hall
I recommend switching to Hostgator for your ded and ask them for their
custom modsec. I'm not affiliated with them except that I am a customer and
have been for 6 years. I do bring this up because you stated that they do
not know which if true tells me that do not know how to do even the
smallest things necessary to manage a box. Of course, as an afterthought,
are you paying for a managed or unmanaged server?

Just my 2 cents.





-Original Message-
From: sono...@fannullone.us [mailto:sono...@fannullone.us] 
Sent: Saturday, April 04, 2009 7:12 PM
To: php-general@lists.php.net
Subject: [PHP] Possible Server Infection?

Hi all,

I was wondering if someone might know about a problem I'm having on

my server.  It appears that I've been infected by a rogue PHP  
script(?).  Something has gone through my server and placed .htaccess  
files in every directory that didn't have one with contents that look  
like this:

Options -MultiViews
ErrorDocument 404 //graphics/cc/52.php

The path is different for each file and corresponds to the directory

that it's in.  The php document name is a different number for each  
file I've found.

Does this sound familiar to anyone?  What would be the purpose of  
placing files like these in the directories?  As far as I know, there  
isn't a file called 52.php anywhere on my site, so this doesn't  
make any sense to me.

I realize that this is a very general question, but I'm hoping that

someone has seen or heard of this type of thing before and can help me  
eliminate the problem.

I'm using A2 Hosting and they don't know why this happened.

Thanks,
Frank

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


__ Information from ESET Smart Security, version of virus signature
database 3988 (20090404) __

The message was checked by ESET Smart Security.

http://www.eset.com


 

__ Information from ESET Smart Security, version of virus signature
database 3988 (20090404) __

The message was checked by ESET Smart Security.

http://www.eset.com
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Security Support

2009-03-29 Thread Marc Christopher Hall
I is a hi skool gradjuate

-Original Message-
From: abdulazeez alugo [mailto:defati...@hotmail.com] 
Sent: Sunday, March 29, 2009 7:10 PM
To: gp...@thenetnow.com; php-general@lists.php.net
Subject: RE: [PHP] Security Support



 

 From: gp...@thenetnow.com
 To: php-general@lists.php.net
 Date: Sun, 29 Mar 2009 17:12:32 -0400
 Subject: [PHP] Security Support
 
 Good Morning / Afternoon,
 
 We run several of our own servers:
 
 - Dell Power Edge 1U, Pentium,
 - FreeBSD (6.x soon to be 7.x)
 - along with all the standard Web Application installation (PHP Apache
Exim, 
 Pop3, Proftp, MySQL etc etc).
 
 What I am asking here, is if any one in this community has the knowledge
to 
 act as a security consultant in an occasional, as required basis. Anyone 
 interested should have expience with Apache, PHP, Perl on the FreeBSD 
 platform.
 
 We are more than willing to compensate for services rendered, and are more

 than willing to discuss terms.
 
 In the end, we would be more than willing to share any non-fudiciary 
 information with anyone who could find it useful (via this or other
mailing 
 lists).
 
 We are asking any interested parties to contact us off-list such that we 
 don't need to make any private matters public.
 
 This is a bonified request, as we can setup servers ourselves, but simply
do 
 not have the time to research various run time, and security related
items.
 
 TIA,
 
 -Grant 


Hey Guys,

Let's be honest with ourselves here. If you've applied for this job, let me
see your hands up!!!

 

Alugo Abdulazeez

www.frangeovic.com

_
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx


__ Information from ESET Smart Security, version of virus signature
database 3973 (20090329) __

The message was checked by ESET Smart Security.

http://www.eset.com

 

__ Information from ESET Smart Security, version of virus signature
database 3973 (20090329) __

The message was checked by ESET Smart Security.

http://www.eset.com
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Frameworks / obstinate?

2009-03-22 Thread Marc Christopher Hall
My personal take on this goes something like this:

I'm not a huge fan of re-inventing the wheel. However, it seems that since
the first stable release of PHP 5 into the wild a much needed emphasis has
been placed on OOP solutions within the PHP world. Don't read me wrong, I
know the importance wasn't lost on folks who already had a good programming
head on their shoulders, yet, in all fairness our hands were a bit tied (and
I feel that I may receive some argument here) until PHP 5 reached its first
stable release. 

That being said, I find that quite a few of the frameworks still seem to be
fledglings and a lot of the new OS projects being built on them are like
wheels with some lumps. Even a few commercial projects seem to be like this.
I also have a positive outlook with PHP5 and 6 and that is that this
language is finally reaching maturity. It is something that I believe and
hope allow for continued growth of our new projects without feeling the need
to dump them like I saw with the PHP4 projects. 

On a final rambling note, I like some of the new frameworks I've looked into
recently, like CodeIgniter, Yii even Sapphire holds some promise (have a
look at the cleaner version in progress). I find myself wanting to add to
them, wanting to help improve them and occasionally I too have a fleeting
moment where I think How would my framework be different if I built one
from scratch? Then I realize I don't have that kind of time! lol My clients
are waiting. Also, I don't seem to have much trouble switching between
frameworks or languages for that matter (PERL, PHP, ASP(bleh), JavaScript,
ActionScript) and I guess because of that I find myself just trying to find
the best solution for the clients need at hand and build from there.


 

-Original Message-
From: Daniel Kolbo [mailto:kolb0...@umn.edu] 
Sent: Sunday, March 22, 2009 4:54 PM
To: php-general@lists.php.net
Cc: Tony Marston
Subject: [PHP] Frameworks / obstinate?

Tony Marston wrote:
 Nitsan Bin-Nun nit...@binnun.co.il wrote in message 
 news:d47da0100903220910q7bb66706s6255f0fc89b98...@mail.gmail.com...
   
 Don't forget to attach the message to the list.

 Regarding the frameworks, which of them, for your opinion, will take the
 fastest time to learn and get into code?
 

 Generally speaking if something is fast to learn it is also the first to
run 
 out of steam. If it doesn't have more features than you can learn in five 
 minutes the it doesn't have enough features to do anything useful, or with

 any degree of flexibility.

   
Hello,

I changed the subject because I did not want to steal Nitsan's thread.
There seem to be a ton of frameworks, one-click installation web 
applications, the latest and greatest wiz-bang applications out there.  
I find myself extremely reluctant to dig into these code sets.  It seems 
when I do attempt to use one of these pre-coded applications I end up 
eventually wanting to modify the code outside of the original extent of 
the project.  Invariably I get frustrated and end up wishing I initially 
begun the development from scratch.  Employers seem to be wanting me to 
have experience with all kinds of 'gimicky' solutions, but I am 
reluctant to be constantly learning new applications (that i'd prefer to 
rewrite myself).  Am I just being hard headed and reluctant to change, 
or is my stance justified?  I suppose the answer is the middle-path.  
That is, read some new projects, take the bits I like, leave the bits I 
don't, etc...The problem is this isn't very marketable.  But I suppose, 
the proof is in the pudding.  What a banal way to end an email, eh?

What are your thoughts in regard to these two forces: wiz-bang 
frameworks vs. raw php development?
thanks,





__ Information from ESET Smart Security, version of virus signature
database 3953 (20090321) __

The message was checked by ESET Smart Security.

http://www.eset.com

 

__ Information from ESET Smart Security, version of virus signature
database 3953 (20090321) __

The message was checked by ESET Smart Security.

http://www.eset.com
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: So called PHP Expert

2009-03-20 Thread Marc Christopher Hall
This is why I am pushing for legislation to make this a licensed profession.

-Original Message-
From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] 
Sent: Friday, March 20, 2009 9:18 PM
To: Shawn McKenzie
Cc: php-general@lists.php.net
Subject: Re: [PHP] Re: So called PHP Expert

On Fri, 2009-03-20 at 18:57 -0500, Shawn McKenzie wrote:
 דניאל דנון wrote:
  I'm a member of some forums about some topics,
  One of them include a programming forum.
  
  Now, I've visited there a week ago and saw a topic with the title Free
  security,
  Someone who calls himself a PHP expert (and said that he could teach me PHP
  since my level is so low), and pretends to have so many clients,
  Posted the following code.
  
  The code is written badly, and in his words - its the best security,
  without this you aren't secured.
  Now, I am looking for a way to explain to him he is no PHP Professional, but
  I can't find the right sentence. Will you help me?
  And here is the code of the so-called PHP Professional who has very large
  amount of big clients and can teach me PHP.
  Help me find something to say to him - I am not so good at that kind of
  stuff
  
  Kind regards,
  Daniel
  
  
  *?
  ###
  ## aNtisQL by Moriel Pahima.
  ###
  $getadd=strtolower($_SERVER[REQUEST_URI]);
  $adr1 = $getadd;
  $adr2x = explode(?,$adr1);
  $adr = $adr1;
  foreach( $_POST as $post = $value )
  $postcc.=$post = $value\n;
  foreach ( $_COOKIE as $cook = $value )
  $cookiecc.=$cook = $value\n;
  foreach ( $_GET as $get = $value )
  $getcc.=$get = $value\n;
  ###
  check($adr1);
  check($postcc);
  check($getcc);
  check($cookiecc);
  function check($antisql){
  if (
  eregi(union,$antisql)eregi(from,$antisql)
  Or
  eregi(ibf_,$antisql)eregi(select,$antisql)
  Or
  eregi(insert,$antisql)eregi(order,$antisql)
  Or
  eregi(update,$antisql)eregi(where,$antisql)
  Or
  eregi(`,$antisql)eregi(truncate,$antisql)
  Or
  eregi(null,$antisql)eregi(alter,$antisql)
  ){
  errorview();
  }
  if (
  eregi(h3x(union),$antisql)eregi(h3x(from),$antisql)
  Or
  eregi(h3x(ibf_),$antisql)eregi(h3x(select),$antisql)
  Or
  eregi(h3x(insert),$antisql)eregi(h3x(order),$antisql)
  Or
  eregi(h3x(update),$antisql)eregi(h3x(where),$antisql)
  Or
  eregi(h3x(`),$antisql)eregi(h3x(truncate),$antisql)
  Or
  eregi(h3x(null),$antisql)eregi(h3x(alter),$antisql)
  ){
  errorview();
  }
  if (
  eregi(h3x(UNION),$antisql)eregi(h3x(FROM),$antisql)
  Or
  eregi(h3x(IBF_),$antisql)eregi(h3x(SELECT),$antisql)
  Or
  eregi(h3x(INSERT),$antisql)eregi(h3x(ORDER),$antisql)
  Or
  eregi(h3x(UPDATE),$antisql)eregi(h3x(WHERE),$antisql)
  Or
  eregi(h3x(`),$antisql)eregi(h3x(TRUNCATE),$antisql)
  Or
  eregi(h3x(NULL),$antisql)eregi(h3x(ALTER),$antisql)
  ){
  errorview();
  }
  }
  ###
  ## All Rights Reserved!
  ###
  function errorview(){
  echo antisql
  center
  aNtisQLnbsp;ANTInbsp;SQL-INJECTIONnbsp;SYSTEM br /
  bynbsp;a href=mailto:
  hidden-since-i-dont-want-to-show-it-on-php-mailinglist
  Morielnbsp;Pahima/a
  /center
  antisql;
  die();
  }
  ###
  function h3x($envar){
  $hax3d = bin2hex($envar);
  $hax3d  = chunk_split($hax3d , 2, %);
  $hax3d  = % . substr($hax3d , 0, strlen($hax3d ) - 1);
  return $hax3d;
  }
  ?*
  
 
 Tell him that the PHP experts and me (PHP hobbyist) on this list won't
 even pick through his code because it is a garbled mass of shit!
 
 Maybe someone else will disagree and say that its a masterpiece, then
 I'll bow out gracefully.
 
 -- 
 Thanks!
 -Shawn
 http://www.spidean.com
 
Nah, the GMS managed to pretty much cover it!


Ash
www.ashleysheridan.co.uk


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


__ Information from ESET Smart Security, version of virus signature 
database 3952 (20090320) __

The message was checked by ESET Smart Security.

http://www.eset.com


 

__ Information from ESET Smart Security, version of virus signature 
database 3952 (20090320) __

The message was checked by ESET Smart Security.

http://www.eset.com
 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Smarty Tips and Techniques

2009-03-19 Thread Marc Christopher Hall
The following comment is not intended to be helpful

*smacks head on desk repeatedly...*


This comment is..

I would hazard to say that if you are unwilling or unable to grasp OOP, MVCs
and any decent framework that is necessary then maybe stepping back and
tackling only things you can grasp. I do not mean to come across
condescending and I apologize if I have anyway; however, I do not see an
alternative solution for you. Stick to what you are comfortable with and
think about outsourcing the OOP to someone you can trust to write decent
code.





-Original Message-
From: Bob McConnell [mailto:r...@cbord.com] 
Sent: Thursday, March 19, 2009 11:06 AM
To: Virgilio Quilario
Cc: php-general@lists.php.net
Subject: RE: [PHP] Smarty Tips and Techniques

From: Virgilio Quilario
 That looks nice, but how do I get to the point where I can understand
 how to use it?

 I have also looked at the Smarty site http://www.smarty.net/, but
 their documents assume significant experience in building and using
 templates.

 Where can I find guidance or tutorials on how to do all of this,
 starting with only a rudimentary knowledge of HTML and PHP. It would
be
 best if they also focused on procedural rather than object oriented
 code.
 
 
 When I started learning smarty, I spent most of my time doing research
 and that's really tiresome and it is so hard to find examples.
 Experimented a lot and listed those what's possible, then applied them
 to my projects.
 
 Now to make them handy I posted them to my site so i can have a look
 whenever and wherever.

http://www.jampmark.com/php-programming/16-very-useful-smarty-scripting-
tips-and-techniques-to-make-templates-smarter.html
 
 As a first step, maybe you should see the crash course at smarty
 http://www.smarty.net/crashcourse.php

Hi Virgil,

After your last post here, I looked at your site, then the Smarty site.
That was what triggered this question. Templates are a black art to me.
I don't even know where to begin to understand them. Every reference I
have looked at so far assumes that I already understand the MVC pattern,
which is also one of the dark arts.

Let me put it simply. I can't grok OO. I tried to do OOP for several
years, but it simply does not make any sense to me. As a direct result,
I don't understand the concept nor application of patterns. So how do I
figure out how to use templates without having to absorb those first?
Can I learn enough this way to determine if a site can be converted from
the current state (PHP and XHTML spaghetti) into templates and begin
that transformation?

Thank you,

Bob McConnell

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


__ Information from ESET Smart Security, version of virus signature
database 3948 (20090319) __

The message was checked by ESET Smart Security.

http://www.eset.com


 

__ Information from ESET Smart Security, version of virus signature
database 3948 (20090319) __

The message was checked by ESET Smart Security.

http://www.eset.com
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PHP Site Security issue

2009-03-19 Thread Marc Christopher Hall

Original message:


I suggest you put in a support ticket with GoDaddy. The URL's are not
genuine and beyond that I would hazard a guess that possibly your site login
has been compromised. Again, contact GoDaddy or whomever your hosting
provider is. (You said you domain is with GD but you didn't say they were
the host; I am just assuming you meant host.)


Added message:
Anybody else get bounced by the list when replying to this thread? And how
is it Pravinc's email didn't get bounced for the inclusion of links and the
replies that included the message did?
 

__ Information from ESET Smart Security, version of virus signature
database 3948 (20090319) __

The message was checked by ESET Smart Security.

http://www.eset.com
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Stopping bad entries in PHP form

2009-03-19 Thread Marc Christopher Hall
IP lookups are like Marxism, great idea in theory, terrible in reality. IP's
can be spoofed. The best recommendation I can think of would be to add some
word filters to your (I'm assuming javascript) form validation script. Even
here caution needs to be used, i.e don't filter Moscow because there is a
Moscow, Idaho




-Original Message-
From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] 
Sent: Thursday, March 19, 2009 5:19 PM
To: Shawn McKenzie
Cc: php-general@lists.php.net
Subject: Re: [PHP] Stopping bad entries in PHP form

On Thu, 2009-03-19 at 16:04 -0500, Shawn McKenzie wrote:
 Ashley Sheridan wrote:
  On Thu, 2009-03-19 at 13:46 -0700, sono...@fannullone.us wrote:
 I have a PHP form that allows end users to request a sample of the  
  products we sell.  Unfortunately, a person/people have found it and  
  are sending in bad requests.  We sell only within the US, and so I've  
  set up the form so that they must choose one of the 50 States.  But we

  keep getting requests with countries in the city field, i.e. Moscow  
  Russia.
 
 Is there a way that I can scan for country names, etc. in the text  
  fields and stop a request from going through if it finds one of those  
  banned words?  I've searched for a solution but haven't been able to

  find it.
 
 If this is not enough info, please let me know.  Also, I only know  
  enough PHP just to be dangerous, so please be kind. =;)
 
  Thanks,
  Frank
 
  Why make them enter the details? Let them choose from a select list
  instead, forcing them to select a state.
  
  
  Ash
  www.ashleysheridan.co.uk
  
 
 Ummm...  And what if they enter or select Texas?  You consider it a
 valid request even though they are really from Moscow and the other
 fields may be junk?
 
 -- 
 Thanks!
 -Shawn
 http://www.spidean.com
 
Is it viable to couple it with an IP lookup to see the country they
appear to be visiting from?


Ash
www.ashleysheridan.co.uk


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


__ Information from ESET Smart Security, version of virus signature
database 3949 (20090319) __

The message was checked by ESET Smart Security.

http://www.eset.com


 

__ Information from ESET Smart Security, version of virus signature
database 3949 (20090319) __

The message was checked by ESET Smart Security.

http://www.eset.com
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] left join does not work, why?

2009-03-15 Thread Marc Christopher Hall
Not to mention if this is written for v 5 then you need to wrap your joins
in ()

-Original Message-
From: Jan G.B. [mailto:ro0ot.w...@googlemail.com] 
Sent: Sunday, March 15, 2009 9:47 AM
To: PJ
Cc: Daniel Brown; php-general@lists.php.net
Subject: Re: [PHP] left join does not work, why?

2009/3/15 PJ af.gour...@videotron.ca:
 Daniel Brown wrote:
 On Sat, Mar 14, 2009 at 19:51, PJ af.gour...@videotron.ca wrote:

 $sql1 = SELECT b.id, b.title, b.sub_title, b.descr, b.comment,
 b.bk_cover, b.copyright, b.ISBN, b.language, b.sellers, c.publisher,
---
 CONCAT_WS(' ', first_name, last_name) AS Author
 FROM book AS b
 LEFT JOIN book_author AS ab ON b.id = ab.bookID
 LEFT JOIN author AS a ON ab.authID=a.id
 LEFT JOIN book_publisher as abc ON b.id = abc.bookID // ---
 LEFT JOIN publishers AS c ON abc.publishers_id = c.id // ---
 ORDER BY title ASC ;
 $result1 = mysql_query($sql1, $db);
 $bookCount = mysql_num_rows($result1);
 The error reported now is to check the syntax near the commented out
lines.
 So, what is going on here? I understood that when the lines are
 commented out they are not lprocessed.
 When I deleted the commented out lines the errors went away.
 This does not make sense and obviously could be very misleading in
 debugging.


*How* are you commenting out? Mysql accepts /* such comments */, so if
you want to transform a line in your SQL query string into a comment,
you gotta do it that way.
so this is just wrong:
$x =  select *
// from foo
from bar;
and that query would be valid
SELECT this/*, that*/ from x

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


__ Information from ESET Smart Security, version of virus signature
database 3937 (20090314) __

The message was checked by ESET Smart Security.

http://www.eset.com


 

__ Information from ESET Smart Security, version of virus signature
database 3937 (20090314) __

The message was checked by ESET Smart Security.

http://www.eset.com
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] DOM - change a tag name ??

2009-03-11 Thread Marc Christopher Hall
Unfortunately, you are correct. This is the only way to do it at the moment.
tagName/nodeName are readonly in the DOM and are set when created. I know
this is possible in the .NET world and I am still beside myself as to which
is the better way.


-Original Message-
From: Michael A. Peters [mailto:mpet...@mac.com] 
Sent: Wednesday, March 11, 2009 1:40 PM
To: php-general@lists.php.net
Subject: Re: [PHP] DOM - change a tag name ??

Michael A. Peters wrote:
 If I'm manipulating a dom object, is there a way to change the tag name?
 I know you manipulate just about everything else in a node - but is the 
 tagName really off limits?
 
 from the documentation for DOMElement -
 
 /* Properties */
 readonly public bool $schemaTypeInfo ;
 readonly public string $tagName ;
 
 so if I really needed to change it, I'd have to create a virgin node 
 with the new name, identical attributes and children, and replace the 
 existing node with the new one?
 
 Is there any other way to alter the tagName without doing all that?
 

I've not actually tried this (IE may be errors) - I will in a little 
bit, but is something like this really the only way to change a tag name?

function changeNodeElement($document,$node,$elementTag) {
$newNode = $document-createElement($elementTag);
// get all attributes from old node
$attributes = $node-attributes;
foreach ($attributes as $attribute) {
   $name = $attribute-name;
   $value = $attribute-value;
   $newNode-setAttribute($name,$value);
   }
// get all children from old node
$children = $node-childNodes();
foreach ($children as $child) {
   // clone node and add it to newNode
   $newChild = $child-cloneNode(true);
   $newNode-appendChild($newChild);
   }
// replace the old node with the newNode
$node-parent-replaceChild($newNode,$node);
}

It seems that changing the tag name should be a little easier. I don't 
expect s/oldtag/newtag/ but am I just missing something obvious?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


__ Information from ESET Smart Security, version of virus signature
database 3927 (20090311) __

The message was checked by ESET Smart Security.

http://www.eset.com


 

__ Information from ESET Smart Security, version of virus signature
database 3927 (20090311) __

The message was checked by ESET Smart Security.

http://www.eset.com
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: PHP Frameworks

2009-03-09 Thread Marc Christopher Hall
@todd; Micah - Precisely why I presented the question anew. Not only do I not 
have enough time to troll through the archives; I was looking for a fresher set 
of responses based on today's smorgasbord. Thank you for your input; I have 
looked at both YII and CI and they look promising. I love the statement about 
PEAR! That gave me a chuckle. With PHP 5.3 around the corner and looking 
forward to both PHP/MySQL 6; I am ISO a framework that is just as forward 
looking. I have already worked with Sapphire/SilverStripe for a client of mine 
and I find it comes with a lot of overhead. It does seem to be a promising 
future contender.


Thanks - Marc
Measure twice and cut once.

-Original Message-
From: haliphax [mailto:halip...@gmail.com] 
Sent: Monday, March 09, 2009 10:00 AM
To: php-general@lists.php.net
Subject: Re: [PHP] Re: PHP Frameworks

On Sun, Mar 8, 2009 at 11:57 PM, Micah Gersten
news.php@micahscomputing.com wrote:
 Chetan Rane wrote:
 HI

 I also was looking for various frameworks and came across a very nice
 framework, which is feature rich as well as very fast

 You can see more details at http://www.yiiframework.com/


 -Original Message-
 From: Micah Gersten [mailto:news.php@micahscomputing.com]
 Sent: Monday, March 09, 2009 9:52 AM
 To: php-general@lists.php.net
 Subject: [PHP] Re: PHP Frameworks

 HallMarc Websites wrote:
 First time caller; long time listener..

 I have been looking at various PHP MVC frameworks; Limb3, Symphony,
 Mojavi,
 Navigator, WACT, etc.

 I'm looking for any input anyone might have regarding which framework
 seems
 to be the most promising?


 I'm currently using Zend PHP Framework + Doctrine ORM.  Symfony has a
 little better integration with Doctrine.  I chose the Zend PHP Framework
 because of the rapid release schedule and large feature set.

 You might want to check the archives as this discussion has come up before.


 Please keep on list by hitting reply-all.  Someone else already
 mentioned yii framework.

Yes, this discussion has been hashed and rehashed more times than most
of us care to think about. The only thing I have to add since the last
time this came up was that I have been using CodeIgniter lately on a
personal project of mine, and I find it quite pleasant. It's like
Cake, only slimmer--but not lacking in important core features. Pretty
quick little bugger, too, and very easy to learn.


-- 
// Todd

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


__ Information from ESET Smart Security, version of virus signature 
database 3920 (20090309) __

The message was checked by ESET Smart Security.

http://www.eset.com


 

__ Information from ESET Smart Security, version of virus signature 
database 3920 (20090309) __

The message was checked by ESET Smart Security.

http://www.eset.com
 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php