Re: [PHP] Help me debug this

2009-04-20 Thread kranthi
i find var_dump useful in these situations, and for error reporting
try trigger error. http://php.net/manual/en/function.trigger-error.php

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



Re: [PHP] Help me debug this

2009-04-20 Thread Phpster



On Apr 20, 2009, at 17:23, Patrick Moloney  wrote:

Some months ago I downloaded and installed Apache, PHP and MySql.  
With only light use they seem to be working.
I have downloaded a Test Script from the VBulletin vendor that is  
supposed to determine if your setup could run their product. The  
Test Script is php and appears as a form that allows you to enter a  
Mysql database name, user and password. I fill it in and select the  
button. The large blue window remains but the entry boxes and a  
border disappear. It hasn't totally crashed and can be closed - but  
it has stopped.


I've tried their help forum, but they keep telling me to create an  
empty database. Maybe the problem has something to do with Mysql,  
but for a test script, I'm getting zero feedback. I have an empty  
database and one with a couple of tables. I don't see a problem with  
Mysql. So, how does one begin to debug this php test script to see  
what's failing? I'm kind of new to php.


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



Perhaps your install of php is blocking the error reporting from  
telling you where the problem is. Trying turning error reporting on


Bastien

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



Re: [PHP] Help me debug this

2009-04-20 Thread Patrick Moloney

Stephen wrote:

Patrick Moloney wrote:
I've tried their help forum, but they keep telling me to create an 
empty database.

Have you tried creating an empty database?

Stephen


yes.

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



Re: [PHP] Help me debug this

2009-04-20 Thread Stephen

Patrick Moloney wrote:
I've tried their help forum, but they keep telling me to create an 
empty database.

Have you tried creating an empty database?

Stephen


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



[PHP] Help me debug this

2009-04-20 Thread Patrick Moloney
Some months ago I downloaded and installed Apache, PHP and MySql. With 
only light use they seem to be working.
I have downloaded a Test Script from the VBulletin vendor that is 
supposed to determine if your setup could run their product. The Test 
Script is php and appears as a form that allows you to enter a Mysql 
database name, user and password. I fill it in and select the button. 
The large blue window remains but the entry boxes and a border 
disappear. It hasn't totally crashed and can be closed - but it has stopped.


I've tried their help forum, but they keep telling me to create an empty 
database. Maybe the problem has something to do with Mysql, but for a 
test script, I'm getting zero feedback. I have an empty database and one 
with a couple of tables. I don't see a problem with Mysql. So, how does 
one begin to debug this php test script to see what's failing? I'm kind 
of new to php.


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



Re: [PHP] Help me understand unit testing?

2009-01-21 Thread Eric Butera
On Wed, Jan 21, 2009 at 7:31 PM, Eric Butera  wrote:
> On Wed, Jan 21, 2009 at 7:24 PM, Murray  wrote:
>> I think this is my problem -- basically to know how to get some benefit from
>> it.
>>
>> If I have a function in a class that is supposed to return some rows, how
>> would I go about performing a useful unit test on it? In theory (and in my
>> current practice), I can simply dump the array or object, or step through
>> the code with XDebug in Netbeans PHP (love this app!) to see what is taking
>> place.
>>
>> Where would a unit test come into this process in a useful way? Is it
>> because I can abstract the call to that function / class without having code
>> that puts it to the page? Some other benefit?
>>
>> M is for Murray
>>
>>
>> On Thu, Jan 22, 2009 at 10:13 AM, Eric Butera  wrote:
>>>
>>> On Wed, Jan 21, 2009 at 7:01 PM, Murray 
>>> wrote:
>>> > Hi All,
>>> >
>>> > I'd like to understand unit testing better (or, in fact, at all). I
>>> > understand the broad idea that testing Is A Very Good Thing, but when I
>>> > have
>>> > tried to look into it further (for example, have just been looking
>>> > through
>>> > the PHPUnit site), I always end up thinking 'This looks like more
>>> > trouble
>>> > than it's worth.' I'm sure that's down to me and not the process of unit
>>> > testing, but I'd like to get some idea of how people on the list
>>> > actually
>>> > use unit testing in the real world.
>>> >
>>> > I'm assuming that you have your actual application classes and functions
>>> > designed in their own files, and then you build a series of unit testing
>>> > classes / functions in their own sort of space, but do you build these
>>> > in
>>> > parallel to your application code, or during alpha / beta testing etc?
>>> >
>>> > Any practical or even theoretical advice welcome!
>>> >
>>> > Many thanks,
>>> >
>>> > M is for Murray
>>> >
>>>
>>> Well this was a hard topic for me to grasp too.  A lot of times I
>>> still get lazy about it, but I strive to do my best.  Unit testing
>>> makes sure your code works as expected.  So if you're messing around
>>> with stuff, keep re-running your test suite and see if your changes
>>> break any of your tests.  This way you know whether or not your
>>> changes are breaking the very apps that rely on your code.
>>>
>>> Unit testing also allows you to quickly assess problems with different
>>> servers, php upgrades, whatever.
>>>
>>> Of course these are just little points.  Just give it a try and keep
>>> going at it.  Once I started I noticed that I had been writing my code
>>> all wrong.  Lots of weird dependencies, reliance on hard to recreate
>>> state, stuff like that.  It helped me to start writing leaner methods
>>> that targeted what they were supposed to do a lot better.
>>>
>>> There's a lot of info on this subject all across the net & in books.
>>> It isn't just limited to php, but programming in general.
>>>
>>> V is for Vendetta?
>>
>>
>
> Think of an ecommerce app.  You've got code that calculates price
> based on lots of different factors.  Unit testing lets you make sure
> that your prices will always add up correctly based on those factors.
> Too many times have I messed something up and all of a sudden Michigan
> tax isn't acting right.  Unit testing prevents those 4:50pm mistakes.
> :D
>
> Start small just testing the logic of your app.  Don't worry so much
> about making sure a query has x data.  You can do something called
> mock that out later on once you've got a better handle on things.
>
> You might also look at established code and see their unit tests to
> maybe get a better idea of how it is really useful.  Really tho
>

oops I accidentally sent that before finishing.  But you get the idea
at any rate.

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



Re: [PHP] Help me understand unit testing?

2009-01-21 Thread Eric Butera
On Wed, Jan 21, 2009 at 7:24 PM, Murray  wrote:
> I think this is my problem -- basically to know how to get some benefit from
> it.
>
> If I have a function in a class that is supposed to return some rows, how
> would I go about performing a useful unit test on it? In theory (and in my
> current practice), I can simply dump the array or object, or step through
> the code with XDebug in Netbeans PHP (love this app!) to see what is taking
> place.
>
> Where would a unit test come into this process in a useful way? Is it
> because I can abstract the call to that function / class without having code
> that puts it to the page? Some other benefit?
>
> M is for Murray
>
>
> On Thu, Jan 22, 2009 at 10:13 AM, Eric Butera  wrote:
>>
>> On Wed, Jan 21, 2009 at 7:01 PM, Murray 
>> wrote:
>> > Hi All,
>> >
>> > I'd like to understand unit testing better (or, in fact, at all). I
>> > understand the broad idea that testing Is A Very Good Thing, but when I
>> > have
>> > tried to look into it further (for example, have just been looking
>> > through
>> > the PHPUnit site), I always end up thinking 'This looks like more
>> > trouble
>> > than it's worth.' I'm sure that's down to me and not the process of unit
>> > testing, but I'd like to get some idea of how people on the list
>> > actually
>> > use unit testing in the real world.
>> >
>> > I'm assuming that you have your actual application classes and functions
>> > designed in their own files, and then you build a series of unit testing
>> > classes / functions in their own sort of space, but do you build these
>> > in
>> > parallel to your application code, or during alpha / beta testing etc?
>> >
>> > Any practical or even theoretical advice welcome!
>> >
>> > Many thanks,
>> >
>> > M is for Murray
>> >
>>
>> Well this was a hard topic for me to grasp too.  A lot of times I
>> still get lazy about it, but I strive to do my best.  Unit testing
>> makes sure your code works as expected.  So if you're messing around
>> with stuff, keep re-running your test suite and see if your changes
>> break any of your tests.  This way you know whether or not your
>> changes are breaking the very apps that rely on your code.
>>
>> Unit testing also allows you to quickly assess problems with different
>> servers, php upgrades, whatever.
>>
>> Of course these are just little points.  Just give it a try and keep
>> going at it.  Once I started I noticed that I had been writing my code
>> all wrong.  Lots of weird dependencies, reliance on hard to recreate
>> state, stuff like that.  It helped me to start writing leaner methods
>> that targeted what they were supposed to do a lot better.
>>
>> There's a lot of info on this subject all across the net & in books.
>> It isn't just limited to php, but programming in general.
>>
>> V is for Vendetta?
>
>

Think of an ecommerce app.  You've got code that calculates price
based on lots of different factors.  Unit testing lets you make sure
that your prices will always add up correctly based on those factors.
Too many times have I messed something up and all of a sudden Michigan
tax isn't acting right.  Unit testing prevents those 4:50pm mistakes.
:D

Start small just testing the logic of your app.  Don't worry so much
about making sure a query has x data.  You can do something called
mock that out later on once you've got a better handle on things.

You might also look at established code and see their unit tests to
maybe get a better idea of how it is really useful.  Really tho

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



Re: [PHP] Help me understand unit testing?

2009-01-21 Thread Murray
I think this is my problem -- basically to know how to get some benefit from
it.

If I have a function in a class that is supposed to return some rows, how
would I go about performing a useful unit test on it? In theory (and in my
current practice), I can simply dump the array or object, or step through
the code with XDebug in Netbeans PHP (love this app!) to see what is taking
place.

Where would a unit test come into this process in a useful way? Is it
because I can abstract the call to that function / class without having code
that puts it to the page? Some other benefit?

M is for Murray


On Thu, Jan 22, 2009 at 10:13 AM, Eric Butera  wrote:

> On Wed, Jan 21, 2009 at 7:01 PM, Murray 
> wrote:
> > Hi All,
> >
> > I'd like to understand unit testing better (or, in fact, at all). I
> > understand the broad idea that testing Is A Very Good Thing, but when I
> have
> > tried to look into it further (for example, have just been looking
> through
> > the PHPUnit site), I always end up thinking 'This looks like more trouble
> > than it's worth.' I'm sure that's down to me and not the process of unit
> > testing, but I'd like to get some idea of how people on the list actually
> > use unit testing in the real world.
> >
> > I'm assuming that you have your actual application classes and functions
> > designed in their own files, and then you build a series of unit testing
> > classes / functions in their own sort of space, but do you build these in
> > parallel to your application code, or during alpha / beta testing etc?
> >
> > Any practical or even theoretical advice welcome!
> >
> > Many thanks,
> >
> > M is for Murray
> >
>
> Well this was a hard topic for me to grasp too.  A lot of times I
> still get lazy about it, but I strive to do my best.  Unit testing
> makes sure your code works as expected.  So if you're messing around
> with stuff, keep re-running your test suite and see if your changes
> break any of your tests.  This way you know whether or not your
> changes are breaking the very apps that rely on your code.
>
> Unit testing also allows you to quickly assess problems with different
> servers, php upgrades, whatever.
>
> Of course these are just little points.  Just give it a try and keep
> going at it.  Once I started I noticed that I had been writing my code
> all wrong.  Lots of weird dependencies, reliance on hard to recreate
> state, stuff like that.  It helped me to start writing leaner methods
> that targeted what they were supposed to do a lot better.
>
> There's a lot of info on this subject all across the net & in books.
> It isn't just limited to php, but programming in general.
>
> V is for Vendetta?
>


Re: [PHP] Help me understand unit testing?

2009-01-21 Thread Eric Butera
On Wed, Jan 21, 2009 at 7:01 PM, Murray  wrote:
> Hi All,
>
> I'd like to understand unit testing better (or, in fact, at all). I
> understand the broad idea that testing Is A Very Good Thing, but when I have
> tried to look into it further (for example, have just been looking through
> the PHPUnit site), I always end up thinking 'This looks like more trouble
> than it's worth.' I'm sure that's down to me and not the process of unit
> testing, but I'd like to get some idea of how people on the list actually
> use unit testing in the real world.
>
> I'm assuming that you have your actual application classes and functions
> designed in their own files, and then you build a series of unit testing
> classes / functions in their own sort of space, but do you build these in
> parallel to your application code, or during alpha / beta testing etc?
>
> Any practical or even theoretical advice welcome!
>
> Many thanks,
>
> M is for Murray
>

Well this was a hard topic for me to grasp too.  A lot of times I
still get lazy about it, but I strive to do my best.  Unit testing
makes sure your code works as expected.  So if you're messing around
with stuff, keep re-running your test suite and see if your changes
break any of your tests.  This way you know whether or not your
changes are breaking the very apps that rely on your code.

Unit testing also allows you to quickly assess problems with different
servers, php upgrades, whatever.

Of course these are just little points.  Just give it a try and keep
going at it.  Once I started I noticed that I had been writing my code
all wrong.  Lots of weird dependencies, reliance on hard to recreate
state, stuff like that.  It helped me to start writing leaner methods
that targeted what they were supposed to do a lot better.

There's a lot of info on this subject all across the net & in books.
It isn't just limited to php, but programming in general.

V is for Vendetta?

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



[PHP] Help me understand unit testing?

2009-01-21 Thread Murray
Hi All,

I'd like to understand unit testing better (or, in fact, at all). I
understand the broad idea that testing Is A Very Good Thing, but when I have
tried to look into it further (for example, have just been looking through
the PHPUnit site), I always end up thinking 'This looks like more trouble
than it's worth.' I'm sure that's down to me and not the process of unit
testing, but I'd like to get some idea of how people on the list actually
use unit testing in the real world.

I'm assuming that you have your actual application classes and functions
designed in their own files, and then you build a series of unit testing
classes / functions in their own sort of space, but do you build these in
parallel to your application code, or during alpha / beta testing etc?

Any practical or even theoretical advice welcome!

Many thanks,

M is for Murray


Re: [PHP] help me out with form details converted into pdf file save it one place as well as send mail attactment

2008-02-13 Thread Richard Lynch
On Wed, February 13, 2008 6:26 am, pretty wrote:

> hi any one help me out, im using cronofirm, i need to field form
> details will
> converted into pdf as well as it will go maill attachment doing this
> in
> joomla, atleast i need this only php with out joomla.

To make a PDF, you can use:
http://php.net/pdf

To save that to a file, you can use:
http://php.net/file_put_contents

To send the email out, you can use the PEAR mailer, phpmailer, or the
Mime Mail class at phpclasses.org or...

How you'd fit any of this into Joomla is a Joomla problem :-)

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?

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



Re: [PHP] help me out with form details converted into pdf file save it one place as well as send mail attactment

2008-02-13 Thread David Giragosian
On 2/13/08, pretty <[EMAIL PROTECTED]> wrote:
>
> hi any one help me out, im using cronofirm, i need to field form details will
> converted into pdf as well as it will go maill attachment doing this in
> joomla, atleast i need this only php with out joomla.

It might be overkill for your purposes, but you might want to explore
pdftex in Tex (or LaTeX), available for both Linux and Windows.

Create a string to write to a file, adding these header calls at the
top, massaged to your needs:

$outputStr = "\\documentclass[10pt,fleqn]{article}\n";
$outputStr .= "\\usepackage[cp850]{inputenc}\n";
$outputStr .= "\\usepackage{textcomp}\n";
$outputStr .= "\\setlength{\textwidth}{19.05cm}\n";
$outputStr .= "\\setlength{\oddsidemargin}{-2.0cm}\n";
$outputStr .= "\\setlength{\textheight}{26.5cm}\n";
$outputStr .= "\\setlength{\topmargin}{-1.9cm}\n";
$outputStr .= "\\setlength{\headheight}{0.0cm}\n";
$outputStr .= "\\setlength{\topskip}{0.0cm}\n";
$outputStr .= "\\begin{document}\n";
$outputStr .= "\\pagestyle{empty}\n";
$outputStr .= "\\begin{verbatim}\n";

$outputStr .=  "Then append to the string whatever you want, including
variables for interpolation, formatted however you want. (Sprintf
works really well for alignment, etc...). The verbatim call above
leaves in place all text placement on the page.";

$outputStr .= "Then close the string with these commands...";

$outputStr .= "\\end{verbatim}\n";
$outputStr .= "\\end{document}\n";

Write to a file:

$fh = fopen("FileName.tex", "w");
fwrite($fh, $outputStr);
fclose($fh);

`pdflatex FileName.tex`; // ( properly escaped, of course...)

and FileName.pdf is created.

You can also do a lot of really fancy formatting, but the learning
curve can be pretty steep.

-- 

-David.

When the power of love
overcomes the love of power,
the world will know peace.

-Jimi Hendrix

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



Re: [PHP] help me out with form details converted into pdf file save it one place as well as send mail attactment

2008-02-13 Thread Brady Mitchell


On Feb 13, 2008, at 426AM, pretty wrote
hi any one help me out, im using cronofirm, i need to field form  
details will
converted into pdf as well as it will go maill attachment doing this  
in

joomla, atleast i need this only php with out joomla.


For sending email:

The standard mail function
http://php.net/mail

I've found that for sending anything more than the simplest email,  
it's usually easier to use something like PHPMailer (http://phpmailer.sf.net 
).


For creating PDF files, here are a few options:

http://fpdf.org
http://www.ros.co.nz/pdf/
http://framework.zend.com/manual/en/zend.pdf.html

Saving the pdf and sending it as an email shouldn't be difficult:

Step 1 - Generate the PDF
Step 2 - Save it somewhere on the server
Step 3 - Email the PDF as an attachment.

I don't fully understand your question, so hopefully this is somewhat  
helpful. If you have specific questions about parts of the process we  
will be able to help you better. Best is if you start writing the code  
and ask questions when you get stuck so we can see what's going on and  
offer ideas.


Best of luck,

Brady

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



[PHP] help me out with form details converted into pdf file save it one place as well as send mail attactment

2008-02-13 Thread pretty

hi any one help me out, im using cronofirm, i need to field form details will
converted into pdf as well as it will go maill attachment doing this in
joomla, atleast i need this only php with out joomla.


-- 
View this message in context: 
http://www.nabble.com/help-me-out-with-form-details-converted-into-pdf-file-save-it-one-place-as-well-as-send-mail-attactment-tp15456850p15456850.html
Sent from the PHP - General mailing list archive at Nabble.com.

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



RE: [PHP] Help me put this into phpinesse!

2007-04-29 Thread Brad Sumrall
When the page opens, connect to server (this works fine).
Look for session, if no session is found, look for phpbb session (two
different session possibilities)

Reading through the phpbb site, it say I must have the code that is in
include './phpbb/login_global.php'

Brad

-Original Message-
From: Tijnema ! [mailto:[EMAIL PROTECTED] 
Sent: Sunday, April 29, 2007 5:03 AM
To: Brad Sumrall
Cc: php-general@lists.php.net; [EMAIL PROTECTED]
Subject: Re: [PHP] Help me put this into phpinesse!

On 4/29/07, Brad Sumrall <[EMAIL PROTECTED]> wrote:
> 
>ob_start();
>
>session_start();
>
>header("Cache-control: private");
>
>require("includes/configure.php");
>
>
> $conn=mysql_connect(DB_SERVER,DB_SERVER_USERNAME,DB_SERVER_PASSWORD);
>
>mysql_select_db(DB_DATABASE) or die(mysql_error().": database
> not available");
>
>$show="no";
>
>isset($_SESSION['userid']);

What's the sense of above line?
isset is a function, that returns true or false.
>
>if $SESSION=NULL
>
>include './phpbb/login_global.php'
>
>
>
>$show="yes";
>
> ?>
>
>
>
> What am I missing?
>
>
>
> Brad

There's no concrete question what you want here. So i guess that is missing.

Tijnema
>
>

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



Re: [PHP] Help me put this into phpinesse!

2007-04-29 Thread Tijnema !

On 4/29/07, Brad Sumrall <[EMAIL PROTECTED]> wrote:



What's the sense of above line?
isset is a function, that returns true or false.


   if $SESSION=NULL

   include './phpbb/login_global.php'



   $show="yes";

?>



What am I missing?



Brad


There's no concrete question what you want here. So i guess that is missing.

Tijnema





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



[PHP] Help me put this into phpinesse!

2007-04-28 Thread Brad Sumrall


 

What am I missing?

 

Brad



Re: [PHP] help me to solve this math maze

2007-04-04 Thread tedd

At 12:44 PM +0300 4/4/07, Faisal Murad wrote:

i am making a program to give money to a group of people
lets say that i have to distribute 3000 among 12
people 6 of them are adult and will get 100%
6 them are children those will get 75% from the overall amount.

a common solution might appear as

divide 3000 to 12 which is 250
give 250 to adults and 75% percent of it to children which is 187.5
after this kind of calculation i have 375 more to give which was 
supposed to be

equally distributed among them

can anyone understand my problem and assists me.

faisal


Considering that others provided a solution, here's mine. What's left 
over send to me. :-)


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

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



Re: [PHP] help me to solve this math maze

2007-04-04 Thread Jochem Maas
Satyam wrote:
> You'll give 100 'units' to 6 of them, and 75 to 6, thus:
> 
> 6 * 100 + 6 * 75 ==> 1050 units
> 
> Each 'unit' is valued at:
> 
> 3000 / 1050 ==>  2.8571
> 
> Thus, you give:
> 
> 6 * 285.71 + 6 * 214.28  ==> 2999.94, and you may keep the change ;-)

pity you don't work as bank director Satyam (notice that in real
life it's the bank that always pockets the change ;-)

> 
> Satyam
> 
> 
> 
> - Original Message - From: "Faisal Murad" <[EMAIL PROTECTED]>
> To: 
> Sent: Wednesday, April 04, 2007 11:44 AM
> Subject: [PHP] help me to solve this math maze
> 
> 
> i am making a program to give money to a group of people
> lets say that i have to distribute 3000 among 12
> people 6 of them are adult and will get 100%
> 6 them are children those will get 75% from the overall amount.
> 
> a common solution might appear as
> 
> divide 3000 to 12 which is 250
> give 250 to adults and 75% percent of it to children which is 187.5
> after this kind of calculation i have 375 more to give which was
> supposed to be
> equally distributed among them
> 
> can anyone understand my problem and assists me.
> 
> faisal
> 
> 
> 
> 
> 
> 
> 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.25/745 - Release Date:
> 03/04/2007 12:48
> 

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



Re: [PHP] help me to solve this math maze

2007-04-04 Thread Satyam

You'll give 100 'units' to 6 of them, and 75 to 6, thus:

6 * 100 + 6 * 75 ==> 1050 units

Each 'unit' is valued at:

3000 / 1050 ==>  2.8571

Thus, you give:

6 * 285.71 + 6 * 214.28  ==> 2999.94, and you may keep the change ;-)

Satyam



- Original Message - 
From: "Faisal Murad" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, April 04, 2007 11:44 AM
Subject: [PHP] help me to solve this math maze


i am making a program to give money to a group of people
lets say that i have to distribute 3000 among 12
people 6 of them are adult and will get 100%
6 them are children those will get 75% from the overall amount.

a common solution might appear as

divide 3000 to 12 which is 250
give 250 to adults and 75% percent of it to children which is 187.5
after this kind of calculation i have 375 more to give which was supposed to 
be

equally distributed among them

can anyone understand my problem and assists me.

faisal






No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.25/745 - Release Date: 03/04/2007 
12:48


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



Re: [PHP] help me to solve this math maze

2007-04-04 Thread Zoltán Németh
2007. 04. 4, szerda keltezéssel 12.44-kor Faisal Murad ezt írta:
> i am making a program to give money to a group of people 
> lets say that i have to distribute 3000 among 12 
> people 6 of them are adult and will get 100% 
> 6 them are children those will get 75% from the overall amount. 
> 
> a common solution might appear as 
> 
> divide 3000 to 12 which is 250
> give 250 to adults and 75% percent of it to children which is 187.5
> after this kind of calculation i have 375 more to give which was supposed to 
> be 
> equally distributed among them 
> 
> can anyone understand my problem and assists me. 

$adultmoney = $totalmoney / ($adultnumber + 0.75 * $childnumber);
$childmoney = 0.75 * $adultmoney;

greets
Zoltán Németh

> 
> faisal 

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



Re: [PHP] Help me specify/develop a feature! (cluster web sessions management)

2007-03-14 Thread markw
> On Tue, March 13, 2007 7:27 pm, Mark wrote:
>> I have a web session management server that makes PHP clustering easy
>> and
>> fast. I have been getting a number of requests for some level of
>> redundancy.
>>
>> As it is, I can save to an NFS or GFS file system, and be redundant
>> that
>> way.
>
> Talk to Jason at http://hostedlabs.com if you haven't already.

I just did, he's using memcached not MCache. The name space for this class
of project is fairly limited.

>
> He's rolling out a distributed redundant PHP architecture using your
> MCache as an almost turn-key webhosting service.
>
> Not quite sure exactly how he's makeing the MCache bit redundant, but
> he's already doing it.

He's using memcache, which is redundant, but it doesn't do what MCache
does. The memcached program is strictly a cache for things SQL queries.
MCache is more like an object data store.

>
>> Here is an explanation of how it works:
>> http://www.mohawksoft.org/?q=node/36
>
> NB:
> There is a typo in "False Scalability" section:
> "... but regardless of what you do you, every design has a limit."

I took me a few minutes to see the typo even after you posted it. Thanks.

>
>> What would you be looking for? How would you expect redundancy to
>> work?
>
> In the ideal world, the developers are also working as an N-tier
> architecture in their Personnel Org Chart. :-)
>
> One Lead has to understand the whole system and the intricacies of
> your system, as well as its implications and "gotchas" really well.
>
> In an ideal world the Lead can then arrange things so that other
> Developers (non lead) can just program "normally" and have little or
> no impact on their process to roll-out to the scalable architecture.
>
> This is not to say that they can squander resources, but rather that
> if their algorithm "works" correctly and quickly (enough) on their dev
> box with beefy datasets, it should seemlessly work on the scaled
> boxes, assuming the datasets are not dis-proportionately larger
> comparing hardware to hardware pro-rated to dataset size.
>
> Yes, if the algorithm is anything bigger than O(n) this is not really
> "safe" but it's a close rule of thumb, and you can generally figure
> out pretty fast if your algorithm is un-workable.
>
> At least in my experience, if I can get it to "work" on a relatively
> large dataset on my crappy dev box, the real server can deal with it.
>
> So the less intrusive the redundant architecture can be, the better.

I think a lot of people go completely overboard with redundancy. Yea, you
need a load balancer and multiple web servers, but outside some
hypothetical requirement of never any down time, I can't see much value in
trying to create a single "5 nines" system. If you can't deploy two
independent service platforms, you will most likely suffer a failure
somewhere.

I think the big focus should be ensuring data integrity and fast recovery
in the event of a failure.

I mean sure, if you have the capital, go for it, but you can save a lot of
money on your data center if you take a more rational view of downtime.


>
> Documentation of exactly how it all works is crucial -- If it's all
> hand-waving, the Lead will never be able to figure out where the
> "gotchas" are going to be.
>
> I'd also expect true redundancy all across the board, down to spare
> screws for the rack-mounts.  Hey, a screw *could* sheer off at any
> moment... :-)

Like I said, a lot of people go nuts about redundancy.

>
> Multiple data centers on a few different continents.
> US, Europe, Asia, India (which seems to have caught the American
> consumerism big-time lately...) Australia...
> Probably need 2 or 3 just in the US.

That really is the *only* way to prevent down time.

>
> Some folks need WAY more bigger farms than others. Offer a wide
> variety of choices, from a simple failsafe roll-over up to
> sky's-the-limit on every continent.
> [Well, okay, you can probably safely skip Antartica. :-)]

I'm not sure it makes sense to try to target huge web farms. That really
is a different problem.

Think about a SQL database. As long as you can replicate to a hot spare,
most web farms settle for that. A truly distributed SQL database cluster
is a big deal, and most sites won't ever need it.

>
> I'd like a "status board" web panel of every significant piece of gear
> and a health status in one screen of blinking lights. :-)
>
> If I have to be the one to SysAdmin the things, make that a control
> panel as well.
>
> Okay, in reality, "I" would *not* be the one to SysAdmin that stuff,
> as I would still need to hire a guy actually qualified to do that.
>
> Which is why we're working with Jason (above) who's essentially our
> out-source SysAdmin guy taking care of all this hardware and
> redundancy stuff so we can focus on our WEb App from a business
> perspective (mostly) instead of constantly fighting with hardware.
> [I am so *not* a hardware guy...]
>
> And, of course, *when* an MCache box falls over, the user should
>

Re: [PHP] Help me specify/develop a feature! (cluster web sessions management)

2007-03-13 Thread Richard Lynch
On Tue, March 13, 2007 7:27 pm, Mark wrote:
> I have a web session management server that makes PHP clustering easy
> and
> fast. I have been getting a number of requests for some level of
> redundancy.
>
> As it is, I can save to an NFS or GFS file system, and be redundant
> that
> way.

Talk to Jason at http://hostedlabs.com if you haven't already.

He's rolling out a distributed redundant PHP architecture using your
MCache as an almost turn-key webhosting service.

Not quite sure exactly how he's makeing the MCache bit redundant, but
he's already doing it.

> Here is an explanation of how it works:
> http://www.mohawksoft.org/?q=node/36

NB:
There is a typo in "False Scalability" section:
"... but regardless of what you do you, every design has a limit."

> What would you be looking for? How would you expect redundancy to
> work?

In the ideal world, the developers are also working as an N-tier
architecture in their Personnel Org Chart. :-)

One Lead has to understand the whole system and the intricacies of
your system, as well as its implications and "gotchas" really well.

In an ideal world the Lead can then arrange things so that other
Developers (non lead) can just program "normally" and have little or
no impact on their process to roll-out to the scalable architecture.

This is not to say that they can squander resources, but rather that
if their algorithm "works" correctly and quickly (enough) on their dev
box with beefy datasets, it should seemlessly work on the scaled
boxes, assuming the datasets are not dis-proportionately larger
comparing hardware to hardware pro-rated to dataset size.

Yes, if the algorithm is anything bigger than O(n) this is not really
"safe" but it's a close rule of thumb, and you can generally figure
out pretty fast if your algorithm is un-workable.

At least in my experience, if I can get it to "work" on a relatively
large dataset on my crappy dev box, the real server can deal with it.

So the less intrusive the redundant architecture can be, the better.

Documentation of exactly how it all works is crucial -- If it's all
hand-waving, the Lead will never be able to figure out where the
"gotchas" are going to be.

I'd also expect true redundancy all across the board, down to spare
screws for the rack-mounts.  Hey, a screw *could* sheer off at any
moment... :-)

Multiple data centers on a few different continents.
US, Europe, Asia, India (which seems to have caught the American
consumerism big-time lately...) Australia...
Probably need 2 or 3 just in the US.

Some folks need WAY more bigger farms than others. Offer a wide
variety of choices, from a simple failsafe roll-over up to
sky's-the-limit on every continent.
[Well, okay, you can probably safely skip Antartica. :-)]

I'd like a "status board" web panel of every significant piece of gear
and a health status in one screen of blinking lights. :-)

If I have to be the one to SysAdmin the things, make that a control
panel as well.

Okay, in reality, "I" would *not* be the one to SysAdmin that stuff,
as I would still need to hire a guy actually qualified to do that.

Which is why we're working with Jason (above) who's essentially our
out-source SysAdmin guy taking care of all this hardware and
redundancy stuff so we can focus on our WEb App from a business
perspective (mostly) instead of constantly fighting with hardware.
[I am so *not* a hardware guy...]

And, of course, *when* an MCache box falls over, the user should
seemlessly be sent to the next-closest box, with their session data
already waiting for them.

I.e., it's not enough that there will always be a working MCache box
for new users -- Logged-in users have to have their session data
replicated to at least one other box.

There also have to be enough "spare" cycles in the sum of all boxes
that a single failure won't just take them all down in a dominoe
effect. [shudder]

So it's gotta be more like Raid 5 or whatever it is, with the session
data striped across different boxes.

Something like this dominoe effect bit Dreamhost in the [bleep] awhile
back on their switch setup.  Actually, go read all their woes on their
blog/newsletter and don't do that. :-)
[Though at Dreamhost pricing, it's really hard to complain...]
[And at least they tell you they screwed up instead of making it a
State Secret.]

Speaking of pricing:
Session replication is just a tiny piece of the puzzle, really.  A
crucial piece, relatively easy to factor out for most web apps, and a
great target for optimization and modularization for that very reason.

But one also needs to make the web-farm, the app-farm, and the db-farm
all scalable...

So if you can do ALL of those in one nice package, or even some of
those, that's a Good Thing, imho, as many of the same issues you'll
have for session data are the same issues for web/app/db interaction.

Or you could specialize in the session replication, and be a vendor to
the folks replication whole systems -- Probably better, really, to
stay focussed.

[PHP] Help me specify/develop a feature! (cluster web sessions management)

2007-03-13 Thread Mark
I have a web session management server that makes PHP clustering easy and
fast. I have been getting a number of requests for some level of
redundancy.

As it is, I can save to an NFS or GFS file system, and be redundant that
way.

Here is an explanation of how it works:
http://www.mohawksoft.org/?q=node/36

What would you be looking for? How would you expect redundancy to work?

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



Re: [PHP] Help me about using php with tomcat server.

2007-01-04 Thread Iqbal Naved

Hi,

The Tomcat server now includes the php javabridge, its a war file called
JavaBridge.war. Also, you can find this  war file in
php-java-bridge.sourceforge.net . The instllation is pretty easy just copy
the war file in the root directory (e.g webapps/) and then run it from the
browser (eg. localhost/JavaBridge),

Hope this helps

Naved

On 1/4/07, Le Phuoc Canh <[EMAIL PROTECTED]> wrote:


Dear all,
I have two web application running on php and jsp. But i don't know how
can
to use php and jsp on tomcat server. Please help me.

thanks & best regard.




Re: [PHP] Help me about using php with tomcat server.

2007-01-04 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-04 15:05:54 +0700:
> I have two web application running on php and jsp. But i don't know how can
> to use php and jsp on tomcat server. Please help me.

Find an implementation of PHP in Java (tough luck) or the official
library wrapped in a JNI interface. But you'll make it a lot easier
on yourself if you just install Apache with PHP beside the Tomcat.

-- 
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man.  You don't KNOW.
Cause you weren't THERE. http://bash.org/?255991

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



[PHP] Help me about using php with tomcat server.

2007-01-04 Thread Le Phuoc Canh
Dear all,
I have two web application running on php and jsp. But i don't know how can
to use php and jsp on tomcat server. Please help me.
 
thanks & best regard.


Re: [PHP] Help me about detect client screen resolution!!!

2007-01-03 Thread Strong Cypher

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Just remember in web context is a server-side language ... so you couldn't
have more information than client would want to send to you

in web context, the navigator send some information to the server (like what
navigator, address, proxy, ...)

so ... has David show you, use javascript for example, and can your php
which screen resolution :

index.html:


location.href="index.php?h="+screen.heigth+"&w="
+screen.width;


=> it will redirect to your php script which $_GET['h'] => heigth client
resolution, and $_GET['w'] => width client resolution

have fun
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32) - WinPT 1.0.1

iD8DBQFFm5XdEg3iyspSWPARAiwbAJ9bFE+m/oFAcka236Xnccjzb6YY/ACdFc8G
FuH5WvpqWEEkhMK0cYHhvOc=
=syLI
-END PGP SIGNATURE-


Re: [PHP] Help me about detect client screen resolution!!!

2007-01-02 Thread Paul Novitski

At 1/2/2007 12:24 AM, Le Phuoc Canh wrote:

Can we use php to detect client screen resolution? Please help me ?



Do you really want screen resolution or do you want browser window 
size?  Not every PC user keeps their windows maximized, and I have 
yet to meet a Mac user who attempts to do so.


For cross-browser javascript that measures the viewport, see 
Peter-Paul Koch's page:


Viewport properties
http://www.quirksmode.org/viewport/compatibility.html

PHP and javascript can act in concert.  If PHP doesn't yet know the 
monitor size, it can download a javascript-only page that will talk back, e.g.:


document.location.href = '?width=' . x . '&height=' . y

which PHP can receive as $_GET['x'] and $_GET['y'] and then use to 
download the desired page.


Keep in mind that the user can change window size at any time and 
many people do so from one page to the next to accommodate varying 
content and their other desktop activities at the time.  Therefore 
you can't really rely on intial measurements; if the proper rendering 
of your page DEPENDS on knowing the window size, you'll need to 
re-measure it for every pageview.  Downloading a measuring script in 
advance of each web page would make the browsing experience a bit sluggish.


If possible, try to make your page layouts more robust.  There are 
many techniques for engineering pages to tolerate a wide spectrum of 
window widths; see the CSS-D wiki for links:

http://css-discuss.incutio.com/

Regards,
Paul 


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



Re: [PHP] Help me about detect client screen resolution!!!

2007-01-02 Thread David Giragosian

On 1/2/07, Stut <[EMAIL PROTECTED]> wrote:


Le Phuoc Canh wrote:
> Can we use php to detect client screen resolution? Please help me ?
>

No "we" can't. "You" need Javascript or another "client"-side technology
for that.

-Stut

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





var thisSize;
function showStats() { thisSize = 'Screen resolution is ' + screen.width + '
x ' + screen.height;
if (thisSize) {
 document.getElementById("output").innerHTML = thisSize;
}
}





Screen Resolution







I think this should work.



David


Re: [PHP] Help me about detect client screen resolution!!!

2007-01-02 Thread Stut

Le Phuoc Canh wrote:

Can we use php to detect client screen resolution? Please help me ?
  


No "we" can't. "You" need Javascript or another "client"-side technology 
for that.


-Stut

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



[PHP] Help me about detect client screen resolution!!!

2007-01-02 Thread Le Phuoc Canh
Can we use php to detect client screen resolution? Please help me ?
 
Best Regard.


Re: [PHP] Help me about audio stream...

2006-12-05 Thread Richard Lynch
On Mon, December 4, 2006 1:37 am, Le Phuoc Canh wrote:
> Dears,
> I want to make a web app about music online. But i don't know how to
> use
> streaming in PHP to load a music file for playing. Please help me for
> the
> best direction.
> Thanks alot and best regard.

You are making this too complicated.

Fortunately, I've had to explain this to many many musicians in other
forums, and can simplify it:

Step #1.
Create your MP3 somehow with a CD-ripper/encoder or whatever.

Step #2.
Upload the MP3 to your website, just like an HTML page, but be sure it
uploads as "BINARY" and not "ASCII"

Step #3.
Test the uploaded file as a download.
Just make a link to the MP3, the same way you'd link to an HTML page,
only it will have somethine like "somesong.mp3" in it.
That should do a download for your MP3 player.
If not, and it prompts you to save it as an "unknown" type, or shows a
bunch of gibberish on the browser window, then you have to figure out
how to convince your web-server that the correct mime-type for that
file ending in .mp3 is:  audio/mpeg

Step #4.
Copy/paste the URL to the MP3 into a plain text file.
Not MS Word, nor even FrontPage nor DreamWeaver, but just plain old
Notepad (SimpleText on the Mac).
Save the file as "somesong.m3u"
The .m3u is crucial for the file type.

Step #5.
Upload that .m3u file to your webserver, and make a link to THAT URL,
just like you do for HTML files and just like you did in Step#2, only
with the .m3u URL instead.

Step #6.
Test the .m3u link, and it should be a streaming audio file for your
MP3 player.
Again, if not, you have to convince your web-server that the correct
mime-type for an .m3u file is:  audio/mpeg-url


That's it.  You now have streaming audio on your server.

None of this has anything to do with PHP, really, so some obligatory
PHP comments are in order. :-)

You can use a script like "sample" to sort of funnel requests for the
MP3s and have that be a PHP script which keeps a log who played what,
or it can do something fun like prepend the ID3 tags to the MP3
stream, so that your ID3 data can easily be changed without dinking
around with monstrous MP3 files to edit them.

Here is a sample script for that purpose, and more:
http://uncommonground.com/sample.phps

This script also has some stuff in it to upload the MP3 from a second
tier server into a caching system, which you can mostly ignore.  Or
steal, as you see fit.

YMMV

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?



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



[PHP] Help me about audio stream...

2006-12-03 Thread Le Phuoc Canh
Dears,
I want to make a web app about music online. But i don't know how to use
streaming in PHP to load a music file for playing. Please help me for the
best direction.
Thanks alot and best regard.


RE: [PHP] help me plz

2006-01-20 Thread Thomas

Hey Suresh,

You could use AJAX to populate your dropwdown boxes without reloading your
browser. I used something like that in a project just now.

Essentially, you will call a php script that would select your second box's
data according to the value of the first.

You can also do this with javascript (if you do not need 'fresh' data)

Thomas

-Original Message-
From: Robert Graham [mailto:[EMAIL PROTECTED] 
Sent: 19 January 2006 09:34 AM
To: suresh kumar
Cc: php-general@lists.php.net
Subject: Re: [PHP] help me plz

suresh kumar wrote:
> hi,
>i am using 2 combo box one for country & another
> one for city.when i select country name from combo box
> their corresponding city names has to be changed in
> their corresponding combo box.i dont know how 2
> implement this.pz give me some idea.its urgent.
>   A.suresh
>
> Send instant messages to your online friends http://in.messenger.yahoo.com

>
>   
Hi Suresh

Have a look at QuickForm ( PEAR Module), and make use of the HierSelect 
option.
Have a look at the following page for more info:  
http://www.thelinuxconsultancy.co.uk/quickform.php

Regards
Robert

-- 
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



Re: [PHP] help me plz

2006-01-18 Thread Robert Graham

suresh kumar wrote:

hi,
   i am using 2 combo box one for country & another
one for city.when i select country name from combo box
their corresponding city names has to be changed in
their corresponding combo box.i dont know how 2
implement this.pz give me some idea.its urgent.
  A.suresh

Send instant messages to your online friends http://in.messenger.yahoo.com 

  

Hi Suresh

Have a look at QuickForm ( PEAR Module), and make use of the HierSelect 
option.
Have a look at the following page for more info:  
http://www.thelinuxconsultancy.co.uk/quickform.php


Regards
Robert

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



Re: [PHP] help me pllzzzzzz

2006-01-18 Thread Richard Correia
Whatever 

Suresh, I know as a beginer you are facing this problems.

I would suggest that you check standalone htm version of php document.

The dynamic combo script can be located at
http://www.weberdev.com/get_example.php3?count=4074&mode=text

This site has 1000s of FREE ready to use PHP,MySQL scripts. Check out and
list can saved from future urgent requests :)

Thanks,
Richard Correia


On 1/18/06, suresh kumar <[EMAIL PROTECTED]> wrote:
>
> hi,
>i am having 2 combo box one for city & another one
> for country,when i select particular country say
> "india" their corresponding cities will be displayed
> in city combobox as "delhi,bangalore.",when i
> select  "Australia" thier cities like
> "perth,brisbane"will be displayed.plz help me
> itz very urgent.
>A.suresh
>
> Send instant messages to your online friends http://in.messenger.yahoo.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


Re: [PHP] help me pllzzzzzz

2006-01-18 Thread Robert Cummings
On Wed, 2006-01-18 at 11:11, John Nichel wrote:
> Jay Blanchard wrote:
> > [snip]
> >i am having 2 combo box one for city & another one
> > for country,when i select particular country say 
> > "india" their corresponding cities will be displayed
> > in city combobox as "delhi,bangalore.",when i
> > select  "Australia" thier cities like
> > "perth,brisbane"will be displayed.plz help me
> > itz very urgent.
> > [/snip]
> > 
> > 
> > H, is everything you do urgent?
> 
> I think he and I must have the same boss.

At least you don't write help emails in stupid speak. Every time I see
plz and itz and 2 I want to go find a big brick... well nevermind.

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

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



Re: [PHP] help me pllzzzzzz

2006-01-18 Thread Anas Mughal
You need to build JavaScript logic for that.
Try searching on JavaScript developer sites and mailing lists.

This has nothing to do with PHP -- unless you are dynamically building the
JavaScript.

--
Anas Mughal




On 1/18/06, suresh kumar <[EMAIL PROTECTED]> wrote:
>
> hi,
>i am having 2 combo box one for city & another one
> for country,when i select particular country say
> "india" their corresponding cities will be displayed
> in city combobox as "delhi,bangalore.",when i
> select  "Australia" thier cities like
> "perth,brisbane"will be displayed.plz help me
> itz very urgent.
>A.suresh
>
> Send instant messages to your online friends http://in.messenger.yahoo.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--
Anas Mughal


Re: [PHP] help me pllzzzzzz

2006-01-18 Thread Jochem Maas



suresh kumar wrote:

hi,
   i am having 2 combo box one for city & another one
for country,when i select particular country say 
"india" their corresponding cities will be displayed

in city combobox as "delhi,bangalore.",when i
select  "Australia" thier cities like
"perth,brisbane"will be displayed.plz help me
itz very urgent.


hire a ([EMAIL PROTECTED](*#% programmer? because we are here to help
you not write your whole project for you.

I'll tell you what I do when things are urgent (I think John's
boss is a client of mine because 'urgent' occurs 20 times a day)...

I go here: http://www.yahoo.com
or here: http://www.google.com
or here: http://php.net
or here: http://beeblex.com 

then I type something relevant into a search box, hit send and start reading
(nice side effect of reading is that you learn that words like 'please',
for instance, don't contain any 'z's but it does contain a number of vowels)

click below for approx 586,000 pages related to your urgent problem:
http://www.google.com/search?num=100&q=dynamic+combo+boxes+php


   A.suresh


rgd,
A. Raving Loon.



Send instant messages to your online friends http://in.messenger.yahoo.com 


we let it go because its a yahoo ad ;-)





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



RE: [PHP] help me pllzzzzzz

2006-01-18 Thread Duffy, Scott E
I have a combo php javascript to do that. Trying to dig it up.

Send email to [EMAIL PROTECTED] and ill have it separated by then.

-Original Message-
From: Dan Parry [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 18, 2006 10:18 AM
To: 'John Nichel'; php-general@lists.php.net
Subject: RE: [PHP] help me pllzz

Or my sense of sailing to deadlines :)

-Original Message-
From: John Nichel [mailto:[EMAIL PROTECTED] 
Sent: 18 January 2006 16:11
To: php-general@lists.php.net
Subject: Re: [PHP] help me pllzz

Jay Blanchard wrote:
> [snip]
>i am having 2 combo box one for city & another one
> for country,when i select particular country say 
> "india" their corresponding cities will be displayed
> in city combobox as "delhi,bangalore.",when i
> select  "Australia" thier cities like
> "perth,brisbane"will be displayed.plz help me
> itz very urgent.
> [/snip]
> 
> 
> H, is everything you do urgent?

I think he and I must have the same boss.

-- 
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
[EMAIL PROTECTED]

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

__ NOD32 1.1370 (20060118) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com

-- 
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



RE: [PHP] help me pllzzzzzz

2006-01-18 Thread Dan Parry
Or my sense of sailing to deadlines :)

-Original Message-
From: John Nichel [mailto:[EMAIL PROTECTED] 
Sent: 18 January 2006 16:11
To: php-general@lists.php.net
Subject: Re: [PHP] help me pllzz

Jay Blanchard wrote:
> [snip]
>i am having 2 combo box one for city & another one
> for country,when i select particular country say 
> "india" their corresponding cities will be displayed
> in city combobox as "delhi,bangalore.",when i
> select  "Australia" thier cities like
> "perth,brisbane"will be displayed.plz help me
> itz very urgent.
> [/snip]
> 
> 
> H, is everything you do urgent?

I think he and I must have the same boss.

-- 
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
[EMAIL PROTECTED]

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

__ NOD32 1.1370 (20060118) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com

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



Re: [PHP] help me pllzzzzzz

2006-01-18 Thread John Nichel

Jay Blanchard wrote:

[snip]
   i am having 2 combo box one for city & another one
for country,when i select particular country say 
"india" their corresponding cities will be displayed

in city combobox as "delhi,bangalore.",when i
select  "Australia" thier cities like
"perth,brisbane"will be displayed.plz help me
itz very urgent.
[/snip]


H, is everything you do urgent?


I think he and I must have the same boss.

--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
[EMAIL PROTECTED]

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



RE: [PHP] help me pllzzzzzz

2006-01-18 Thread Jay Blanchard
[snip]
   i am having 2 combo box one for city & another one
for country,when i select particular country say 
"india" their corresponding cities will be displayed
in city combobox as "delhi,bangalore.",when i
select  "Australia" thier cities like
"perth,brisbane"will be displayed.plz help me
itz very urgent.
[/snip]


H, is everything you do urgent? Anyhow, you want JavaScript for this,
not PHP.

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



[PHP] help me pllzzzzzz

2006-01-18 Thread suresh kumar
hi,
   i am having 2 combo box one for city & another one
for country,when i select particular country say 
"india" their corresponding cities will be displayed
in city combobox as "delhi,bangalore.",when i
select  "Australia" thier cities like
"perth,brisbane"will be displayed.plz help me
itz very urgent.
   A.suresh

Send instant messages to your online friends http://in.messenger.yahoo.com 

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



Re: [PHP] help me plz

2006-01-18 Thread Max Belushkin
If this is on the same web page, your question has nothing to do with 
PHP - look into, i.e., JavaScript.


suresh kumar wrote:

hi,
   i am using 2 combo box one for country & another
one for city.when i select country name from combo box
their corresponding city names has to be changed in
their corresponding combo box.i dont know how 2
implement this.pz give me some idea.its urgent.
  A.suresh

Send instant messages to your online friends http://in.messenger.yahoo.com 



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



[PHP] help me plz

2006-01-18 Thread suresh kumar
hi,
   i am using 2 combo box one for country & another
one for city.when i select country name from combo box
their corresponding city names has to be changed in
their corresponding combo box.i dont know how 2
implement this.pz give me some idea.its urgent.
  A.suresh

Send instant messages to your online friends http://in.messenger.yahoo.com 

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



Re: [PHP] help me in creating tables on the fly

2005-10-12 Thread Jasper Bryant-Greene

Suresh Pandian wrote:

im currently working on creating musical forum. i need to create
tables for every song uploaded on the fly to save the comments and
rates entered by the viewers. im unable to create tables on the
fly. can anyone know how to create tables on the fly
.plz tell me . Also, can u tell me the way to how to
play the song using php.. i uploaded the songs to mysql
database... if u know the same kind of work  anywhere  in the net as
tutorials and help .plza tell me the URL


AHHH! Don't create a table for every song Have a `songs` table 
containing all of the songs. Something like:


CREATE TABLE songs (songID INT UNSIGNED NOT NULL AUTO_INCREMENT, artist 
VARCHAR(50) NOT NULL, title VARCHAR(50) NOT NULL, PRIMARY KEY(songID));


(simplified) and another table `comments` like this:

CREATE TABLE comments (commentID INT UNSIGNED NOT NULL AUTO_INCREMENT, 
songID INT UNSIGNED NOT NULL, comment TEXT NOT NULL, PRIMARY 
KEY(commentID), KEY(songID));


and another `ratings` like this:

CREATE TABLE ratings (ratingID INT UNSIGNED NOT NULL AUTO_INCREMENT, 
songID INT UNSIGNED NOT NULL, rating TINYINT UNSIGNED NOT NULL, PRIMARY 
KEY(ratingID), KEY(songID));


That's why it's called a *relational* database. If you're using InnoDB 
you can even define the relations between the tables using foreign keys. 
Go to http://dev.mysql.com/doc/en/mysql/ and have a good read of the 
MySQL manual, it will be very helpful for you.


Please don't just copy-paste the above table definitions, they're meant 
to be modified to suit your needs.


I'll leave your other question to be answered by someone with experience 
of streaming audio from PHP, as I've never had occasion to do that.


--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/

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



Re: [PHP] help me in creating tables on the fly

2005-10-12 Thread Jochem Maas

Suresh Pandian wrote:

hello friends,
 
im currently working on creating musical forum.

i need to create tables for every song uploaded on the fly to save the comments 
and rates entered by the viewers.
im unable to create tables on the fly.


...

if I upload 1000 songs to your server then that will ammount to a 1000 tables. 
and a 1000
songs is nothing the whole idea of creating a table for every song is wrong 
and will get you
into trouble (100,000 songs will crash your system), you only need one table to 
store
all the comments for each song - and possible one extra table to store the 
rates for all songs.


can anyone know how to create tables on the fly .plz tell me .


all you need to do is generate an sql query with the CREATE TABLE syntax. and 
then run it
the same way you would run a normal query - thsi assumes that youre database 
actually allows
the relevant user to create tables.


Also, can u tell me the way to how to play the song using php..
i uploaded the songs to mysql database...
if u know the same kind of work  anywhere  in the net as tutorials and help 
.plza tell me the URL


Google for 'Database design' 'Data Normalization' and stuff like that - you 
seem to be in need
of knowledge regarding how to create a half decent database (one that wont bite 
you in the ass)

 
Thanks to all..
 
Suresh.P



-
 Yahoo! India Matrimony: Find your partner now.


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



[PHP] help me in creating tables on the fly

2005-10-12 Thread Suresh Pandian
hello friends,
 
im currently working on creating musical forum.
i need to create tables for every song uploaded on the fly to save the comments 
and rates entered by the viewers.
im unable to create tables on the fly.
can anyone know how to create tables on the fly .plz tell me .
Also, can u tell me the way to how to play the song using php..
i uploaded the songs to mysql database...
if u know the same kind of work  anywhere  in the net as tutorials and help 
.plza tell me the URL
 
Thanks to all..
 
Suresh.P


-
 Yahoo! India Matrimony: Find your partner now.

Re: [PHP] help me to draw a listview in my website

2005-09-12 Thread Jesper Gran

Maybe this could be something? I haven't tried it though.

http://www.activewidgets.com/grid/

/Jesper

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



Re: [PHP] help me to draw a listview in my website

2005-09-12 Thread Nahalingam N. Kanakavel
hi,

I want to display several fields of values as a row, with header such as

-- |
Name age mail-id | Header part, by clicking over this I want to sort the
--- | rows 
below this.
. 
here rows of values. 
.
-

On 9/12/05, Gustav Wiberg <[EMAIL PROTECTED]> wrote:
> 
> Hi there!
> 
> What do you mean with listview? Of what?
> 
> /G
> http://www.varupiraten.se/
> 
> - Original Message -
> From: "Nahalingam N. Kanakavel" <[EMAIL PROTECTED]>
> To: "PHP" 
> Sent: Monday, September 12, 2005 11:05 AM
> Subject: [PHP] help me to draw a listview in my website
> 
> 
> hi all,
> 
> If any scripts available to draw a list view.
> Plz help me, by giving some links or scripts avilable with you.
> 
> thanks in advance.
> 
> --
> with regds,
> Nahalingam.
> 
> 
> 
> 
> 
> 
> 
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.344 / Virus Database: 267.10.21/96 - Release Date: 2005-09-10
> 
> 


-- 
with regds,
Nahalingam.


Re: [PHP] help me to draw a listview in my website

2005-09-12 Thread Gustav Wiberg

Hi there!

What do you mean with listview? Of what?

/G
http://www.varupiraten.se/

- Original Message - 
From: "Nahalingam N. Kanakavel" <[EMAIL PROTECTED]>

To: "PHP" 
Sent: Monday, September 12, 2005 11:05 AM
Subject: [PHP] help me to draw a listview in my website


hi all,

If any scripts available to draw a list view.
Plz help me, by giving some links or scripts avilable with you.

thanks in advance.

--
with regds,
Nahalingam.






No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.21/96 - Release Date: 2005-09-10

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



Re: [PHP] help me to draw a listview in my website

2005-09-12 Thread Burhan Khalid

Nahalingam N. Kanakavel wrote:

hi all,

If any scripts available to draw a list view.
Plz help me, by giving some links or scripts avilable with you.


What is a list view?

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



[PHP] help me to draw a listview in my website

2005-09-12 Thread Nahalingam N. Kanakavel
hi all,

If any scripts available to draw a list view.
Plz help me, by giving some links or scripts avilable with you.

thanks in advance.

-- 
with regds,
Nahalingam.


RE: [PHP] help me

2005-02-23 Thread Reinhart Viane
This is how I would do it, don't know if it is the best way.

A. get the date out of the database
Let's say $maindate is that date you retrieved from the database

B. split up the date into several parts for day month and year The day as a
number (dd):
$day=date ("j", strtotime($maindate));

The month as a number (mm):
$month= date ("m", strtotime($maindate));

The month as a number (yy):
$year= date ("Y", strtotime($maindate));

C. Now in your combobox you must do something like:


  '.$aday.'');
}
?>


That should do the trick

Greetz
Reinhart

-Oorspronkelijk bericht-
Van: K Karthik [mailto:[EMAIL PROTECTED] 
Verzonden: woensdag 23 februari 2005 13:41
Aan: php-general@lists.php.net
Onderwerp: [PHP] help me

dear sir,
i'd like to get a date from my database(mysql).and then show a combobox 
of calendar(date-month-year) with the retrieved data selected.
can you help me doing this?? am new to php.
thanks,
karthikeyan

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




-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.4.0 - Release Date: 22/02/2005




-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.4.0 - Release Date: 22/02/2005

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



Re: [PHP] help me

2005-02-23 Thread Richard Lynch
K Karthik wrote:
> i'd like to get a date from my database(mysql).and then show a combobox
> of calendar(date-month-year) with the retrieved data selected.
> can you help me doing this?? am new to php.

http://www.google.com/search?q=PHP+date+combobox

-- 
Like Music?
http://l-i-e.com/artists.htm

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



[PHP] help me

2005-02-23 Thread K Karthik
dear sir,
i'd like to get a date from my database(mysql).and then show a combobox 
of calendar(date-month-year) with the retrieved data selected.
can you help me doing this?? am new to php.
thanks,
karthikeyan

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


Re: [PHP] help me

2005-02-18 Thread Pablo M. Rivas
http://www.php.net/date


On Fri, 18 Feb 2005 12:07:14 +0530, K Karthik <[EMAIL PROTECTED]> wrote:
> i am so surprised for the immediate reply.thank you so much.
> i'll be thank ful again if you could help me finding the current date
> and time using php.
> thanks,
> karthik
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


-- 
Pablo M. Rivas. http://www.pmrivas.com http://www.r3soft.com.ar
---

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



Re: [PHP] [php] -help me

2005-02-18 Thread M. Sokolewicz
Tyler Replogle wrote:
$str_array = explode("/", ""/home/karthik/welcome.php/view.php");
// $str_array[4] shoud be view.php
From: K Karthik <[EMAIL PROTECTED]>
To: php-general@lists.php.net
Subject: [PHP] [php] -help me
Date: Fri, 18 Feb 2005 11:20:29 +0530
MIME-Version: 1.0
Received: from lists.php.net ([216.92.131.4]) by MC8-F21.hotmail.com 
with Microsoft SMTPSVC(6.0.3790.211); Thu, 17 Feb 2005 21:49:59 -0800
Received: from ([216.92.131.4:8115] helo=lists.php.net)by pb1.pair.com 
(ecelerity 1.2 (r4437)) with SMTPid CA/4E-28819-70285124 for 
<[EMAIL PROTECTED]>; Fri, 18 Feb 2005 00:49:59 -0500
Received: (qmail 87241 invoked by uid 1010); 18 Feb 2005 05:49:25 -
Received: (qmail 87119 invoked by uid 1010); 18 Feb 2005 05:49:22 -
X-Message-Info: JGTYoYF78jHVyuGSbP1BO8du3qnIwzSNq7BOh4Qcf90=
Return-Path: <[EMAIL PROTECTED]>
X-Host-Fingerprint: 216.92.131.4 lists.php.net  Mailing-List: contact 
[EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
list-help: <mailto:[EMAIL PROTECTED]>
list-unsubscribe: <mailto:[EMAIL PROTECTED]>
list-post: <mailto:php-general@lists.php.net>
Delivered-To: mailing list php-general@lists.php.net
Delivered-To: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
X-Host-Fingerprint: 203.193.155.110 alps.manageengine.org Linux 2.4/2.6
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) 
Gecko/20040913
X-Accept-Language: en-us, en
X-OriginalArrivalTime: 18 Feb 2005 05:50:00.0026 (UTC) 
FILETIME=[AEF42BA0:01C5157D]

i have got string as "/home/karthik/welcome.php/view.php"
i just need "view.php" how shall i remove rest of the string.
please do help me.i am new to php.
-thanks,
karthik
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
or use basename()
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] [php] -help me

2005-02-18 Thread Tyler Replogle
$str_array = explode("/", ""/home/karthik/welcome.php/view.php");
// $str_array[4] shoud be view.php
From: K Karthik <[EMAIL PROTECTED]>
To: php-general@lists.php.net
Subject: [PHP] [php] -help me
Date: Fri, 18 Feb 2005 11:20:29 +0530
MIME-Version: 1.0
Received: from lists.php.net ([216.92.131.4]) by MC8-F21.hotmail.com with 
Microsoft SMTPSVC(6.0.3790.211); Thu, 17 Feb 2005 21:49:59 -0800
Received: from ([216.92.131.4:8115] helo=lists.php.net)by pb1.pair.com 
(ecelerity 1.2 (r4437)) with SMTPid CA/4E-28819-70285124 for 
<[EMAIL PROTECTED]>; Fri, 18 Feb 2005 00:49:59 -0500
Received: (qmail 87241 invoked by uid 1010); 18 Feb 2005 05:49:25 -
Received: (qmail 87119 invoked by uid 1010); 18 Feb 2005 05:49:22 -
X-Message-Info: JGTYoYF78jHVyuGSbP1BO8du3qnIwzSNq7BOh4Qcf90=
Return-Path: <[EMAIL PROTECTED]>
X-Host-Fingerprint: 216.92.131.4 lists.php.net  Mailing-List: contact 
[EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
list-help: <mailto:[EMAIL PROTECTED]>
list-unsubscribe: <mailto:[EMAIL PROTECTED]>
list-post: <mailto:php-general@lists.php.net>
Delivered-To: mailing list php-general@lists.php.net
Delivered-To: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
X-Host-Fingerprint: 203.193.155.110 alps.manageengine.org Linux 2.4/2.6
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) 
Gecko/20040913
X-Accept-Language: en-us, en
X-OriginalArrivalTime: 18 Feb 2005 05:50:00.0026 (UTC) 
FILETIME=[AEF42BA0:01C5157D]

i have got string as "/home/karthik/welcome.php/view.php"
i just need "view.php" how shall i remove rest of the string.
please do help me.i am new to php.
-thanks,
karthik
--
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


Re: [PHP] [php] -help me

2005-02-17 Thread Bret Hughes
On Thu, 2005-02-17 at 23:50, K Karthik wrote:
> i have got string as "/home/karthik/welcome.php/view.php"
> i just need "view.php" how shall i remove rest of the string.
> please do help me.i am new to php.
> -thanks,
> karthik
> 

Lets see if you can learn to fish.

Since you are new you should learn that one of the greatest resources in
all of opensource software is the php.net documentation.

try entering php.net/searchterm in the browser
ie: php.net/filename

hmm looks like there is a function called basename you might want to
look at.

The manual has all functions arranged by functional area ( eg
filesystem)

I can't tell you enough what a powerful resource this was to me a a
beginning php programmer and remains so to this day.

Bret

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



[PHP] help me

2005-02-17 Thread K Karthik
i am so surprised for the immediate reply.thank you so much.
i'll be thank ful again if you could help me finding the current date 
and time using php.
thanks,
karthik

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


[PHP] [php] -help me

2005-02-17 Thread K Karthik
i have got string as "/home/karthik/welcome.php/view.php"
i just need "view.php" how shall i remove rest of the string.
please do help me.i am new to php.
-thanks,
karthik
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] help me

2005-02-17 Thread Robby Russell
On Thu, 2005-02-17 at 19:11 +0530, K Karthik wrote:
> > can u help me to use $_SERVER['remote_addr'] to find the IP address ?
> > i am new to php. i also want to find what page of my site he is viewing ?
> 

print_r($_SERVER);

what do you see?



-- 
/***
* Robby Russell | Owner.Developer.Geek
* PLANET ARGON  | www.planetargon.com
* Portland, OR  | [EMAIL PROTECTED]
* 503.351.4730  | blog.planetargon.com
* PHP/PostgreSQL Hosting & Development
* --- Now hosting Ruby on Rails Apps ---
/

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



[PHP] help me

2005-02-17 Thread K Karthik
can u help me to use $_SERVER['remote_addr'] to find the IP address ?
i am new to php. i also want to find what page of my site he is viewing ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] help me split chars w/o spaces by 2... like: 2004

2004-12-09 Thread ApexEleven
I did something like this a while back, I believe I used chunk_split

[code]

[/code]

it'll output something along the lines of:
20
04

Hope this helps,

-- 
<<
Jasper Howard - Database Administration
ApexEleven.com
530 559 0107
--->>

On Thu, 9 Dec 2004 10:21:49 +0800, Louie Miranda <[EMAIL PROTECTED]> wrote:
>  $hello2 = chop($year_split);
> echo $hello2;
> ?>
> 
> outputs: 2004
> 
> Whats the correct syntax for it? The manual said..
> 
> This function is an alias of rtrim().
> 
> and:
> 
> rtrim
> (PHP 3, PHP 4 )
> 
> rtrim --  Strip whitespace from the end of a string
> 
> 
> 
> 
> On Wed, 08 Dec 2004 18:11:19 -0800, Tyler Replogle <[EMAIL PROTECTED]> wrote:
> > have you tride using chop() ?
> > # begin code
> > $year_split = date("Y");
> > $chars = chop($year_split);
> > $chars[0] // = 2
> > $chars[1] // = 0
> > $chars[2] // = 0
> > $chars[3]  //= 4
> > # end code
> > I hope that will help
> >
> > >From: Louie Miranda <[EMAIL PROTECTED]>
> > >Reply-To: Louie Miranda <[EMAIL PROTECTED]>
> > >To: [EMAIL PROTECTED]
> > >Subject: [PHP] help me split chars w/o spaces by 2... like: 2004
> > >Date: Thu, 9 Dec 2004 09:55:57 +0800
> > >MIME-Version: 1.0
> > >Received: from pb1.pair.com ([216.92.131.4]) by mc6-f24.hotmail.com with
> > >Microsoft SMTPSVC(5.0.2195.6713); Wed, 8 Dec 2004 17:56:52 -0800
> > >Received: (qmail 21242 invoked by uid 1010); 9 Dec 2004 01:56:02 -
> > >Received: (qmail 21150 invoked by uid 1010); 9 Dec 2004 01:56:01 -
> > >X-Message-Info: 6sSXyD95QpUKIecQn+Z/xIP21pcg8LTu
> > >Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> > >Precedence: bulk
> > >list-help: <mailto:[EMAIL PROTECTED]>
> > >list-unsubscribe: <mailto:[EMAIL PROTECTED]>
> > >list-post: <mailto:[EMAIL PROTECTED]>
> > >Delivered-To: mailing list [EMAIL PROTECTED]
> > >Delivered-To: [EMAIL PROTECTED]
> > >Delivered-To: [EMAIL PROTECTED]
> > >DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;s=beta;
> > >d=gmail.com;
> > >h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding;
> > >
> > >b=gp2OcpYqK7wZkSMBhO5OvxdTzhTOQdM1+n9ZtLJ4lmsKWFpVRb9Y2kyjNIrRIX/rvXeFfwCVGh7LT6kub0DMmCGdeRiLKeCjJkxK4fWxSrP2D+FexciD2lT8ASKD7TNYC3YGIZLZbk5UEJIq9Yx2TkbIdgNd/Op3+iEviy1scI4=
> > >Return-Path: [EMAIL PROTECTED]
> > >X-OriginalArrivalTime: 09 Dec 2004 01:56:53.0406 (UTC)
> > >FILETIME=[5AF313E0:01C4DD92]
> >
> >
> > >
> > >Help me split chars w/o spaces by 2... like: 2004
> > >How can i make it?
> > >
> > >first: 20
> > >second: 04
> > >
> > >Im working on this..
> > >
> > ># begin code
> > >$year_split = date("Y");
> > >$chars = preg_split('//', $year_split, -1, PREG_SPLIT_NO_EMPTY);
> > ># end code
> > >
> > >But it splits the whole "2004" string..
> > >
> > >Array
> > >(
> > > [0] => 2
> > > [1] => 0
> > > [2] => 0
> > > [3] => 4
> > >)
> > >
> > >
> > >--
> > >Louie Miranda
> > >http://www.axishift.com
> > >
> > >--
> > >PHP General Mailing List (http://www.php.net/)
> > >To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
> >
> 
> --
> Louie Miranda
> http://www.axishift.com
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


-- 
<<
Jasper Howard - Database Administration
ApexEleven.com
530 559 0107
--->>

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



Re: [PHP] help me split chars w/o spaces by 2... like: 2004

2004-12-08 Thread Louie Miranda


outputs: 2004

Whats the correct syntax for it? The manual said.. 

This function is an alias of rtrim(). 

and: 

rtrim
(PHP 3, PHP 4 )

rtrim --  Strip whitespace from the end of a string 



On Wed, 08 Dec 2004 18:11:19 -0800, Tyler Replogle <[EMAIL PROTECTED]> wrote:
> have you tride using chop() ?
> # begin code
> $year_split = date("Y");
> $chars = chop($year_split);
> $chars[0] // = 2
> $chars[1] // = 0
> $chars[2] // = 0
> $chars[3]  //= 4
> # end code
> I hope that will help
> 
> >From: Louie Miranda <[EMAIL PROTECTED]>
> >Reply-To: Louie Miranda <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: [PHP] help me split chars w/o spaces by 2... like: 2004
> >Date: Thu, 9 Dec 2004 09:55:57 +0800
> >MIME-Version: 1.0
> >Received: from pb1.pair.com ([216.92.131.4]) by mc6-f24.hotmail.com with
> >Microsoft SMTPSVC(5.0.2195.6713); Wed, 8 Dec 2004 17:56:52 -0800
> >Received: (qmail 21242 invoked by uid 1010); 9 Dec 2004 01:56:02 -
> >Received: (qmail 21150 invoked by uid 1010); 9 Dec 2004 01:56:01 -
> >X-Message-Info: 6sSXyD95QpUKIecQn+Z/xIP21pcg8LTu
> >Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> >Precedence: bulk
> >list-help: <mailto:[EMAIL PROTECTED]>
> >list-unsubscribe: <mailto:[EMAIL PROTECTED]>
> >list-post: <mailto:[EMAIL PROTECTED]>
> >Delivered-To: mailing list [EMAIL PROTECTED]
> >Delivered-To: [EMAIL PROTECTED]
> >Delivered-To: [EMAIL PROTECTED]
> >DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;s=beta;
> >d=gmail.com;
> >h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding;
> >
> >b=gp2OcpYqK7wZkSMBhO5OvxdTzhTOQdM1+n9ZtLJ4lmsKWFpVRb9Y2kyjNIrRIX/rvXeFfwCVGh7LT6kub0DMmCGdeRiLKeCjJkxK4fWxSrP2D+FexciD2lT8ASKD7TNYC3YGIZLZbk5UEJIq9Yx2TkbIdgNd/Op3+iEviy1scI4=
> >Return-Path: [EMAIL PROTECTED]
> >X-OriginalArrivalTime: 09 Dec 2004 01:56:53.0406 (UTC)
> >FILETIME=[5AF313E0:01C4DD92]
> 
> 
> >
> >Help me split chars w/o spaces by 2... like: 2004
> >How can i make it?
> >
> >first: 20
> >second: 04
> >
> >Im working on this..
> >
> ># begin code
> >$year_split = date("Y");
> >$chars = preg_split('//', $year_split, -1, PREG_SPLIT_NO_EMPTY);
> ># end code
> >
> >But it splits the whole "2004" string..
> >
> >Array
> >(
> > [0] => 2
> > [1] => 0
> > [2] => 0
> > [3] => 4
> >)
> >
> >
> >--
> >Louie Miranda
> >http://www.axishift.com
> >
> >--
> >PHP General Mailing List (http://www.php.net/)
> >To unsubscribe, visit: http://www.php.net/unsub.php
> >
> 
> 


-- 
Louie Miranda
http://www.axishift.com

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



Re: [PHP] help me split chars w/o spaces by 2... like: 2004

2004-12-08 Thread Robby Russell
On Thu, 2004-12-09 at 09:55 +0800, Louie Miranda wrote:
> Help me split chars w/o spaces by 2... like: 2004
> How can i make it?
> 
> first: 20
> second: 04
> 
> Im working on this..
> 
> # begin code
> $year_split = date("Y");
> $chars = preg_split('//', $year_split, -1, PREG_SPLIT_NO_EMPTY);
> # end code
> 
> But it splits the whole "2004" string..
> 
> Array
> (
> [0] => 2
> [1] => 0
> [2] => 0
> [3] => 4
> )
> 
> 

First of all, what sort of code are you building that needs to split the
year by 2 sets of 2 digits?

Second, you can do this like so:

$foo = date("Y");

$bar = array();

$bar[] = substr($foo,0,2);
$bar[] = substr($foo,2,2);

print_r($bar);


> Array
> (
> [0] => 20
> [1] => 04
> )


-Robby

-- 
/***
* Robby Russell | Owner.Developer.Geek
* PLANET ARGON  | www.planetargon.com
* Portland, OR  | [EMAIL PROTECTED]
* 503.351.4730  | blog.planetargon.com
* PHP/PostgreSQL Hosting & Development
*--- Now supporting PHP5 ---
/


signature.asc
Description: This is a digitally signed message part


RE: [PHP] help me split chars w/o spaces by 2... like: 2004

2004-12-08 Thread Tyler Replogle
have you tride using chop() ?
# begin code
$year_split = date("Y");
$chars = chop($year_split);
$chars[0] // = 2
$chars[1] // = 0
$chars[2] // = 0
$chars[3]  //= 4
# end code
I hope that will help
From: Louie Miranda <[EMAIL PROTECTED]>
Reply-To: Louie Miranda <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: [PHP] help me split chars w/o spaces by 2... like: 2004
Date: Thu, 9 Dec 2004 09:55:57 +0800
MIME-Version: 1.0
Received: from pb1.pair.com ([216.92.131.4]) by mc6-f24.hotmail.com with 
Microsoft SMTPSVC(5.0.2195.6713); Wed, 8 Dec 2004 17:56:52 -0800
Received: (qmail 21242 invoked by uid 1010); 9 Dec 2004 01:56:02 -
Received: (qmail 21150 invoked by uid 1010); 9 Dec 2004 01:56:01 -
X-Message-Info: 6sSXyD95QpUKIecQn+Z/xIP21pcg8LTu
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
list-help: <mailto:[EMAIL PROTECTED]>
list-unsubscribe: <mailto:[EMAIL PROTECTED]>
list-post: <mailto:[EMAIL PROTECTED]>
Delivered-To: mailing list [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;s=beta; 
d=gmail.com;
h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; 
   
b=gp2OcpYqK7wZkSMBhO5OvxdTzhTOQdM1+n9ZtLJ4lmsKWFpVRb9Y2kyjNIrRIX/rvXeFfwCVGh7LT6kub0DMmCGdeRiLKeCjJkxK4fWxSrP2D+FexciD2lT8ASKD7TNYC3YGIZLZbk5UEJIq9Yx2TkbIdgNd/Op3+iEviy1scI4=
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 09 Dec 2004 01:56:53.0406 (UTC) 
FILETIME=[5AF313E0:01C4DD92]

Help me split chars w/o spaces by 2... like: 2004
How can i make it?
first: 20
second: 04
Im working on this..
# begin code
$year_split = date("Y");
$chars = preg_split('//', $year_split, -1, PREG_SPLIT_NO_EMPTY);
# end code
But it splits the whole "2004" string..
Array
(
[0] => 2
[1] => 0
[2] => 0
[3] => 4
)
--
Louie Miranda
http://www.axishift.com
--
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


[PHP] help me split chars w/o spaces by 2... like: 2004

2004-12-08 Thread Louie Miranda
Help me split chars w/o spaces by 2... like: 2004
How can i make it?

first: 20
second: 04

Im working on this..

# begin code
$year_split = date("Y");
$chars = preg_split('//', $year_split, -1, PREG_SPLIT_NO_EMPTY);
# end code

But it splits the whole "2004" string..

Array
(
[0] => 2
[1] => 0
[2] => 0
[3] => 4
)


-- 
Louie Miranda
http://www.axishift.com

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



Re: [PHP] Help Me Understand PHP5, register_globals=off, $HTTP_POST_VARS, and $_POST

2004-10-13 Thread Jason Wong
On Wednesday 13 October 2004 15:08, Francis Chang wrote:

[snip]

> access the post variables.  My question is, is the $HTTP_POST_VARS global
> still populated for backwards compatibility?  In other words, if I have an
> old script that has the following piece of code running on a PHP5.0
> environment with register_globals off (after submission of a form), would
> it still work as expected?
>
> Function someFunction($variable) {
>   global $HTTP_POST_VARS;
>
>   return IsSet($HTTP_POST_VARS[$variable])
>
> }

manual > Appendix B. Migrating from PHP 4 to PHP 5

see section "New Directives".

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
There are more dead people than living, and their numbers are increasing.
-- Eugene Ionesco
*/

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



[PHP] Help Me Understand PHP5, register_globals=off, $HTTP_POST_VARS, and $_POST

2004-10-13 Thread Francis Chang
Hello,

I've done some homework on my own by reading through PHP documentation and 
various articles; however, I am still a bit confused as to what is supported 
in PHP 5.0 when register_globals is set to off.

In PHP5.0, if the register_globals parameter is set to off (as it is by 
default), I know that we're supposed to use the $_POST super globals to 
access the post variables.  My question is, is the $HTTP_POST_VARS global 
still populated for backwards compatibility?  In other words, if I have an 
old script that has the following piece of code running on a PHP5.0 
environment with register_globals off (after submission of a form), would it 
still work as expected?

Function someFunction($variable) {
  global $HTTP_POST_VARS;

  return IsSet($HTTP_POST_VARS[$variable])

}

Thanks in advance for your help.

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



Re: [PHP] help me to get out of this mass mailing

2004-10-09 Thread Greg Donald
On Sat, 9 Oct 2004 16:41:28 +0530, suneel <[EMAIL PROTECTED]> wrote:
> I'm implementing mass mailing program...as there are hundred's of users that receive 
> mails...as a result i'm getting this error...
> 
> Fatal error: Maximum execution time of 30 seconds exceeded in 
> d:\phpsites\ac\asc\acendo on line 42

This was just discussed in great detail like 2 or 3 days ago.  Did you
try searching the mailing list archives?

http://marc.theaimsgroup.com/?l=php-general


-- 
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

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



Re: [PHP] help me to get out of this mass mailing

2004-10-09 Thread Matt M.
> I'm implementing mass mailing program...as there are hundred's of users that receive 
> mails...as a result i'm getting this error...
> 
> Fatal error: Maximum execution time of 30 seconds exceeded in 
> d:\phpsites\ac\asc\acendo on line 42

take a look at 

http://us4.php.net/manual/en/ref.info.php#ini.max-execution-time

you need to bump it up

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



[PHP] help me to get out of this mass mailing

2004-10-09 Thread suneel
Hi guys

I'm implementing mass mailing program...as there are hundred's of users that receive 
mails...as a result i'm getting this error...

Fatal error: Maximum execution time of 30 seconds exceeded in 
d:\phpsites\ac\asc\acendo on line 42

Help meee!

regards,
ss






Re: [PHP] help me with eregi

2004-07-05 Thread John W. Holmes
water_foul wrote:
ho do you make a eregi so it looks at the var as a single line
use the preg_ functions.
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals – www.phparch.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] help me with eregi

2004-07-05 Thread water_foul
sorry i didn't relise i did that till just now

"Richard Davey" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> w> ho do you make a eregi so it looks at the var as a single line
>
> If anyone helps you after you posted 15KB of pointless HTML.. twice..
> I'll be amazed.
>
> Best regards,
>
> Richard Davey
> -- 
>  http://www.launchcode.co.uk - PHP Development Services
>  "I am not young enough to know everything." - Oscar Wilde

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



Re: [PHP] help me with eregi

2004-07-05 Thread Richard Davey
w> ho do you make a eregi so it looks at the var as a single line

If anyone helps you after you posted 15KB of pointless HTML.. twice..
I'll be amazed.

Best regards,

Richard Davey
-- 
 http://www.launchcode.co.uk - PHP Development Services
 "I am not young enough to know everything." - Oscar Wilde

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



[PHP] help me with eregi

2004-07-05 Thread water_foul
ho do you make a eregi so it looks at the var as a single line

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



[PHP] Help me with this please???

2004-01-26 Thread Radwan Aladdin
Hi.. 

I'm trying to make a PHP code that do the following : 

Inserts the server time to the database (When login). and then insert it again (When 
logout). Now I want to compare the two values to know the defference between them by 
minutes.. so for example : if the defference was 2880 minutes then update a value in 
the database (Value in database + 1).. and every 2880 minutes I want to add "1" to the 
value.. 

This for lessons in my project.. the lessons must be updated every 2880 minutes.. but 
not automatically.. I mean the user can login for 60 minutes for example and then 
after 10 days he can login again and see the same lesson.. so every 2880 minutes the 
user stay in the program.. the lesson will be updated.. 

I tried to make it but everytime wrong. 

I hope you got me well.. 

Waiting your help and thanks in advance.. 

Best regards..



[PHP] help me

2003-11-21 Thread mansour shahabi nezhad
I have php 4.3.4 installed on a winxp system .
also i use apache 2.0.48 / mysql 4.0.15 
When i try some php program like phpnuke7.0  the page opened very slowly. can you 
please send me the php.ini file that correct this problem ?
 Thank You 
Mansour


Re: [PHP] help me

2003-10-22 Thread Burhan Khalid
Dave wrote:

I am setting up downloads.ca so as to be like downloads.com I need to be
able to upload files several gigs in size
Dave
Dave :

 Don't top post.
 FTP is what you need to "upload files several gigs in size"
--
Burhan Khalid
phplist[at]meidomus[dot]com
http://www.meidomus.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] help me

2003-10-22 Thread Burhan Khalid
Dave wrote:

Hi I need to edit my php.ini file. I tried to do this through ftp but no go. I am 
really desperate. How do I do it through putty. Ie
I log in
su to root
NOW WHAT?
Find your php.ini file
--
  A few ways to do this. The easiest would be to look at the output of 
phpinfo(). Just create a blank file with  in it, 
upload it to your web server's root directory, and navigate to it.  The 
output will show you the path to the php.ini file that you want.

  If you don't feel like doing that, you can try any one of these 
commands :

   locate php.ini
   whereis php.ini
   find / -name php.ini
Either way you will end up with the location of your php.ini

Next step would be to edit it, for which you can use any text editor 
available on your shell. vi is common, so is vim. Some even have pico 
available.  If you don't know how to use any of these, most will work if 
you give them the path to the file you would like to open, something 
like : vi /home/httpd/htdocs/index.html

If you have a few hours to kill, you can read the online manual for the 
programs, which is available via the man command. Simply type man vi and 
hit enter for the manual for vi.

Please give me step by step instructions including how to save and make my changes.
 I need to do the following
I need to change my php ini file as follows 
; Maximum allowed size for uploaded files.
upload_max_filesize = 2M

Chance It To  

; Maximum allowed size for uploaded files.
upload_max_filesize = 9M
Why do you want to do something like that? There is a reason it defaults 
to 2M -- its to prevent from browsers from timing out when trying to 
upload huge files.  You might want to rethink why you are doing this 
(why ARE you doing it?)

--
Burhan Khalid
phplist[at]meidomus[dot]com
http://www.meidomus.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] help me

2003-10-22 Thread John Nichel
Dave wrote:
Hi I need to edit my php.ini file. I tried to do this through ftp but no go. I am 
really desperate. How do I do it through putty. Ie
I log in
su to root
NOW WHAT?
vi?

Please give me step by step instructions including how to save and make my changes.
 I need to do the following
I need to change my php ini file as follows 
; Maximum allowed size for uploaded files.
upload_max_filesize = 2M

Chance It To  

; Maximum allowed size for uploaded files.
upload_max_filesize = 9M
Please Help me I am so desperate. :(
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] help me

2003-10-21 Thread Jordan S. Jones
Dave,

First thing you need to do is find the location of your php.ini file. I 
typically create a document with the function phpinfo (); and load it up 
in the browser. This will tell you the location of the php.ini file. 
From there you need to use your favorite command line editor to open 
the php.ini file.  I prefer to use VI, so I will give you instructions 
for that. (I will list the actual keystrokes you need to press to 
open/save the file. E.g.  would be pressing the enter key and / 
would be pressing the / key.)

1. vi /location/to/php.ini
2. /upload_max_filesize
3. Arrow keys to the the position where the 2 (or whatever number it is) is.
4. x
5. i
6. 99 (or what ever value you want)
7.:wq (Escape, colon, w, q, Enter)
From there you will want to reload apache or whatever webserver you are 
using.

HTH
Jordan S. Jones
Feel free to donate
https://www.paypal.com/xclick/business=list%40racistnames.com&item_name=Jordan+S.+Jones&no_note=1&tax=0¤cy_code=USD
Dave wrote:

Hi I need to edit my php.ini file. I tried to do this through ftp but no go. I am really desperate. How do I do it through putty. Ie
I log in
su to root
NOW WHAT?
Please give me step by step instructions including how to save and make my changes.
I need to do the following
I need to change my php ini file as follows 
; Maximum allowed size for uploaded files.
upload_max_filesize = 2M

Chance It To  

; Maximum allowed size for uploaded files.
upload_max_filesize = 9M
Please Help me I am so desperate. :(
 

--
I am nothing but a poor boy. Please Donate..
https://www.paypal.com/xclick/business=list%40racistnames.com&item_name=Jordan+S.+Jones&no_note=1&tax=0¤cy_code=USD
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] help me

2003-10-21 Thread Dave
Hi I need to edit my php.ini file. I tried to do this through ftp but no go. I am 
really desperate. How do I do it through putty. Ie
I log in
su to root
NOW WHAT?
Please give me step by step instructions including how to save and make my changes.
 I need to do the following
I need to change my php ini file as follows 
; Maximum allowed size for uploaded files.
upload_max_filesize = 2M

Chance It To  

; Maximum allowed size for uploaded files.
upload_max_filesize = 9M

Please Help me I am so desperate. :(

[PHP] help me please!

2003-07-15 Thread pehepe php
My system is windows 98 second edition
im using pws
i built php 4.2.2
when ý struggle to reach any .php file for example 127.0.0.1/sample.php
this error occur:


Security Alert! The PHP CGI cannot be accessed directly.
This PHP CGI binary was compiled with force-cgi-redirect enabled. This means 
that a page will only be served up if the REDIRECT_STATUS CGI variable is 
set, e.g. via an Apache Action directive.

please help me!!

_
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail

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


Re: [PHP] Help me compose myself... I'm about to kill Microsoft....

2003-06-20 Thread Daniel
LOL =)

"Steve M" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Thu, 19 Jun 2003 13:21:07 +0200, Daniel wrote:
>
> > Okay, I think I'll have to kill myself...
>
> > I can't believe I am this stupid, but it turned out I was working on a
copy
> > of the file, not the real one. D'OH!!!
>
> > Sorry, guys!
>
> > Daniel
>
> That's no reason not to kill M$...
>
> +a
> Steve
> -- 
> Steve Mansfield-Devine
> Aéro-club d'Andaines - LFAO - Bagnoles de l'Orne (Couterne)
> http://www.webvivant.com/aero-andaines



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



Re: [PHP] Help me compose myself... I'm about to kill Microsoft....

2003-06-20 Thread Steve M
On Thu, 19 Jun 2003 13:21:07 +0200, Daniel wrote:

> Okay, I think I'll have to kill myself...

> I can't believe I am this stupid, but it turned out I was working on a copy
> of the file, not the real one. D'OH!!!

> Sorry, guys!

> Daniel

That's no reason not to kill M$...

+a
Steve
-- 
Steve Mansfield-Devine
Aéro-club d'Andaines - LFAO - Bagnoles de l'Orne (Couterne)
http://www.webvivant.com/aero-andaines

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



Re: [PHP] Help me compose myself... I'm about to kill Microsoft....

2003-06-19 Thread Daniel
Okay, I think I'll have to kill myself...

I can't believe I am this stupid, but it turned out I was working on a copy
of the file, not the real one. D'OH!!!

Sorry, guys!

Daniel

"Daniel" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Thanks for the advice, but that would mean I'd have to change the way the
> code works, and that would a bit much, I think... I was hoping for some
> registry editing or a little utility or something...
>
> But thanks =)
>
> Daniel
>
>
> "Awlad Hussain" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > try something like this, not sure if this what you want
> > create a random value like
> > $random = rand();
> >
> > then attach it to the each page.. like
> >
> > index.php?random=$random
> >
> > good luck
> >
> > ----- Original Message - 
> > From: "Daniel" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, June 19, 2003 11:34 AM
> > Subject: [PHP] Help me compose myself... I'm about to kill Microsoft
> >
> >
> > > ARGH!
> > >
> > > I'm losing my marbles here! I'm developing a small CMS for IE, but IE
is
> > > teasing me! It insists on using its cached files instead of those I'm
> > > working on. I've set the cache size to 0, "Check for newer versions of
> > > stored pages:" to "Every visit to the page", and even put this at the
> top
> > of
> > > my PHP scripts:
> > >
> > > header( "Last-Modified: " . gmdate( "D, d M Y H:i:s", filemtime(
> > > $_SERVER['SCRIPT_FILENAME'] ) ) . " GMT" );
> > >
> > > It just keeps on using the cached files! WHY?!??! I'm in TEARS here!
> > > Help!!!
> > >
> > >
> > >
> > > -- 
> > > 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



Re: [PHP] Help me compose myself... I'm about to kill Microsoft....

2003-06-19 Thread Daniel
Thanks for the advice, but that would mean I'd have to change the way the
code works, and that would a bit much, I think... I was hoping for some
registry editing or a little utility or something...

But thanks =)

Daniel


"Awlad Hussain" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> try something like this, not sure if this what you want
> create a random value like
> $random = rand();
>
> then attach it to the each page.. like
>
> index.php?random=$random
>
> good luck
>
> - Original Message - 
> From: "Daniel" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, June 19, 2003 11:34 AM
> Subject: [PHP] Help me compose myself... I'm about to kill Microsoft
>
>
> > ARGH!
> >
> > I'm losing my marbles here! I'm developing a small CMS for IE, but IE is
> > teasing me! It insists on using its cached files instead of those I'm
> > working on. I've set the cache size to 0, "Check for newer versions of
> > stored pages:" to "Every visit to the page", and even put this at the
top
> of
> > my PHP scripts:
> >
> > header( "Last-Modified: " . gmdate( "D, d M Y H:i:s", filemtime(
> > $_SERVER['SCRIPT_FILENAME'] ) ) . " GMT" );
> >
> > It just keeps on using the cached files! WHY?!??! I'm in TEARS here!
> > Help!!!
> >
> >
> >
> > -- 
> > 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



Re: [PHP] Help me compose myself... I'm about to kill Microsoft....

2003-06-19 Thread Awlad Hussain
try something like this, not sure if this what you want
create a random value like
$random = rand();

then attach it to the each page.. like

index.php?random=$random

good luck

- Original Message - 
From: "Daniel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 19, 2003 11:34 AM
Subject: [PHP] Help me compose myself... I'm about to kill Microsoft


> ARGH!
>
> I'm losing my marbles here! I'm developing a small CMS for IE, but IE is
> teasing me! It insists on using its cached files instead of those I'm
> working on. I've set the cache size to 0, "Check for newer versions of
> stored pages:" to "Every visit to the page", and even put this at the top
of
> my PHP scripts:
>
> header( "Last-Modified: " . gmdate( "D, d M Y H:i:s", filemtime(
> $_SERVER['SCRIPT_FILENAME'] ) ) . " GMT" );
>
> It just keeps on using the cached files! WHY?!??! I'm in TEARS here!
> Help!!!
>
>
>
> -- 
> 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



[PHP] Help me compose myself... I'm about to kill Microsoft....

2003-06-19 Thread Daniel
ARGH!

I'm losing my marbles here! I'm developing a small CMS for IE, but IE is
teasing me! It insists on using its cached files instead of those I'm
working on. I've set the cache size to 0, "Check for newer versions of
stored pages:" to "Every visit to the page", and even put this at the top of
my PHP scripts:

header( "Last-Modified: " . gmdate( "D, d M Y H:i:s", filemtime(
$_SERVER['SCRIPT_FILENAME'] ) ) . " GMT" );

It just keeps on using the cached files! WHY?!??! I'm in TEARS here!
Help!!!



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



[PHP] HELP ME NEW FRIENDS....

2003-03-26 Thread Hector Huaranga Segales
HI

my English is no too god ...but

i need information about forms with PHP, data base query,  i need examples
plz...

thanks in advanced

Re: [PHP] Help me pervade Bristol City council to use PHP

2003-03-24 Thread Chris Hewitt
Ben Edwards wrote:

Am talking to a part Bristol City Council in the UK.  To persuade them 
to use PHP I need to find some high profile reference sites.


You may find some useful references in the archive of this list. I 
remember a poster with the subject of:  "Is php used by U.S. Government? 
By U.S. DoD?", and there were qute a few useful responses in the thread. 
Its dated 31/05/02.

Lets get all our councils using LAMP, then the NHS, then all the UK 
government!

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


RE: [PHP] Help me pervade Bristol City council to use PHP

2003-03-24 Thread M.A.Bond
We use it here (although you can't tell because we have set up the extension
to be .html)

http://library.open.ac.uk

It queries a mysql database for the metadata as well as building up the
pages.

Mark Bond
Systems Manager
Open University Library



-Original Message-
From: Ben Edwards [mailto:[EMAIL PROTECTED] 
Sent: 24 March 2003 10:54
To: [EMAIL PROTECTED]
Subject: [PHP] Help me pervade Bristol City council to use PHP


Am talking to a part Bristol City Council in the UK.  To persuade them to 
use PHP I need to find some high profile reference sites.

Looked on php.net but all the sites were technical support sites, not 
really corporate or government sites.  This is not very good, the MySQL lot 
have a very good list of sites at 
http://www.mysql.com/press/user_stories/index.html and the following quote 
on there site

"The MySQL database has an estimated 4,000,000 active installations 
worldwide, and up to 27,000 copies of MySQL are downloaded per day. Major 
corporations such as Yahoo!, Cisco, NASA, Lucent Technologies, Motorola, 
Google, Silicon Graphics, HP, Xerox and Sony Pictures rely on MySQL for 
heavy-duty, mission-critical applications."

This is exactly the type of thing I need for PHP and am supervised it is 
not on the PHP site.

So..

Can anyone give me some sites who use PHP that the people at Bristol city 
Council would of heard of (i.e. high profile sites).

Also I think this type of thing should be on php.net.

Ben


* Ben Edwards  +44 (0)117 968 2602 *
* Critical Site Builderhttp://www.criticaldistribution.com *
* online collaborative web authoring content management system *
* Get alt news/views films online   http://www.cultureshop.org *
* i-Contact Progressive Video  http://www.videonetwork.org *
* Smashing the Corporate image   http://www.subvertise.org *
* Bristol Indymedia   http://bristol.indymedia.org *
* Bristol's radical news http://www.bristle.org.uk *
* PGP : F0CA 42B8 D56F 28AD 169B  49F3 3056 C6DB 8538 EEF8 *


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



[PHP] Help me pervade Bristol City council to use PHP

2003-03-24 Thread Ben Edwards
Am talking to a part Bristol City Council in the UK.  To persuade them to 
use PHP I need to find some high profile reference sites.

Looked on php.net but all the sites were technical support sites, not 
really corporate or government sites.  This is not very good, the MySQL lot 
have a very good list of sites at 
http://www.mysql.com/press/user_stories/index.html and the following quote 
on there site

"The MySQL database has an estimated 4,000,000 active installations 
worldwide, and up to 27,000 copies of MySQL are downloaded per day. Major 
corporations such as Yahoo!, Cisco, NASA, Lucent Technologies, Motorola, 
Google, Silicon Graphics, HP, Xerox and Sony Pictures rely on MySQL for 
heavy-duty, mission-critical applications."

This is exactly the type of thing I need for PHP and am supervised it is 
not on the PHP site.

So..

Can anyone give me some sites who use PHP that the people at Bristol city 
Council would of heard of (i.e. high profile sites).

Also I think this type of thing should be on php.net.

Ben


* Ben Edwards  +44 (0)117 968 2602 *
* Critical Site Builderhttp://www.criticaldistribution.com *
* online collaborative web authoring content management system *
* Get alt news/views films online   http://www.cultureshop.org *
* i-Contact Progressive Video  http://www.videonetwork.org *
* Smashing the Corporate image   http://www.subvertise.org *
* Bristol Indymedia   http://bristol.indymedia.org *
* Bristol's radical news http://www.bristle.org.uk *
* PGP : F0CA 42B8 D56F 28AD 169B  49F3 3056 C6DB 8538 EEF8 *


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.449 / Virus Database: 251 - Release Date: 27/01/2003

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

RE: [PHP] help me please

2003-03-16 Thread Bryan Brannigan
download and install the apache web server.  that along with php should do
the trick.  if you're doing any database work you may want to pick up the
windows version of that too.

some decent instructions are here:
http://www.thesitewizard.com/archive/php4install.shtml

-Original Message-
From: Blair Robinson [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 16, 2003 7:47 PM
To: [EMAIL PROTECTED]
Subject: [PHP] help me please


Hello,
 I am making a web site i just want to be able to view my php outputs On my
Computer how do i do this i have downlaoded the 1mb windows php installer.
and have the zipped version(4.3.0) that is 4mb I have windows xp. Can you
please point me in the right direction or give me some answers on how to
view my pages.

 Thanks
 Blair.


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



[PHP] help me please

2003-03-16 Thread Blair Robinson
Hello,
 I am making a web site i just want to be able to view my php outputs On my Computer 
how do i do this i have downlaoded the 1mb windows php installer. and have the zipped 
version(4.3.0) that is 4mb I have windows xp. Can you please point me in the right 
direction or give me some answers on how to view my pages.
 
 Thanks
 Blair.


  1   2   >