php-general Digest 21 May 2008 00:05:12 -0000 Issue 5470

Topics (messages 274552 through 274584):

Re: Help Call Javascript Methods Inside PHP
        274552 by: Shelley
        274553 by: Shelley
        274554 by: Richard Heyes
        274555 by: Shiplu
        274562 by: Thiago Pojda
        274564 by: Thiago Pojda
        274572 by: tedd

Function not in the documentation
        274556 by: Christoph Boget
        274558 by: Wolf
        274559 by: Shiplu
        274565 by: Zoltán Németh

Re: Semi-OT: PHP Login with client security
        274557 by: Wolf
        274561 by: Eric Butera
        274570 by: tedd

Data request
        274560 by: Chris Haensel

Re: 0T -  Request for quick test
        274563 by: Thiago Pojda
        274566 by: Zoltán Németh
        274567 by: Ryan S
        274573 by: James

unset thoughts
        274568 by: Nathan Rixham
        274569 by: Nathan Rixham

reretrieve header from email
        274571 by: Yui Hiroaki
        274578 by: Richard Heyes
        274584 by: Chris

Enterprise
        274574 by: Ray Hauge
        274575 by: Dan Joseph
        274576 by: Wolf
        274577 by: Zoltán Németh
        274579 by: Richard Heyes

php mysql live feed
        274580 by: admin.buskirkgraphics.com
        274581 by: Kyle Browning
        274582 by: Richard Heyes

syntax of sprintf
        274583 by: Sudhakar

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 ---
You missed what I meant.

Suppose there is a piece of code like:
<script language-"javascript">
function hello() {
    document.write "hello";
}
</script>

I want to call that method inside PHP:
<?php
$c = hello();
echo $c;
?>

Hope you get it.


On Tue, May 20, 2008 at 5:40 PM, Chetan Rane <[EMAIL PROTECTED]>
wrote:

> Yea
>
> You can use the script tag in PHP
>
> Its like
> <?php phpcode.... ?>
>
> <script language="javascript" src="soruce of the file"
> type="text\javascript"/>
>
> <script language=javascript>
> Funcyion()
> </script>
>
> <?php phpcode ?>
>
> This works
>
> Chetan Dattaram Rane
> Software Engineer
>
>
>
> -----Original Message-----
> From: Shelley [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 20, 2008 3:06 PM
> To: PHP General list
> Subject: [PHP] Help Call Javascript Methods Inside PHP
>
> Hi all,
>
> How can I call a javascript method inside PHP?
> That is:
> Suppose there is a js file: http://someurl/somejs.js
> There are some js methods in that js file,
> I want to include that js into PHP and call its methods.
>
> Is it possible?
> If it is, how?
>
> Thank you very much.
>
> --
> Regards,
> Shelley
>
>


-- 
Regards,
Shelley

--- End Message ---
--- Begin Message ---
Yea, of course.

On Tue, May 20, 2008 at 5:44 PM, jose javier parra sanchez <
[EMAIL PROTECTED]> wrote:

> Do you know that php runs on the server and that javascript runs on the
> client ?
>
> 2008/5/20 Shelley <[EMAIL PROTECTED]>:
> > Hi all,
> >
> > How can I call a javascript method inside PHP?
> > That is:
> > Suppose there is a js file: http://someurl/somejs.js
> > There are some js methods in that js file,
> > I want to include that js into PHP and call its methods.
> >
> > Is it possible?
> > If it is, how?
> >
> > Thank you very much.
> >
> > --
> > Regards,
> > Shelley
> >
>



-- 
Regards,
Shelley

--- End Message ---
--- Begin Message ---
Shelley wrote:
Hi all,

How can I call a javascript method inside PHP?
That is:
Suppose there is a js file: http://someurl/somejs.js
There are some js methods in that js file,
I want to include that js into PHP and call its methods.

Is it possible?

No.


What you can do though is use PHP to send some HTML to the browser which calls Javascript methods.

--
              Richard Heyes

         In Cambridge? Employ me
        http://www.phpguru.org/cv

+----------------------------------------+
| Access SSH with a Windows mapped drive |
|    http://www.phpguru.org/sftpdrive    |
+----------------------------------------+

--- End Message ---
--- Begin Message ---
On 5/20/08, Shelley <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> How can I call a javascript method inside PHP?
> That is:
> Suppose there is a js file: http://someurl/somejs.js
> There are some js methods in that js file,
> I want to include that js into PHP and call its methods.
>
> Is it possible?
> If it is, how?
>
> Thank you very much.
>
> --
> Regards,
>
> Shelley
>

Hello,
Its possible. I think you have to find seamonkey binding for php or you have
to create it.
There is javascript engine from mozilla. you can use that too.

--
A. K. M. Mokaddim
http://talk.cmyweb.net

--- End Message ---
--- Begin Message ---
What Richard meant was:

/// FILE.PHP ///
<?php
        $var = 123;
        if ($var > 100){
?>
        <script language="JavaScript"> alert('Bigger than 100'); </script>

<?php
        }
?>

/// EOF ///

That way you can conditionally send some JS to client, but running actual JS
in PHP is not possible.


(Not sure about Jscript [script runat=server] tho, I believe it only runs on
IIS)


Atenciosamente,

www.softpartech.com.br


Thiago Henrique Pojda
Desenvolvimento Web
+55 41 3033-7676
[EMAIL PROTECTED]
Excelência em Softwares Financeiros

-----Mensagem original-----
De: Richard Heyes [mailto:[EMAIL PROTECTED] 
Enviada em: terça-feira, 20 de maio de 2008 06:53
Para: Shelley
Cc: PHP General list
Assunto: Re: [PHP] Help Call Javascript Methods Inside PHP

Shelley wrote:
> Hi all,
> 
> How can I call a javascript method inside PHP?
> That is:
> Suppose there is a js file: http://someurl/somejs.js
> There are some js methods in that js file,
> I want to include that js into PHP and call its methods.
> 
> Is it possible?

No.


What you can do though is use PHP to send some HTML to the browser which 
calls Javascript methods.

-- 
               Richard Heyes

          In Cambridge? Employ me
         http://www.phpguru.org/cv

+----------------------------------------+
| Access SSH with a Windows mapped drive |
|    http://www.phpguru.org/sftpdrive    |
+----------------------------------------+

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





--- End Message ---
--- Begin Message ---
Yeah, I just checked out and that runat=Server thingy is an asp thing.


Atenciosamente,
www.softpartech.com.br
Thiago Henrique Pojda
Desenvolvimento Web
+55 41 3033-7676
[EMAIL PROTECTED]
Excelência em Softwares Financeiros


-----Mensagem original-----
De: Thiago Pojda [mailto:[EMAIL PROTECTED] 
Enviada em: terça-feira, 20 de maio de 2008 11:41
Para: [EMAIL PROTECTED]; 'Shelley'
Cc: 'PHP General list'
Assunto: RES: [PHP] Help Call Javascript Methods Inside PHP

What Richard meant was:

/// FILE.PHP ///
<?php
        $var = 123;
        if ($var > 100){
?>
        <script language="JavaScript"> alert('Bigger than 100'); </script>

<?php
        }
?>

/// EOF ///

That way you can conditionally send some JS to client, but running actual JS
in PHP is not possible.


(Not sure about Jscript [script runat=server] tho, I believe it only runs on
IIS)


Atenciosamente,

www.softpartech.com.br


Thiago Henrique Pojda
Desenvolvimento Web
+55 41 3033-7676
[EMAIL PROTECTED]
Excelência em Softwares Financeiros

-----Mensagem original-----
De: Richard Heyes [mailto:[EMAIL PROTECTED] 
Enviada em: terça-feira, 20 de maio de 2008 06:53
Para: Shelley
Cc: PHP General list
Assunto: Re: [PHP] Help Call Javascript Methods Inside PHP

Shelley wrote:
> Hi all,
> 
> How can I call a javascript method inside PHP?
> That is:
> Suppose there is a js file: http://someurl/somejs.js
> There are some js methods in that js file,
> I want to include that js into PHP and call its methods.
> 
> Is it possible?

No.


What you can do though is use PHP to send some HTML to the browser which 
calls Javascript methods.

-- 
               Richard Heyes

          In Cambridge? Employ me
         http://www.phpguru.org/cv

+----------------------------------------+
| Access SSH with a Windows mapped drive |
|    http://www.phpguru.org/sftpdrive    |
+----------------------------------------+

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





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





--- End Message ---
--- Begin Message ---
At 11:41 AM -0300 5/20/08, Thiago Pojda wrote:
That way you can conditionally send some JS to client, but running actual JS
in PHP is not possible.

While running JS inside of PHP is at best confusing, it is possible to use both php and javascript together. For example:

You can use php to run javascript, right?

And, you can use javascript and run php, right?

So, all you need between the two is communication, right?

Think of ajax.

Here's an example:

http://webbytedd.com/b/timed-php/

It just takes a little work.

Cheers,

tedd
--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--- End Message ---
--- Begin Message ---
I ran across a PHP function, strip_illegal_chars(), but can't seem to
find anything about it in the documentation.  Does anyone know
precisely what it does?  Or where I can find actual documentation for
that function?

thnx,
Chris

--- End Message ---
--- Begin Message ---
Christoph Boget wrote:
I ran across a PHP function, strip_illegal_chars(), but can't seem to
find anything about it in the documentation.  Does anyone know
precisely what it does?  Or where I can find actual documentation for
that function?

thnx,
Chris

Sure, whatever code you found it in, is where it is defined as it is not a part of the manual and google is a no-go.

Where did you run across it?

Wolf


--- End Message ---
--- Begin Message ---
On Tue, May 20, 2008 at 8:24 AM, Christoph Boget <[EMAIL PROTECTED]> wrote:

> > > I ran across a PHP function, strip_illegal_chars(), but can't seem to
> > > find anything about it in the documentation.  Does anyone know
> > > precisely what it does?  Or where I can find actual documentation for
> > > that function?
> > Check if the reflection function work on these function.
> > If no documentation found, you'll get some idea.
>
> What reflection function?  Reflection appears to only work on classes, not
> functions.
>
> thnx,
> Chris
>
>
>
>
Please see this,
http://www.php.net/manual/en/language.oop5.reflection.php#language.oop5.reflection.reflectionfunction

-- 
A K M Mokaddim
http://talk.cmyweb.net/

--- End Message ---
--- Begin Message ---
> I ran across a PHP function, strip_illegal_chars(), but can't seem to
> find anything about it in the documentation.  Does anyone know
> precisely what it does?  Or where I can find actual documentation for
> that function?

it is not in the PHP source:
http://lxr.php.net/search?string=strip_illegal_chars

so it is not a php builtin function. also Google returns 0 results for
'strip_illegal_chars php' so it must be defined somewhere in the code you
found it

greets,
Zoltán Németh

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



--- End Message ---
--- Begin Message ---
IMHO, you should be testing this long before taking it to the customer and 
having another failure to show off.

Personally, 2 failures is good reason NOT to purchase someone's services...

Wolf

-----Original Message-----
From: Tim Thorburn <[EMAIL PROTECTED]>
Sent: Monday, May 19, 2008 3:20 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Semi-OT: PHP Login with client security

robert wrote:
>
> On May 18, 2008, at 10:14 PM, Tim Thorburn wrote:
>
>> Hi all,
>>
>> Having a slight problem with a demo I gave at a clients last week - 
>> looking for a little advise.  Part of my demo involved a password 
>> protected area - the simplified process is: client enters password on 
>> login page > if login/password match encrypted database, PHP session 
>> is created, form forwards to a secured area > secured area checks to 
>> make sure PHP session is valid > if valid display content, if not, 
>> return to login screen.
>>
>> This procedure is what I've used for many years, tested on a variety 
>> of servers and connections.  It works.  During the demo with my 
>> client, I was able to enter login/password info, the PHP session was 
>> created - however the screen would not forward to the secured area.  
>> Instead I was pretended with a blank screen (client only has an 
>> outdated/non-updated version of IE6).  If I were to type in the URL 
>> to the secured area, it would display content properly.  As a test, I 
>> logged out, closed my browser and started again, this time entering 
>> an incorrect login/password - again it would not forward to the next 
>> screen properly, however this time when I typed in the full URL, it 
>> would not display as the session hadn't been created.
>>
>> I've spoken briefly with my clients IT person, however he's unwilling 
>> to share any firewall information or really anything regarding their 
>> security setup - which I understand as I'm not an employee and just a 
>> contractor.
>>
>> So, after long winded description - does anyone with network security 
>> experience have any idea either a) what I would need to ask the IT 
>> person to allow for their site only, or b) have any suggestions for 
>> alternate password authentication that may work given the above 
>> conditions?
>>
>> TIA
>> -Tim
>
>
>
> try to use a full url instead of relative. e.g.
>
> header('location: thankyou.php');
>
> vs.
>
> header('location: http://www.mysite.com/thankyou.php');
>
> or use $_SERVER['DOCUMENT_ROOT'] for portability.
>
> i think this is some weirdness on IE6. this worked for me.
>
I'll try $_SERVER['DOCUMENT_ROOT'] during my next demonstration which 
should be sometime next week.  Odd that this issue has never come up 
before O.o



--- End Message ---
--- Begin Message ---
On Mon, May 19, 2008 at 4:03 PM, Richard Heyes <[EMAIL PROTECTED]> wrote:
> Since when has that mattered? :-)

:-) to you too.

--- End Message ---
--- Begin Message ---
At 9:32 PM +0200 5/19/08, Per Jessen wrote:
Wolf wrote:
 >and IE has always been more stringent in-so-far as displaying things
that match up to THEIR standards instead of industry or
fly-by-your-seat coding (accidentally leaving off a closing tag) then Mozilla and Firefox have historically been.

Microsoft has never published THEIR standards, so how do you determine
how stringent IE is in adherering to them?

Apparently their standards change from one IE to another because none of them adhere to their own standards. It seems like a contradiction of terms when talking about M$ with respect to standards.
Cheers,

tedd



--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--- End Message ---
--- Begin Message ---
Hi fellas (and ladies)

Again, I know this is kind of an OT post, but I know that many, if not most,
developers are kind of data-collectors.

I am looking for a database with US airport runway information. I got all
kinds of stuff, but this one is keeping me busy. What I need is ICAO code,
runway numbers, length, with, TDZE and stuff like that.

Any aviation nut out there having that kind of stuff?

All the best from germany (ex-Oklahoman)

Chris


--- End Message ---
--- Begin Message ---
Your JS for email verification is annoying :P

Type something in email address field and then go to next field, and then
press shift+tab or alt+tab and see it going nuts :)


I second what Daniel said about that green arrow and, yeah it actually
worked here too. :D


Atenciosamente,
www.softpartech.com.br
Thiago Henrique Pojda
Desenvolvimento Web
+55 41 3033-7676
[EMAIL PROTECTED]
Excelência em Softwares Financeiros


-----Mensagem original-----
De: Ryan S [mailto:[EMAIL PROTECTED] 
Enviada em: terça-feira, 20 de maio de 2008 01:01
Para: php php
Assunto: [PHP] 0T - Request for quick test

 Hey guys,

Just make a egreeting app and need people to just test the AJAXy upload that
i have on the form, if you have any problems please tell me.. if it goes
smooth please tell me... as usual, any comments and suggestions too would be
appreciated.

This is the form:
http://www.ezee.se/ezee-ecard-egreetings/step2_v2.php


All i want you to do is click the above link, click the file/browse button
and try to upload a .jpg/jpeg image... 



Thanks in advance!
Ryan
P.S section is not yet open & am still testing stuff so dont try to create
any egreetings right now :)



      

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





--- End Message ---
--- Begin Message ---
>
>
>  Hey guys,
>
> Just make a egreeting app and need people to just test the AJAXy upload
> that i have on the form, if you have any problems please tell me.. if it
> goes smooth please tell me... as usual, any comments and suggestions too
> would be appreciated.
>
> This is the form:
> http://www.ezee.se/ezee-ecard-egreetings/step2_v2.php
>
>
> All i want you to do is click the above link, click the file/browse button
> and try to upload a .jpg/jpeg image...

works here on firefox 3 beta 5 / ubuntu

greets,
Zoltán Németh

>
>
>
> Thanks in advance!
> Ryan
> P.S section is not yet open & am still testing stuff so dont try to create
> any egreetings right now :)
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



--- End Message ---
--- Begin Message ---
Hey Daniel B, Steve H and Thiago P,

Thanks for replying!

My
cuz couldnt upload from her browser, thats why i requested this...
wanted a upload with progress bar but this was the best simple one i
could find which unfortunatly didnt have a progress bar but was free
and OS.

> Looks like it worked, Ryan.  One suggestion, though: instead of the button 
> next to the green arrow....

Had
a problem with something conflicting with Javascript's form submit(),
and since i am using quite a lot of OS free scripts from other people
and wrote more JS here myself than on any other project that comes to
mind AND i am no JS guru... thought i would just work around that
instead of confronting it head on.

<clip>
Your JS for email verification is annoying :P

Type something in email address field and then go to next field, and then
press shift+tab or alt+tab and see it going nuts :)
</clip>

Hehe! I see what you mean... you're like a little gremlin to catch that LOL! 
I
am actually checking server side again if the user has entered the
correct values, but the reason i put it there was just as a reminder
because a lot of people are used to just entering their email once...
do you think its over kill and i should just do it server side?


Its
quite easy to bypass the JS code if you REALLY wanted to do it... and
if you do you will see that the script gives you a "error box" and
shows you the form again...

Thanks for the suggestions, am still open to any more you might have

Cheers!
R

------
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)


----- Original Message ----
From: Daniel Brown <[EMAIL PROTECTED]>
To: Ryan S <[EMAIL PROTECTED]>
Cc: php php <[EMAIL PROTECTED]>
Sent: Tuesday, May 20, 2008 6:38:01 AM
Subject: Re: [PHP] 0T - Request for quick test

On Tue, May 20, 2008 at 12:01 AM, Ryan S <[EMAIL PROTECTED]> wrote:
>
>
>  Hey guys,
>
>
Just make a egreeting app and need people to just test the AJAXy upload
that i have on the form, if you have any problems please tell me.. if
it goes smooth please tell me... as usual, any comments and suggestions
too would be appreciated.

    Looks like it worked, Ryan.  One suggestion, though: instead of
the button next to the green arrow, why not use something like this
instead?

<input type="image" name="submitGraphic" id="submitGraphic"
src="/path/to/image.png" value="Click!" />



      

--- End Message ---
--- Begin Message ---
>
> Your JS for email verification is annoying :P
>
> Type something in email address field and then go to next field, and then
> press shift+tab or alt+tab and see it going nuts :)
>
>
> I second what Daniel said about that green arrow and, yeah it actually
> worked here too. :D
>
>
> Atenciosamente,
> www.softpartech.com.br
> Thiago Henrique Pojda
> Desenvolvimento Web
> +55 41 3033-7676
> [EMAIL PROTECTED]
> Excelência em Softwares Financeiros
>
>
> -----Mensagem original-----
> De: Ryan S [mailto:[EMAIL PROTECTED]
> Enviada em: terça-feira, 20 de maio de 2008 01:01
> Para: php php
> Assunto: [PHP] 0T - Request for quick test
>
>  Hey guys,
>
> Just make a egreeting app and need people to just test the AJAXy upload
> that
> i have on the form, if you have any problems please tell me.. if it goes
> smooth please tell me... as usual, any comments and suggestions too would
> be
> appreciated.
>
> This is the form:
> http://www.ezee.se/ezee-ecard-egreetings/step2_v2.php
>
>
> All i want you to do is click the above link, click the file/browse button
> and try to upload a .jpg/jpeg image...
>
>
>
> Thanks in advance!
> Ryan
> P.S section is not yet open & am still testing stuff so dont try to create
> any egreetings right now :)
>
>
> press shift+tab or alt+tab and see it going nuts :)
>
>
> I second what Daniel said about that green arrow and, yeah it actually
> worked here too. :D
>
>
> Atenciosamente,
> www.softpartech.com.br

Works fine in FF3 B5.


--- End Message ---
--- Begin Message ---
what do we think of:

while(1) {
 #script here to do stuff
 unset( array_keys(get_defined_vars()) );
 sleep(10);
}

thoughts anybody, or a better way of keeping memory usage down on other peoples scripts that I don't have time to fumble about cleaning

Regards

Nath

--- End Message ---
--- Begin Message ---
Nathan Rixham wrote:
what do we think of:

while(1) {
 #script here to do stuff
 unset( array_keys(get_defined_vars()) );
 sleep(10);
}

thoughts anybody, or a better way of keeping memory usage down on other peoples scripts that I don't have time to fumble about cleaning

Regards

Nath

scratch that!

--- End Message ---
--- Begin Message ---
Does anyone knows how to retrieve Header from email?


Regards,
Yui

--- End Message ---
--- Begin Message ---
Yui Hiroaki wrote:
Does anyone knows how to retrieve Header from email?

Depends how you have your email. For example you could use Mail_mimeDecode, optionally in combination with Net_POP3. If it's an IMAP account you're checking, you could use the IMAP extension instead, which would also mean you probably won't need Mail_mimeDecode.

--
              Richard Heyes

         In Cambridge? Employ me
        http://www.phpguru.org/cv

+----------------------------------------+
| Access SSH with a Windows mapped drive |
|    http://www.phpguru.org/sftpdrive    |
+----------------------------------------+

--- End Message ---
--- Begin Message ---
Richard Heyes wrote:
> Yui Hiroaki wrote:
>> Does anyone knows how to retrieve Header from email?
> 
> Depends how you have your email. For example you could use
> Mail_mimeDecode, optionally in combination with Net_POP3. If it's an
> IMAP account you're checking, you could use the IMAP extension instead,
> which would also mean you probably won't need Mail_mimeDecode.

The imap functions can check a pop3 account, it doesn't have to be an
imap account.

-- 
Postgresql & php tutorials
http://www.designmagick.com/

--- End Message ---
--- Begin Message --- I just read an interesting article about enterprise software. One of the most common arguments against PHP tends to be "It's not enterprise ready." This article talks more about ruby, but it could be about any "non-enterprise" language as well.

http://lists.canonical.org/pipermail/kragen-tol/2005-April/000772.html

I recently got a new job at a hospital, and the "enterprise software" they have is no where near as high quality as it could/should be. This is my first job at a somewhat large organization (500+ employees) so I was kind of shocked at the state of their software. Typically healthcare systems are further behind in the technology adoption, but having to deal with workarounds all day long sure gets old.

--
Ray Hauge
www.primateapplications.com

--- End Message ---
--- Begin Message ---
On Tue, May 20, 2008 at 1:46 PM, Ray Hauge <[EMAIL PROTECTED]>
wrote:

> I just read an interesting article about enterprise software.  One of the
> most common arguments against PHP tends to be "It's not enterprise ready."
>  This article talks more about ruby, but it could be about any
> "non-enterprise" language as well.
>
> http://lists.canonical.org/pipermail/kragen-tol/2005-April/000772.html
>
> I recently got a new job at a hospital, and the "enterprise software" they
> have is no where near as high quality as it could/should be.  This is my
> first job at a somewhat large organization (500+ employees) so I was kind of
> shocked at the state of their software.  Typically healthcare systems are
> further behind in the technology adoption, but having to deal with
> workarounds all day long sure gets old.
>
> --
> Ray Hauge
> www.primateapplications.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Well, I know one problem is the view of "free" or "opensource" in some
people's eyes is that there must be something wrong with it.  PHP falls into
this category.  I work for a large corporation, we use PHP here, Yahoo uses
it, a lot of places use it.  It can handle enterprise.  Really, I think the
architecture of the software would dictate that more than that language.

-- 
-Dan Joseph

www.canishosting.com - Plans start @ $1.99/month. Reseller plans and
Dedicated servers available.

"Build a man a fire, and he will be warm for the rest of the day.
Light a man on fire, and will be warm for the rest of his life."

--- End Message ---
--- Begin Message ---
---- Ray Hauge <[EMAIL PROTECTED]> wrote: 
> I just read an interesting article about enterprise software.  One of 
> the most common arguments against PHP tends to be "It's not enterprise 
> ready."  This article talks more about ruby, but it could be about any 
> "non-enterprise" language as well.
> 
> http://lists.canonical.org/pipermail/kragen-tol/2005-April/000772.html
> 
> I recently got a new job at a hospital, and the "enterprise software" 
> they have is no where near as high quality as it could/should be.  This 
> is my first job at a somewhat large organization (500+ employees) so I 
> was kind of shocked at the state of their software.  Typically 
> healthcare systems are further behind in the technology adoption, but 
> having to deal with workarounds all day long sure gets old.
> 

Realize your "recent" article was published in 2005 (read the link) and not to 
mention that this has been brought up about 6 different times in the last 4 
months...

Wolf

--- End Message ---
--- Begin Message ---
Ray Hauge írta:
I just read an interesting article about enterprise software. One of the most common arguments against PHP tends to be "It's not enterprise ready." This article talks more about ruby, but it could be about any "non-enterprise" language as well.

http://lists.canonical.org/pipermail/kragen-tol/2005-April/000772.html

I recently got a new job at a hospital, and the "enterprise software" they have is no where near as high quality as it could/should be. This is my first job at a somewhat large organization (500+ employees) so I was kind of shocked at the state of their software. Typically healthcare systems are further behind in the technology adoption, but having to deal with workarounds all day long sure gets old.


hmm I read the article, and it seems to hit the nail on the head. I am currently leaving the company I work for because these symptoms. our project, which is large and well-designed, but not 'enterprise' in this way, is now transformed into something I do not want to participate in anymore. the company employed some uncompetent but highly paid consultants who sell the software although it is not nearly finished, they interfere with the development, and so on... so one by one the original developers quit, and the software becomes enterprise, developed by incompetent and cheap new developers :(

although it is completely written in PHP, with the Symfony framework, so it is a proof that PHP is enterprise-ready, whether it is good or not

greets,
Zoltán Németh

--- End Message ---
--- Begin Message ---
Ray Hauge wrote:
I just read an interesting article about enterprise software. One of the most common arguments against PHP tends to be "It's not enterprise ready." This article talks more about ruby, but it could be about any "non-enterprise" language as well.

http://lists.canonical.org/pipermail/kragen-tol/2005-April/000772.html

I recently got a new job at a hospital, and the "enterprise software" they have is no where near as high quality as it could/should be. This is my first job at a somewhat large organization (500+ employees) so I was kind of shocked at the state of their software. Typically healthcare systems are further behind in the technology adoption, but having to deal with workarounds all day long sure gets old.

Seems like PHP is already in the enterprise:

http://www.phpguru.org/article/14

--
              Richard Heyes

         In Cambridge? Employ me
        http://www.phpguru.org/cv

+----------------------------------------+
| Access SSH with a Windows mapped drive |
|    http://www.phpguru.org/sftpdrive    |
+----------------------------------------+

--- End Message ---
--- Begin Message ---
Okay before i pull more hair out...

I am trying to use php to pull mysql data and refresh the mysql data every say 
5 seconds for like a live display of the database without the screen reloading.

I want the data to refresh but not the screen. Ajax seems to hate me because 
everything i have seen/read/tried is wrapped around ASP.NET or requires a user 
interaction to invoke the query.

If you have example scripts or a good tutorial that actually works where you 
can open a php script and the data changes on the page as the database does and 
the screen does not refresh, and you don’t have to onclick, onfocus, or onblur 
kind of thing. I would be in your debt

Frustrated Rick

--- End Message ---
--- Begin Message ---
Check out jQuery.

http://jquery.com

On May 20, 2008, at 1:24 PM, [EMAIL PROTECTED] wrote:

Okay before i pull more hair out...

I am trying to use php to pull mysql data and refresh the mysql data every say 5 seconds for like a live display of the database without the screen reloading.

I want the data to refresh but not the screen. Ajax seems to hate me because everything i have seen/read/tried is wrapped around ASP.NET or requires a user interaction to invoke the query.

If you have example scripts or a good tutorial that actually works where you can open a php script and the data changes on the page as the database does and the screen does not refresh, and you don’t have to onclick, onfocus, or onblur kind of thing. I would be in your debt

Frustrated Rick

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



--- End Message ---
--- Begin Message ---
[EMAIL PROTECTED] wrote:
Okay before i pull more hair out...

I am trying to use php to pull mysql data and refresh the mysql data
every say 5 seconds for like a live display of the database without
the screen reloading.

I want the data to refresh but not the screen. Ajax seems to hate me
because everything i have seen/read/tried is wrapped around ASP.NET
or requires a user interaction to invoke the query.

If you have example scripts or a good tutorial that actually works
where you can open a php script and the data changes on the page as
the database does and the screen does not refresh, and you don’t have
to onclick, onfocus, or onblur kind of thing. I would be in your debt

You can use setTimeout() to delay a call to a Jabbascript function. Remember that the second argument is milliseconds, and not seconds. Eg.

setTimeout('alert("Hello")', 1000);

--
              Richard Heyes

         In Cambridge? Employ me
        http://www.phpguru.org/cv

+----------------------------------------+
| Access SSH with a Windows mapped drive |
|    http://www.phpguru.org/sftpdrive    |
+----------------------------------------+

--- End Message ---
--- Begin Message ---
until i started using the techniques for avoiding sql injection, i
have been using a normal insert and select sql query which worked
fine.
i have a registration page where a user enters their username and if
this already exists i display a message by executing a select query
and if the username does not exist then i run an insert query.

after adopting the technique to avoid sql injection
if(get_magic_quotes_gpc())
{
$username = stripslashes($_POST["username"]);
$email =    stripslashes($_POST["email"]);
}
else
{
$username = $_POST["username"];
$email =    $_POST["email"];
}

previously my select and insert query were

INSERT INTO individuals(username, email) values('$username', '$email')
Select username from individuals where username = '$username'

presently the insert query is

$insertquery = sprintf("INSERT INTO individuals (username, email)  VALUES
('%s', '%s')",
mysql_real_escape_string($username), mysql_real_escape_string($email));

This insert query is working however the select query is not doing its task
as before of checking if the username already exists or not, even if i
register with the same username again it does not alert that the username
exists.

the select query is

$selectqueryusername = sprintf("Select username from individuals where
username='%s'", mysql_real_escape_string($username));

should i change the syntax of the above select query or is there something
else in need to do to fix the select query.
also for insert query if i have a numeric value i should be writting %d
correct, i have a numeric value however before inserting that
numeric value i am appending a character "-" to combine area code and phone
number example 09-123 4567 so i am considering this as %s as there is a
character. is this correct.

please advice.

thanks.

--- End Message ---

Reply via email to