RE: [PHP] Select Values Didn't Get Passed in From Two Different Forms

2010-05-25 Thread Edwin
Hi Adam,
I am not sure this would help but does echo command end with semi colon ;
?.  value=""/> 

Maybe the echo is having some issue? Else, you could try passing the
variables as method = get and view the variables in
Ur address bar....

regards,
Edwin.

-Original Message-
From: Adam Richardson [mailto:simples...@gmail.com] 
Sent: Wednesday, May 26, 2010 1:31 AM
To: php-general@lists.php.net
Subject: Re: [PHP] Select Values Didn't Get Passed in From Two Different
Forms

On Tue, May 25, 2010 at 1:17 PM, Alice Wei  wrote:

>
> Hi,
>
>  It is kind of difficult to explain what I am trying to do here, I will
> provide the form here to give a better idea.
>
>  
>Select the type of your starting point of
> interest:
> action="test_getrss.php" name="form1" method="post">
> value="Apartment" name="start"
>
>  onclick="check(document.form1.start)"/> Apartment 
> value="Grocery" name="start"
>
>  onclick="check(document.form1.start)"/> Grocery 
> value="Drugstore" name="start"
>
>  onclick="check(document.form1.start)"/> Drug Store 
>
>Select the type of your ending point of
> interest:
> action="test_getrss2.php" name="form2" method="post">
> value="Apartment" name="end"
>
>  onclick="check2(document.form2.end)"/> Apartment 
> value="Grocery" name="end"
>
>  onclick="check2(document.form2.end)"/> Grocery 
> value="Drugstore" name="end"
>
>  onclick="check2(document.form2.end)"/> Drug Store 
>
>   
>Start Time:  name="start_time"/>
>Arrive Time:  name="end_time"/>
>Which Semster is this: 
>Fall
>Spring
>Summer
>
>
> value=""/>
> value="Submit" name="submit"/>
> name="reset"/>
>
>
>
> For some reason, when I pass in the output with process.php, the hidden
> input does not get passed in. Here is the process.php:
>
>  //get the q parameter from URL
>
> $start_time = $_POST['start_time'];
> $end_time = $_POST['end_time'];
> $semester = $_POST['semester'];
> $form1 = $_POST['form1'];
> $form2 = $_POST['form2'];
>
> echo "Start Time " . $start_time . "";
> echo "End Time " . $end_time . "";
> echo "Semester " . $semester . "";
> echo "Start Location " . $form1 . "";
> echo "End Location " . $form2 . "";
>
> ?>
>
> I get values for start_time, end_time and semester, but not the last two
> values. What have I done wrong here?
>
> Thanks for your help.
>
> Alice
>
>
> _
> The New Busy is not the old busy. Search, chat and e-mail from your inbox.
>
>
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:W
L:en-US:WM_HMP:042010_3


Where are you setting the variables $start and $end?

Adam

-- 
Nephtali:  PHP web framework that functions beautifully
http://nephtaliproject.com


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



Re: [PHP] hiding passwd in cmdlines that appear in the process list

2006-11-30 Thread Edwin Barrios

Hi .!
First of  all . Pardon if my last mail was not undestable !!

Then Richrad said that, the following is a cons  of my solution :

"  A simple debug statement to dump out all of ENV / $_GLOBALS will expose
the password. So   you have to ask yourself if you and all your employees
and all the scripts you ever install, including any forums etc, are for sure
never ever going to dump that password out in an attempt to debug something
else.  " ...

This is not triue because a shell vars declered on a shell is only exposed
to its subshells, that means that only exec's and system functions calls
into the php itself resive those vars declared into the php !

You can see this argument in the following code

";
 system("env");
 echo "";

 putenv("DBNAME=sidf");
 putenv("DBUSER=p");
 putenv("DBPASSWD=p");

 echo "NEW ";
 system("env");
 echo "";

?>

and reloading these a couple of times.


Re: [PHP] hiding passwd in cmdlines that appear in the process list

2006-11-30 Thread Edwin Barrios

On 11/30/06, Richard Lynch <[EMAIL PROTECTED]> wrote:


On Thu, November 30, 2006 9:59 am, Edwin Barrios wrote:
> I don't know if my solution is better or not. but in one of my
> programs i
> had to make a backup online then my solution was to use shell vars to
> put
> important information like db_password . When we use putenv function
> those
> var only exists on the current shell and on its subshells. In your
> case the
> following code :
>
>putenv("DBNAME=".DB_NAME);
>   putenv("DBUSER=".DB_USER);
>   putenv("DBPASSWD=".DB_PASSWD);
>
>   system('mysql -h localhost --user=$DBUSER  --password=$DBPASSWD -D
> $DBNAME
> < "/my/import/script.sql" 2>&1');
>
> ?>

This solution, as most good ones, has pros and cons:

Pro:
Does keep the password from being exposed in the normal course of
operations.

Con:



This is not triue because a shell vars declered on a shell is only exposed
to its subshells, that means that only exec's and system functions calls
into the php itself resive those vars declared into the php !

You can see this argument in the following code

?php
 error_reporting(E_ALL);


 echo "OLD ";
 system("env");
 echo "";

 putenv("DBNAME=sidf");
 putenv("DBUSER=p");
 putenv("DBPASSWD=p");

 echo "NEW ";
 system("env");
 echo "";

?>

and reloading these a couple of times.

A simple debug statement to dump out all of ENV / $_GLOBALS will

expose the password.

So you have to ask yourself if you and all your employees and all the
scripts you ever install, including any forums etc, are for sure never
ever going to dump that password out in an attempt to debug something
else.

For a solo developer or even a small team, with all custom hand-coded
stuff, this is pretty easy.  But once your application blows up and
you have a larger team, or you start caving in to client demands to
install badly-written forums/carts/blogware, you are open to a
potential security hole which:
  has two seemingly unrelated contributing causes
  the two causes can be years apart in time
  both are simple straight-forward "obvious" Right Things to do

So you have to weigh carefully the Risks, and DOCUMENT what you did
and DOCUMENT what *not* to do in the future to expose this sensitive
data.

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




Re: [PHP] hiding passwd in cmdlines that appear in the process list

2006-11-30 Thread Edwin Barrios

Hi !.

I don't know if my solution is better or not. but in one of my programs i
had to make a backup online then my solution was to use shell vars to put
important information like db_password . When we use putenv function those
var only exists on the current shell and on its subshells. In your case the
following code :

&1');

?>

On 11/30/06, Jochem Maas <[EMAIL PROTECTED]> wrote:


Richard Lynch wrote:
> Don't use exec. ;-v

yeah - which is annoying because outside of php/exec() using the `cat
/path/2/myqyl/passwd`
trick works (i.e. ps doesn't give the passwd away)

thanks to everyone for there input - I have plenty to read/think about,
I send something back to the list when i have decided upon and tested a
working solutions

thanks everyone!

>
> Or, perhaps, write a shell script that reads the password and provides
> it to MySQL somehow without invoking another exec of some kind.
>
> You also could look into other MySQL authentication mechanisms such as
> SSL keys and whatnot -- which I only vaguely recall seeing somewhere
> in the MySQL docs.
>
> That might still end up with a PHP/world readable file that has a
> private key in it, but at least it requires the Bad Guy to take one
> more step to read said file.
>
> On Wed, November 29, 2006 6:10 am, Jochem Maas wrote:
>> I have been using exec() for a number of things recently - one of the
>> things
>> I'm using it for it to run mysql in order to import SQL scripts
>>
>> so I have some code that looks like:
>>
>> // build the cmdline
>> $cmd = sprintf('mysql -h %s --user=%s --password=`cat %s` -D %s <
>> "%s" 2>&1',
>>MYSQL_SERVER, MYSQL_ROOT_USER, $rootPasswdFile,
>>$data['db_name']['value'], $file);
>>
>> // run the mysql command via the cmdline
>> $output = array(); $exit = 0;
>> @exec($cmd, $output, $exit);
>>
>> everything works. but there is a security issue - one that I thought I
>> had
>> specifically tackled.
>>
>> the security issue occurs due to the fact that the process list (this
>> is
>> just linux I'm talking about) will show the complete command line,
>> which in
>> my case would look something like (in the processlist):
>>
>>
>> mysql -h localhost --user=admin --password=`cat
>> /my/sql/root/passwd/file` -D somedb < "/my/import/script.sql" 2>&1
>>
>>
>> AH I hear you say but the wily use of "`cat /my/sql/root/passwd/file`"
>> masks the actual
>> password from any looking in the process list. indeed undeer normal
>> shell scripting circumstances
>> that may have been true.
>>
>> BUT in using php's exec() to run the cmdline causes the following to
>> show up in the processlist:
>>
>>
>> sh -c mysql -h localhost --user=admin --password=`cat
>> /my/sql/root/passwd/file` -D somedb < "/my/import/script.sql" 2>&1
>>
>>
>> AND that [sub]shell then lists it's process[s] in the list also, there
>> is only one
>> and it is this:
>>
>>
>> mysql -h localhost --user=admin --password=MYFINGPWD -D somedb
>>
>>
>> does anyone have an idea how to over come this security issue (without
>> resorting to having to
>> type in the mysql admin passwd interactively!)
>>
>> thanks & regards,
>> Jochem
>>
>> --
>> 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] Multi-threaded port listener

2006-04-28 Thread Edwin Barrios

Hi.

If you want a separate script execution, you can use inetd o xinetd to
listen for you that port.
When inetd got a connection execute your php script, one execution by
connection.

I think that it is more usefull to create your  own responser server with
php using forks !. But using inetd has the advantage that you can use
tcpwrappers.

On 4/28/06, René Fournier <[EMAIL PROTECTED]> wrote:


Anyone find any good tutorials, code samples, etc. on such a thing?
Basically, I want to write server (in PHP) that listeners on a
particular port, and spins off a thread/process (essentially, execute
a separate script) for each incoming connection. There won't be a lot
of data to process, but there will be many simultaneous connections—
upwards of 1000s of connections (each spun off as seperate threads).

...Rene







RE: [PHP] PHP 5 + Apache 2 on Windows: ms sql extension problem

2006-04-26 Thread Ing. Edwin Cruz
Try changing your direcive extension_dir:
extension_dir="C:/PHP/ext"  instead of extension_dir="C:\PHP\ext"




-Mensaje original-
De: Laszlo Nagy [mailto:[EMAIL PROTECTED] 
Enviado el: Miércoles, 26 de Abril de 2006 04:01 a.m.
Para: php-general@lists.php.net
Asunto: [PHP] PHP 5 + Apache 2 on Windows: ms sql extension problem



 Hello All,

I had a problem with a Win2003 server, IIS6 and PHP 5.1.2. The MS SQL 
extension was not working. I did not get an answer, but some people 
suggested me to use Apache. Now I installed Win 2000 server, Apache 
2.0.55 and PHP 5.1.2. The same computer has Microsoft SQL Server 
installed. I have only these lines in my php.ini file:

extension_dir="C:\PHP\ext"
extension=php_mssql.dll

I checked phpinfo() and it tells that my php.ini file is at the correct 
location (C:\winnt\php.ini.) I can load other extensions. Another 
example: if I add "php_curl.dll" then I get a "libsleay32.dll not found" 
error message when I try to restart apache. But I do not get any error 
message about the php_mssql.dll. It is just not loaded. I'm sure that 
all the ms sql client libs are installed, because this is the same 
machine where the ms sql server is running. What can be the problem? 
Please help me. My bosses are killing me because I could not solve this 
problem for weeks. :-(

Thanks,

  Laszlo

-- 
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] Re: Php function to Set focus On A form Field

2006-04-26 Thread Ing. Edwin Cruz
Or if you have header.inc.php and the body tag is global then in your
form.inc.php(for example) or in your template, you can do this:


Window.onLoad=function(){
document.nameform.inputField.focus();
}




Regards!



-Mensaje original-
De: Philipp Kopf [mailto:[EMAIL PROTECTED] 
Enviado el: Miércoles, 26 de Abril de 2006 01:42 a.m.
Para: php-general@lists.php.net
Asunto: [PHP] Re: Php function to Set focus On A form Field


marvin hunkin schrieb:
> Hi.
> is there any php or java script function, where i can embed into my 
> php
> or html file, to set focus on to the first form field, like a text box, 
> to go to that field first, and not to go to the link or button first.
> if there are any tips, tricks, or links or code examples, how to fix 
> this problem.
> let me know.
> cheers Marvin.

Hi.

It is not possible to do that using PHP but you can use JavaScript 
instead. I recommend the function focus(). For example:


Check this tiny tutorial: 
http://javascript.internet.com/page-details/focus-onload.html

Did you already remarked that http://www.google.com is using this 
function to automatically set the focus on the search field.

regards

Philipp

-- 
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] need help to put input text value into url

2006-04-25 Thread Ing. Edwin Cruz
Only chage method="post" for method="get"




Regards!


-Mensaje original-
De: Patrick Aljord [mailto:[EMAIL PROTECTED] 
Enviado el: Martes, 25 de Abril de 2006 06:19 p.m.
Para: php-general@lists.php.net
Asunto: [PHP] need help to put input text value into url


I have a form like this:

  

while this is working fine, I would like the url of search.php to be
something like search.php?q="value+of+search_text"
eg, if I enter "php rules" in my text box, the url should be
http://myfakepage.com/search.php?q="php+rules";
any idea how to do that?

thanx in advance

Pat

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

2006-04-20 Thread Ing. Edwin Cruz
Are you using the constants predefined?

__FILE__ __LINE__

Or also try using backtrace, 

http://mx.php.net/debug_backtrace


Regards!
Edwin.



-Mensaje original-
De: Weber Sites LTD [mailto:[EMAIL PROTECTED] 
Enviado el: Jueves, 20 de Abril de 2006 07:43 a.m.
Para: php-general@lists.php.net
CC: [EMAIL PROTECTED]
Asunto: [PHP] PHP error log


Hi

I'm using PHP 4.4.0 (cli) and all of the errors / warnings are written to
file. I can see all of the direct errors but when I have an error inside an
include file the script fails and the error is not shown in the log. I have
to "guess" 
Where the error is.

Any idea what I'm missing.

Thanks
Berber

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

2006-04-20 Thread Ing. Edwin Cruz
You should set a name to your session:

Index.php:



LogOff.php

++
| ISC Edwin Cruz <[EMAIL PROTECTED]>| ++
| IT Manager, MySQL GUI Doc Team | ||
| Transportes Medel Rogero SA de CV  | ||
| Desk:  +52 (449) 910 30 90 x3054   | ++
| MX Mobile: +52 (449) 111 29 03 |
| Aguascalientes, Mexico |
| Skype: e-cruz <[EMAIL PROTECTED]> |
| http://www.medel.com.mx|
++



-Mensaje original-
De: cajbecu [mailto:[EMAIL PROTECTED] 
Enviado el: Jueves, 20 de Abril de 2006 09:03 a.m.
Para: João Cândido de Souza Neto
CC: php-general@lists.php.net
Asunto: Re: [PHP] session


Hello,

Try generating your own session id and the problem will be solved ;)

cheers,

João Cândido de Souza Neto wrote:
> Hi everyone.
> 
> I hope someone here can help me.
> 
> When i start a session in a php page, this session receives an unique 
> id.
> 
> If you think about this, if i call a session_destroy() in any page and 
> in the other paga call a session_start() again, it'll receive other 
> unique id. But it isn't working. Everything above has been executed 
> but the session id's always the same.
> 
> It can be any config var in php.ini?
> 
> Thanks for tips.
> 

-- 
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] POST arrays?

2006-04-20 Thread Ing. Edwin Cruz
I'd try this:
";
}
?>

And when submit do this:




Regards!


Edwin.



-Mensaje original-
De: tedd [mailto:[EMAIL PROTECTED] 
Enviado el: Jueves, 20 de Abril de 2006 08:28 a.m.
Para: William Stokes; php-general@lists.php.net
Asunto: Re: [PHP] POST arrays?


At 3:55 PM +0300 4/20/06, William Stokes wrote:
>BTW, can sessions and $POST be mixed? If yes is there any reason what 
>so ever to do that?

Yes, you can use sessions, post, get, and cookies all in the same 
script if you want.

Yes, there can be reasons to do that.

tedd

-- 


http://sperling.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] How does one obtain the resolution of an image in PHP?

2006-03-17 Thread - Edwin -
Hi!

On Fri, 17 Mar 2006 10:58:12 -0500
John Hinton wrote:

> - Edwin - wrote:
> > Hi!
> >
> > On Thu, 16 Mar 2006 14:31:38 -0500
> > John Hinton <[EMAIL PROTECTED]> wrote:
> >
> >   
> >> Simon M. Campden-Main wrote:
> >> 
> >>> Well, there's the meat of it, isn't it?  I wonder how Paint
> >>> Shop Pro comes up with PPI (Image - Image information). 
> >>> I have several thousand scanned images with resolution
> >>> ranging from 72 PPI up to 1200 PPI (As reported by Paint
> >>> Shop Pro) and want to discard, or more likely tag as
> >>> rejected, any that suffer a resolution of less than 150
> >>> PPI.  As you might imagine, I find the thought of
> >>> doing it manually with Paint Shop Pro repugnant.
> >>>   
> >
> > Okay, if it was scanned at 72ppi then you can't really print
> > it out again even with a near-similar quality. However, having
> > an image with a 72ppi does NOT necessarily mean that you
> > have an image unsuitable for printing.
> >
> >   
> >> PPI or pixels per inch is a printing term.
> >> 
> >
> > Last time I checked, "dpi" is the printing term. (^_^)
> >
> >   dpi (dots per inch) -> printer
> >   ppi (pixels per inch) -> monitor/screen
> >
> >   
> Still missing it.. Yes, dpi is a printing term.. but has absolutely 
> nothing to with with images. dpi or "Dots per Inch" is purely a

I beg to differ... (see next)

> term that describes the limits of your printer. If for instance, we
> are talking about an ink jet printer with a 600 x 600 dpi
> capability, with black and three colors, that printer can print any
> of the four color or not print in a space 1/600th of an inch as it
> moves along. And there is no blending within that one dot... it's
> simply one of the colors or left the white or the paper color.
> 
> One might think that an image should be scanned at 600 dpi to
> provide and equal quality, but really you can scan at a much
> reduced resolution and get the same results with a basic inkjet

At a "much reduced resolution"? Try scanning some photo, say
an A3 size photo, at 72ppi. Then, try printing that at 600dpi on
the same A3 size paper and see what you get.

> color printer, because the scan will most often be done at 16.7
> million colors.. the printer only has 4(+paper color) so it really
> takes a 4x4 dot area or so to start to get close to matching a
> single pixel. Now, lets don't even go there on printers. The above
> is greatly understated and was how old inkjets worked.. much has
> changed and I really haven't followed exactly what they are doing
> now, but obviously it seems that there is a blending over top of
> other colors in today's printers. Just trying to provide simple
> theory, quick to type, easy to grasp.

Add to that that some have 8(+paper color). And that not all
people are using inkjets.

> So, yet still ppi is being misrepresented.. Please stop doing this.

Who is misrepresenting what? ;-)

> If you don't believe me try this. Open a quality paint program. In
> fact, Macromedia's Fireworks in the image sizing dialog  box
> separates pixel dimensions from ppi putting ALL ppi function under
> the heading of "Print Size". The example.
> 
> Open or create an image 600 pixels x 300 pixels.
> 
> Make sure you stay at 100% zoom factor.
> 
> Set the printing Pixels/Inch to 150, but don't let the program
> change the Pixel dimensions. You will be given a print size of 4" x
> 2". The image will take up 600 x 300 pixels of your monitor screen
> space.
> 
> Now with that same image, change only the resolution to 300. Leave
> the pixel dimensions the same (one has to be careful with the
> locking of proportions and samplings to be sure the program doesn't
> change the pixel dimensions when changing the Pixel/Inch). You will
> now see that the print size is 2" x 1", but yet the image size on
> the screen has not changed sizes.

Of course!

> A pixel is a pixel to a monitor. A pixel is sent thru an algorithm
> on the way to a printer and by and large, print quality has to be
> much greater than monitor quality to 'look' as good. Basically, you
> can't get a 4" wide image on the screen to look as good when
> printed at 4" wide.

That's correct. And nobody said otherwise.

> A general guideline is images for print should be no less than 150
> ppi, newspaper quality, and 300 to 600 is recommended for color
> brochures and "near photo quality". So, using our example above and
>

Re: [PHP] Re: PHP files in the SRC attribute of an SCRIPT element

2006-03-17 Thread - Edwin -
Hi!

On Fri, 17 Mar 2006 17:42:51 +0200
Karl-Heinz Christian Zeck wrote:

> Thank you for your quick reply.
> 
> I tried to modify the file. I removed all it's content and wrote
> only a single line:
> alert("test");
> 
> When I refresh the main page, I get the alert message - this
> means the file was loaded successfuly.
> 
> Then I tried this code: alert("");
> 
> This way it doesn't work, no alert message, so the file wasn't
> loaded.
> 
> Any ideas?

I guess, it's because the file is NOT being parsed.

If you go back to your first message (on this thread),
you had something like this:

  

[PHP] CPanel, PHP5 as CGI (was Re: [PHP] php 5 installation problem)

2006-03-17 Thread - Edwin -
Hi!

On Fri, 17 Mar 2006 08:24:51 -0400
Miles Thompson wrote:

> 
> Thanks Edwin. I guess it was too late and I couldn't formulate
> a proper search expression.
> 
> I'd like to hear Chris Shiflet's opinion on the security advantages
> of running PHP5 as CGI.

That'd be nice. But as somebody pointed out earlier, one of the
advantages is that PHP can run as another user instead of as
the apache user. (Of course, it's still considered rather slooow
though.)

Anyway, there are some more info here:

  http://www.php.net/manual/en/security.cgi-bin.php

> Why, after years of running PHP as an
> Apache module, the sudden conversion to CGI operation?

Remember, Miles, *your* $Web_Hosting_Company decides
(or better yet, *you* decide) whether PHP5 should run as
CGI or as an apache module. ;-)

> I've noticed occasional references of PHP5 "having issues"
> with CPanel.

I think it was also pointed earlier (somewhere) that it's the
other way around. :-)

> Is it simply easier for ISPs, given the intense competitive
> cost pressures they are under, to not wrestle with these
> issues, but to say "Here it is as a CGI if you want it."

I really have no idea (read: lazy to check now ;-) ) what
"CPanel" is. If it is a program written in PHP (4?), they could
just "fix" it to work with PHP5 -- CGI mode or not. 

> Regards - Miles Thompson

Regards,

- Edwin -

-- 
"The showing of partiality is not good, nor
 that an able-bodied man should transgress
 over a mere piece of bread." - Proverbs 28:21

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



Re: [PHP] Re: How does one obtain the resolution of an image inPHP?

2006-03-17 Thread - Edwin -
Hi!

On Fri, 17 Mar 2006 13:12:21 -
Ford, Mike wrote:

> On 17 March 2006 11:15, - Edwin - wrote:
> 
> > A 15-inch monitor at 800x600 will have around 53ppi x 40ppi
> > (800 pixels divided by 15 inches, etc.) and *the same* monitor
> > at 1024x768 will have around 68ppi x 51ppi.
> 
> Er, no.  The 15inches is a diagonal measure, so the screen is
> actually about 12"x9", giving 67ppi in both directions.

But of course! You're right (^_^)

I was thinking more of "if" or "for example" as in "for example
you have a 25x25-inch monitor..." But, yeah, a 25x25-inch
monitor is rather ridiculous, I guess.

> Cheers!
> 
> Mike

- Edwin -

-- 
"Better is a needy but wise child than an
 old but stupid king..." - Ecclesiastes 3:18

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



Re: [PHP] Re: How does one obtain the resolution of an image in PHP?

2006-03-17 Thread - Edwin -
Hi!

On Fri, 17 Mar 2006 09:46:16 +0100
Barry wrote:

> Simon M. Campden-Main wrote:
> > Good morning, folks.
> > 
> > Can any one direct me to a snippet or suggest an approach
> > to obtaining the resolution of an image [file] with PHP.
> > [ . . . ]
> 
> There is no way you can do it.
> To have on screen e.g. 40 ppi or 80 ppi when the image has a
> size of 400x400 pixel you would have to read out the image
> how big a pixel in it is. at 80 ppi you would have your
> normal image and on 40 ppi the pixels used per dot would be
> duplicated. you still have 400 pixel in width and you would
> not be able to "count" the pixels who got duplicated.
> 
> If you are lucky it's written in the file. Otherwise no
> chance.
> 
> The normal screen resolution is: with an average of 0.26 mm ~
> 3.8 pixel/mm ~ 97 pixel per inch.
> No matter what kind of "resolution" you would choose
> (800x600,1024x768 etc.)

Reading the surrounding sentences, I think I can see where
you're coming from. But, the above statement is a bit
confusing.

There is a reason why it's called "pixel per INCH". And it
definitely have something to do whether your monitor
is set to 800x600, 1024x768, etc.

A 15-inch monitor at 800x600 will have around 53ppi x 40ppi
(800 pixels divided by 15 inches, etc.) and *the same* monitor
at 1024x768 will have around 68ppi x 51ppi.

If your 15' monitor is normally setup at 1024x768, everything
(images, etc.) will look a bigger if the same image is viewed
using the same monitor at 800x600. This happens because
the pixels are now "bigger". (One image "pixel" is now compose
of many physical dots on the screen.) But, I guess, you already
knew that. (^_^)

> an image having for example 48ppi would have pixels that use
> 2x2 pixels (4 pixels) as one colored pixel and so on.
> 
> Now guess what you see when you have 194 ppi.
> Nothing, it's still 97 ppi because it's not possible for the
> screen to view anything else. Normally the screen would just
> duplicate the imagesize from 400x400 to 800x800.
> 
> Greets Barry
> 

HTH & HAND,

- Edwin -

-- 
"He that is slow to anger is abundant in discernment, but
 one that is impatient is exalting foolishness." - Proverbs 14:29

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



Re: [PHP] making php code from db work

2006-03-17 Thread - Edwin -
Hi!

On Fri, 17 Mar 2006 12:07:42 +0200
Schalk wrote:

> Greetings All,
> 
> I pull the following snippet of code directly from a MySQL
> database:
> [ . . . ]
>  title="Intermodal">Intermodal
> [ . . . ]
> 
> As you can see in line three, I use the following PHP code
> there: 
> 
> Unfortunately when this is loaded into the PHP page this bit
> of code is not parsed and the link still includes the code
> snippet. Is there a way I can make this work or would it be

Hmm.. I wanted to say check http://www.php.net/eval but
then again, someone very famous in this group once said:

 "If eval() is the answer, you're almost certainly
  asking the wrong question."

So, maybe, I shouldn't even recommend that. (^_-)

Try:

  http://www.google.com/search?q=parsing+php+code+db

> better to build this nav tree in a more robust fashion such
> as loading the  one by one in a for loop for example?

Maybe that one's better.

> Thanks in advance.

HTH,

- Edwin -

-- 
"A wise person will listen and take in more instruction."
  - Proverbs 1:5

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



Re: [PHP] making a tutorial

2006-03-16 Thread - Edwin -
Hi!

On Fri, 17 Mar 2006 01:51:41 -0500
John Taylor-Johnston wrote:

> I'm making a tutorial and don't really understand how to do
> this myself :)
> 
> Which of the following pets do have at home:
>  value="dog">dog 
>  value="cat">cat 
>  value="snake">snake 
>  value="other">snake 
>  value="none">none of these 
> 

While you're at it, why not use "" instead?
(Pls. notice the last forward slash.)

> How do I parse favourite[]? I might have 2 or 5, so I need to
> parse ^0] 
> - nMax. It is a checkbox.

Not exactly sure what you meant but check what's
submitted with:

  $_POST['favourite'] or $_GET['favourite']

> I might use favourite[] with mail() or store it in a mysql
> field.
> 
> If mysql, would I store it in a varchar(20) or an enum() and
> how?

It all depends on how your tables are setup but I don't know
about enum()...

> John

HTH,

- Edwin -

-- 
"Keep doing this in remembrance of me." - Luke 22:19

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



Re: [PHP] How does one obtain the resolution of an image in PHP?

2006-03-16 Thread - Edwin -
Hi!

On Thu, 16 Mar 2006 14:31:38 -0500
John Hinton <[EMAIL PROTECTED]> wrote:

> Simon M. Campden-Main wrote:
> >
> > Well, there's the meat of it, isn't it?  I wonder how Paint
> > Shop Pro comes up with PPI (Image - Image information). 
> > I have several thousand scanned images with resolution
> > ranging from 72 PPI up to 1200 PPI (As reported by Paint
> > Shop Pro) and want to discard, or more likely tag as
> > rejected, any that suffer a resolution of less than 150
> > PPI.  As you might imagine, I find the thought of
> > doing it manually with Paint Shop Pro repugnant.

Okay, if it was scanned at 72ppi then you can't really print
it out again even with a near-similar quality. However, having
an image with a 72ppi does NOT necessarily mean that you
have an image unsuitable for printing.

> PPI or pixels per inch is a printing term.

Last time I checked, "dpi" is the printing term. (^_^)

  dpi (dots per inch) -> printer
  ppi (pixels per inch) -> monitor/screen

> It has nothing to do with viewing on a monitor as a 
> monitor's pixel setting is your set resolution, as in
> 800x600, 1024x768, 1600x1200.. etc. This is a 
> constantly debated urban legend. A pixel on a monitor
> is a pixel...

True.

> Pixels per inch are used in the printing world and relates to
> how many pixels are used to provide one inch of printed
> space. Obviously, at least up to the limits of the printer
> being used, a high PPI setting produces a higher quality
> 'printed' image.

This really depends on how big the image is to be printed.
Besides, an image/photo taken using a digital camera (at
least mine) always defaults to 72ppi. BUT that does not
mean that it will come out badly printed at 300 dpi -- it
all depends on how big is the size (setting) of the picture
when I first took it.

> If you don't believe me, use your paint program, change the
> PPI of an image and notice how the image doesn't change size
> on the screen. Also, do this and switch the image size
> display back and forth between inches and pixels.. the pixel
> count doesn't change, only the inches change.. but again...
> that's the printing world and has nothing to do with display
> on a monitor or webbrowser.

True. This is basically because most monitors/screens are
actually at or near 72 ppi. "screen" !== "printer" (^_-)

> So, an image 10,000pixels by 10,000pixels will be huge on
> screen. If set to a resolution of 1000ppi, the image would be
> printed at 10" x 10", but you still can't view the whole
> image on a monitor without zooming out. If resolution we set
> to 10,000dpi, the image would print as 1" x 1", but you still
> wouldn't be able to view it on a monitor (unless you have an

I think you meant, "... but you still would be able ... "

> awesome multi-display setup that can reach 10,000 pixels wide
> and tall). That's the bottom line.
> 
> So, I keep seeing 'display size' when I'm thinking the term
> should be 'printed size'.
> 
> John Hinton

HTH & HAND,

- Edwin -

-- 
"A capable wife is a crown to her owner." - Proverbs 12:4

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



Re: [PHP] How does one obtain the resolution of an image in PHP?

2006-03-16 Thread - Edwin -
Hi!

On Thu, 16 Mar 2006 08:13:41 -0800
"Simon M.  Campden-Main" <[EMAIL PROTECTED]> wrote:

> [ . . . ]
> I want ppi! 
> [ . . . ]
> I'm running the current Cent OS
> [ . . . ]

See if you have ImageMagick installed. You could
probably use the "identify" command to find the
info you need. For more information:

  $ man identify

Of course, this solution is not *in* PHP but you can
invoke that program inside your PHP scripts (^_-)

HTH,

- Edwin -

-- 
"Happy are the mild-tempered ones,
 since they will inherit the earth." - Matthew 5:5

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



Re: [PHP] php 5 installation problem

2006-03-16 Thread - Edwin -
Hi!

On Thu, 16 Mar 2006 20:45:29 -0400
Miles Thompson <[EMAIL PROTECTED]> wrote:

> At 06:23 PM 3/16/2006, Anthony Ettinger wrote:
> 
> >[...]
> >Is there a drawback to running php5 as CGI?
> 
> Anthony,
> 
> I really don't know, because computers are much faster, so
> there may not be the time lags there were 10 years ago.
> 
> As I understand CGI, the web server sees that the page is of
> type .php, starts up PHP, PHP processes the page, the web
> server shuts down PHP and sends out the results. The overhead
> of starting and stopping PHP (or Perl, etc.) was the
> complaint.
> 
> When PHP is loaded as an Apache module there is not startup /
> shutdown overhead.
> 
> If I have this wrong, or if PHP5 as a CGI stays resident and
> there is no penalty, will someone please correct me.

No, nothing wrong there, I think.

But there are other differences. (Like some functions not
working, etc.) Pros and cons, one might say. Anyway, here
are some results of a quick google search:

  http://www.google.com/search?q=php+CGI+module+difference

Hmm.. I just couldn't find it but there should be a page
about it on www.php.net ... (^_-)

> Regards - Miles 

HTH,

- Edwin -

-- 
"Give to a wise person and he will become still wiser.
 Impart knowledge to someone righteous
 and he will increase in learning." - Proverbs 9:9

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



Re: [PHP] Re: Using GPG in Safe Mode

2006-01-19 Thread Edwin Barrios
Hi, emil

Using "safe_mode_exec_dir", it's a solution if  you has access to your
php.ini or http.conf, because it's a PHP_INI_SYSTEM var. For these reason
you can't set this var with ini_set() function on a php script.

If your ISP has a very restricted setting, i think that the solutions that
"comex" comments it's a good one, it'sn't my prefered solution by security
issues.

P.S.D
i never have proved if setting PHP_INI_SYSTEM vars it's posible on a
.htacces file.



On 1/18/06, M <[EMAIL PROTECTED]> wrote:
>
> [EMAIL PROTECTED] wrote:
> > Hi Edwin!
> >
> > Thanks for the tips but my ISP hasn't given me root. I'm very sad to
> hear gpg from cli won't work under safe mode. Are there any 100% php
> implementations of GPG I could use? (because I guess that is the only way
> that is left?)
> >
> > /Emil
> >
> >
> >>If you are using gnupg comand line, there is not way on PHP-safe mode.
> >>The only way that i know to wrap around this problem it's install pecl
> extension package
> >
>
> there is a way. if gpg binary is in safe_mode_exec_dir
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


Re: [PHP] Using GPG in Safe Mode

2006-01-17 Thread Edwin Barrios
Hi emil !

If you are using gnupg comand line, there is not way on PHP-safe mode.

The only way that i know to wrap around this problem it's install
pecl extension package calls gnupg (http://pecl.php.net/package/gnupg). This
extension use libgpgme that bind all gnupg comand line options, then it
don't have problems with safe mode.


i don't know if this tips it's useful in your case, but it's the  only
solutions that i know.



On 1/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Hello,
>
> My ISP have php set for safe mode. And now I'm trying to run gpg from php.
>
> Basically I'm trying to run this from exec():
> echo "testar testar" | /usr/local/bin/gpg --homedir /home/myuser/ .gnupg
> -a --always-trust --batch --no-secmem-warning -e -u "Test Test 
> " -r "Test Test <
> test@test.com>"
>
> When I run it from cli myself it works fine, but it fails when I run it
> from php. Are there anyway I can get this to work?
>
> Sorry if this is OT or an obvious question.
>
> /Regards Emil
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


Re: [PHP] how to create a php5 extensions on C/C++, reflecting php Class Api's ?

2005-12-30 Thread Edwin Barrios
Hello Gustavo. !

Thanks for  your suggestion, that  book it's  a interesting material to
learn more advanced features of PHP5 and to begin on the C extentions world.

The chapter 15 only take a look to extends PHP5 funtions, but there is none
section on how to create a PHP5 Class on the C extentions.

Do you know how to do that ?






On 12/27/05, Gustavo Narea <[EMAIL PROTECTED]> wrote:
>
> Hello, Edwin.
>
>
>
> I think that in chapter #15 of "PHP 5 Power Programming" you're going to
> find what you are looking for.
>
> Saludos!
>
> --
> Gustavo Narea.
> PHP Documentation - Spanish Translation Team.
> Valencia, Venezuela.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


[PHP] how to create a php5 extensions on C/C++, reflecting php Class Api's ?

2005-12-27 Thread Edwin Barrios
Hi,I'm a PHP web programing, but i wanna learn how to develop php5
extensions on C/C++. I found php5 a good language to apply Objects
programing, and it has very usefull examples of OO extensions as SimpleXML,
DOM, Sqlite; for this reason i wanna develope my extension following those
styles of API's .
I've read some docs about creating a php extension that appears as new
functions on PHP, but i can't find info to develop extensions that appear as
classes on PHP .

Thanks for your help. I'm really interested on this topic, especially to
collaborate in PHP extension projects as wxPHP.


Re: [PHP] Where can i find docs to create a php5 extensions with OOP as SimpleXML?

2005-11-27 Thread Edwin Barrios
Hi, David

I suggest you take a lookn at
>
> http://www.zend.com/php5/articles/php5-xmlphp.php
>
> david
>
>
Thanks for your suggestion, but i wanna info about programming extension in
C/C++.


[PHP] Where can i find docs to create a php5 extensions with OOP as SimpleXML?

2005-11-26 Thread Edwin Barrios
Hi,

I'm a PHP web programing, but i wanna learn how to develop php5 extensions.
I found php5 a good language to apply Objects programing, and it has very
usefull examples of OO extensions as SimpleXML, DOM, Sqlite; for this reason
i wanna develope my extension following those styles of API's .

I've read some docs about creating a php extension that appears as new
functions on PHP, but i can't find info to develop extensions that appear as
classes on PHP .

Thanks for your help. I'm really interested on this topic, especially to
collaborate in PHP extension projects as wxPHP.


Re: [PHP] Inherit Methods

2005-08-08 Thread Edwin Barrios
Hi !

you have to defined protected $var.

 This is a example  where php5 OO model has a little ambiguities.
Thing a few in your  problem !, on de child class scope $var it's
private then when yo execute printVar(), you aren't executed on parent
scope you are calling a copie on child scope, then you don't have
access to $var. Only when you use parent scope throw
parent::printVar() , you realy calling the parent class instance into
your child then print result.

Then when you want to have a variable for being used on a public
inherit method you have to defined protected

On 8/8/05, Norbert Wenzel <[EMAIL PROTECTED]> wrote:
> Is it possible to run inherited methods in the scope of the child class?
>   In my case I have an abstract class called 'Company' and some child
> classes. There is a non abstract function in 'Company' which prints
> '$this->phoneList'. That function should be the same to all child
> classes, without rewritting it in every class.
> 
> I call the printing method via the child class like
> $childObject->printPhoneList();
> The call seems to be handed over to the parent class 'Company' which is
> fine. But the $this points to the phoneList of the abstract parent
> class. So the phoneList in the abstract class seems to be unset, since i
> have set the phone list in the child class.
> 
> Here's a short example, showing what I mean:
> 
>  
> abstract class AbstractClass {
> 
> private $var;
> 
> public function printVar() {
> echo('var: ' . $this->var . '');
> }
> 
> }
> 
> class ConcreteClass extends AbstractClass {
> 
> public function __construct($var) {
> $this->var = $var;
> }
> 
> public function printVarChild() {
> echo('var (child): ' . $this->var . '');
> }
> 
> }
> 
> $cl = new ConcreteClass(15);
> $cl->printVar();
> $cl->printVarChild();
> ?>
> 
> Output is:
> var:
> var (child): 15
> 
> 
> Has anyone an idea how to print the $var of the child, without copying
> the method in every child class?
> 
> thanks in advance,
> Norbert
> 
> --
> 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] Re: Performace and segfault errors with Php5 + Apache 1.3.x + linux-2.6.x

2005-08-08 Thread Edwin Barrios
Yes i'm using a lot of nested loops with __call(), because of  dom
did'nt support  parse not well formated html, i decided to develop my
html templates class iTemp, and i used a combinatios of foreach (
iterator implementention  ) and __call +__get to create a inherity
tree like dom.

But i don't undestand, why only changing the kernel from  2.6.x =>
2.4.x all my problems were solved magically ?

On 8/4/05, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote:
> * Edwin Barrios <[EMAIL PROTECTED]>:
> > i'am developing  a web framework SifEngine (Secure Web Inteface
> > framework) that implement MVC applaying the security ideas from
> > http://phpsec.org. I'am using DomXML, Sqlite, Mcrypt and PostgreSql.
> >
> > After  of post my development on the internet ( i have been thinking
> > to post on PEAR ), i made simple tests of aplications with my
> > framework. During the implementation, i used Slackware 10.1 with
> > kernel 2.4.29 + php5.0.4 + Apache 1.3.2, with no problems. I didn't
> > detect  performace problems or segfaults by apache.  Then i decided to
> > do the same test but with kernel 2.6.10, wating that no problems
> > occur. However my expectation, on this new configuration all the
> > aplications develped with my framework, had performance issues or in
> > the worst situation produce apache forks  to be restarted, or a lot of
> > apache forks.
> >
> > i don't undestand why this occur, i try to use valigrand to verify
> > memorie lacks without results.
> 
> Are you using __call() or any of the other overloading methods? I had a
> situation several months ago where __call() was going into an infinite
> loop and causing segfaults. Once I tracked that down and fixed it,
> everything worked fine.
> 
> --
> Matthew Weier O'Phinney
> Zend Certified Engineer
> http://weierophinney.net/matthew/
> 
> --
> 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] Performace and segfault errors with Php5 + Apache 1.3.x + linux-2.6.x

2005-08-01 Thread Edwin Barrios
I compile the vanilla kernel from kernel.org, linux-2.6.10 , and i'am
using apache 1.3.3.  My php  congifigurations are:

'./configure' '--with-apxs' '--with-pgsql' '--with-mysql'
'--with-opennssl' '--with-zlib' '--with-bz2' '--enable-calendar'
'--with-curl' '--with-curlwarppers' '--enable-ftp' '--with-gettext'
'--with-mcrypt' '--enable-pcntl' '--enable-soap' '--enable-sockets'
'--enable-sqlite-utf8' '--enable-sysvmsg' '--enable-sysvsem'
'--enable-sysvshm' '--enable-shmop' '--with-xsl'
'--enable-maintainer-zts' '--with-tsrm-pthreads'

Then, i don't know what it's happing.

On 8/1/05, Greg Donald <[EMAIL PROTECTED]> wrote:
> On 8/1/05, Edwin Barrios <[EMAIL PROTECTED]> wrote:
> > i'am developing  a web framework SifEngine (Secure Web Inteface
> > framework) that implement MVC applaying the security ideas from
> > http://phpsec.org. I'am using DomXML, Sqlite, Mcrypt and PostgreSql.
> >
> > After  of post my development on the internet ( i have been thinking
> > to post on PEAR ), i made simple tests of aplications with my
> > framework. During the implementation, i used Slackware 10.1 with
> > kernel 2.4.29 + php5.0.4 + Apache 1.3.2, with no problems. I didn't
> > detect  performace problems or segfaults by apache.  Then i decided to
> > do the same test but with kernel 2.6.10, wating that no problems
> > occur. However my expectation, on this new configuration all the
> > aplications develped with my framework, had performance issues or in
> > the worst situation produce apache forks  to be restarted, or a lot of
> > apache forks.
> >
> > i don't undestand why this occur, i try to use valigrand to verify
> > memorie lacks without results.
> >
> > Someone can help me, with this problem !
> >
> > On this moment i'm using SIfEngine, to implement my proyects only on
> > kernel 2.4.x !
> 
> Any exotic security patches been applied to the kernel that is having issues?
> 
> I have PHP5, Apache2 on a 2.6.8 kernel with no issues.  It may be that
> you have a non-thread-safe library added to your Apache/PHP setup.
> Apache 1.3.x is still the Apache of choice last I heard.
> 
> 
> --
> Greg Donald
> Zend Certified Engineer
> MySQL Core Certification
> http://destiney.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] Performace and segfault errors with Php5 + Apache 1.3.x + linux-2.6.x

2005-08-01 Thread Edwin Barrios
i'am developing  a web framework SifEngine (Secure Web Inteface
framework) that implement MVC applaying the security ideas from
http://phpsec.org. I'am using DomXML, Sqlite, Mcrypt and PostgreSql.

After  of post my development on the internet ( i have been thinking
to post on PEAR ), i made simple tests of aplications with my
framework. During the implementation, i used Slackware 10.1 with
kernel 2.4.29 + php5.0.4 + Apache 1.3.2, with no problems. I didn't
detect  performace problems or segfaults by apache.  Then i decided to
do the same test but with kernel 2.6.10, wating that no problems
occur. However my expectation, on this new configuration all the
aplications develped with my framework, had performance issues or in
the worst situation produce apache forks  to be restarted, or a lot of
apache forks.

i don't undestand why this occur, i try to use valigrand to verify
memorie lacks without results.

Someone can help me, with this problem !

On this moment i'm using SIfEngine, to implement my proyects only on
kernel 2.4.x !

Thanks !

Atte:
Edwin Hernan Barrios Nuñez
iBand Networks Ltda.
www.iband.net

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



Re: [PHP] returning info. from a form selection

2005-08-01 Thread Edwin Barrios
 Hi . !
 
 what you want it's  recive values from a "select". !!!
 
 First a select input send ( when the form is submitted ), the value of
 the selected item, then
 the php script that  it's the form action recive, a on post  or get a
 variable with the name of  the select input with this value.
 
 Then  you have:
 
 This the html source
 
 
 
  Purchase
  Construct Home
  
 
 
 
 
 On the php source:
 
 
 
 
 That it's all.
> 
> 
> On 8/1/05, Bruce Gilbert <[EMAIL PROTECTED]> wrote:
> > can anyone give me an idea on how to return info. from a forl pulldown menu
> >
> > eg:
> >
> >  > name="loan_process">
> >>   selected="selected">Purchase
> >>   value="">Construct Home
> >   
> > 
> >
> > and return that to an email address.
> >
> >
> > thanks
> >
> >
> >
> > --
> > ::Bruce::
> >
> > --
> > 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] Performace and segfault errors with Php5 + Apache 1.3.x + linux-2.6.x

2005-07-31 Thread Edwin Barrios
i'am developing  a web framework SifEngine (Secure Web Inteface
framework) that implement MVC applaying the security ideas from
http://phpsec.org. I'am using DomXML, Sqlite, Mcrypt and PostgreSql.

After  of post my development on the internet ( i have been thinking
to post on PEAR ), i made simple tests of aplications with my
framework. During the implementation, i used Slackware 10.1 with
kernel 2.4.29 + php5.0.4 + Apache 1.3.2, with no problems. I didn't
detect  performace problems or segfaults by apache.  Then i decided to
do the same test but with kernel 2.6.10, wating that no problems
occur. However my expectation, on this new configuration all the
aplications develped with my framework, had performance issues or in
the worst situation produce apache forks  to be restarted, or a lot of
apache forks.

i don't undestand why this occur, i try to use valigrand to verify
memorie lacks without results.

Someone can help me, with this problem !

On this moment i'm using SIfEngine, to implement my proyects only on
kernel 2.4.x !

Thanks !

Atte:
Edwin Hernan Barrios Nuñez
iBand Networks Ltda.
www.iband.net

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



Re: [PHP] Command Line

2004-12-12 Thread - Edwin -
Hi,

On Sun, 12 Dec 2004 09:15:46 -0600
"Travis Conway" <[EMAIL PROTECTED]> wrote:

> How do you reference command line arguments in php?
> 
> i.e., chkmd5.php file.md5
> 
> I am wanting to reference file.md5. Since the output of md5sum is
> not in the RFC I am having to manually parse each md5 and detect
> whether it is in Win32, Linux, or BSD format.

I'm not sure what you meant by that (since an md5 checksum is an md5
checksum) but...

> And since php has good built in md5() support it helps out.

I think you're looking for "argv":

http://www.php.net/manual/en/reserved.variables.php#reserved.variables.server

PS
Btw, it's "php-geNeral" and not "php-geMeral" ;)

-- 
- E - on SUSE 9.1 | blackbox 0.65 | copperwalls was here ;)
  "Your eyes saw even the embryo of me, and in your book   
all its parts were down in writing." - Psalm 139:16 

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



Re: [PHP] Re: Problems with MySql

2004-11-05 Thread - Edwin -
Hi,

On Fri, 05 Nov 2004 12:55:17 -0200
Oliver <[EMAIL PROTECTED]> wrote:

> Today I installed EasyPHP without any problems, but when
> I updated the version of php, Mysql stoped.*

Okay. So, how did you update it?

Assuming you're on linux and using RPMs,

[...]
> / To connect to a MySQL server, PHP needs a set of MySQL
> functions called "MySQL extension". This extension may be
> part of the PHP distribution (compiled-in), otherwise it
> needs to be loaded dynamically.  Its name is probably
> //mysql.so or //php_mysql.dll. phpMyAdmin tried to load
> the extension but failed.

Here's the hint on how to solve it:
> Usually, the problem is solved by installing a software
> package called "PHP-MySQL" or something similar."
> /

HTH,

-- 
- E - copperwalls was here ;)
"Look! I am making all things new."
 - Revelation 21:5

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



Re: [PHP] This is weird..whts the prob???

2004-11-05 Thread - Edwin -
Hi,

On Fri, 5 Nov 2004 22:55:20 +1030
"Aalee" <[EMAIL PROTECTED]> wrote:

> Hi guys,
> Working on PHP ver 4.3.8 with register_globals turned OFF
> and Apache 1.3.31. MySQL ver 4.0.20a on winXP pro SP1. This
> script does not seems to work with the method of POST. When
> I change it to GET method the data is entered into the
> database, but with POST it does not. I have another script
> with the POST method, but that script works with POST. What
> is wrong with this script. Here goes the script. What am I
> doing wrong.
> 
>  if (isset($_GET['addjoke'])){
> ?>
[...]

Try changing that $_GET to $_POST ...

-- 
- E - copperwalls was here ;)

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



Re: [PHP] Command Line Script

2004-10-30 Thread - Edwin -
Hi,

On Sat, 30 Oct 2004 09:42:13 -0400
"Steve Douville" <[EMAIL PROTECTED]> wrote:

> >
> > If you want to stick with PHP, you're better off using an
> > ssh key, so that you're not prompted for the password.
> >
> 
> Ahh, okay thanks. If anyone can point me to some useful
> docs, I'd appreciate it. I've been looking on google but
> not really sure what's right and what's not.

Try this:
  http://www.google.com/search?q=ssh+no+password

I think the first one is the one you're looking for :)

Anyway, just try the other links on the page as well...

HTH,

-- 
- E - copperwalls was here ;)
"There is going to be a resurrection." - Acts 24:15

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



Re: [PHP] Newbie needs help with MySQL and multiple databases

2004-10-04 Thread - Edwin -
Hi,
(B
(BOn Monday 04 October 2004 12:09, Matthew wrote:
(B> Hi, im fairly new to php and mysql and need a little help. im
(B> running a forum community and would like to have it run on
(B> multiple databases because of performance issues others have
(B> encountered using the same software on on database. My
(B> question is is it possible to have the software connect to 2
(B> different databases depending on which is needed?
(B
(BYes.
(B
(B> and if so 
(B> will users need to login again when accessing the second
(B> database (their user info will only be on the second
(B> database.)
(B
(BNo. As have been mentioned, this should be transparent. In other 
(Bwords, (in a sense) your *scripts* logs in to the database and 
(Bnot you nor your users :)
(B
(B> Thank You 
(B
(BHTH,
(B
(B-- 
(B- E - copperwalls was here ;)
(B
(B-- 
(BPHP General Mailing List (http://www.php.net/)
(BTo unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] simple math computation..

2004-10-03 Thread - Edwin -
On Monday 04 October 2004 15:26, Louie Miranda wrote:
> the percent of 20% is = .20 right?

'don't know what's "the pecent of 20% is" ;) but in decimal
form, yes, it's right. Or, just ".2" or "0.2".

> how can i compute the correct value for this?
>
> my $totalCost is $4,000 and when i compute it to .20 using
> this method..
>
> $shippingestimate = $totalCost * .20;
>
> i get the value for the shippingestimate = $0.8 which is
> wrong.. it should $800 what seems to be wrong?

Formatting problem, most likely. Try this:



* I changed the "E" on $shippingEstimate on purpose :)

-- 
- E - copperwalls was here ;)

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



Re: [PHP] Creating Dropdown Menus From Tables

2004-09-20 Thread - Edwin -
On Thu, 16 Sep 2004 13:02:31 +0100
"Harlequin" <[EMAIL PROTECTED]> wrote:

> Hi all.
> 
> Hoping this might be relatively easy...
> 
> I'm wondering if I can create a dropdown menu
> (ABCDE) by using a select statement and
> then populating this using PHP...?

Yes.

Hint: Do a "foreach" on the result (of the query) then 
inside the loop, just do an 

  echo "$value"; 

or something like that.

-- 
- E -
copperwalls was here ;)

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



Re: [PHP] List Etiquette

2004-09-20 Thread - Edwin -
Hi Jason,

On Sun, 19 Sep 2004 23:42:09 -0700
"Jason Davidson" <[EMAIL PROTECTED]> wrote:

> are we still on top posting.. shessh. i only top post cuase
> im lazy...

Maybe we should talk about "one-liners" next time...

Anyway, I'm sure many people will appreciate it if you trim
your posts.

Thanks!

-- 
- E -
copperwalls was here ;)

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



Re: [PHP] PHP5 Book Recommendation?

2004-09-20 Thread - Edwin -
FWIW...

On Sat, 18 Sep 2004 14:46:37 -0700 (PDT)
Chris Shiflett <[EMAIL PROTECTED]> wrote:

> --- Justin French <[EMAIL PROTECTED]> wrote:
> > Can someone recommend a decent PHP5 book?
> 
> I think Upgrading to PHP 5 is a particularly good book:
> 
> http://www.oreilly.com/catalog/upgradephp5/

+1 on this--reading halfway through it now.

-- 
- E -
copperwalls was here ;)

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



Re: [PHP] List Etiquette

2004-09-20 Thread - Edwin -
Hi,

On Mon, 20 Sep 2004 04:01:47 +0300
"Octavian Rasnita" <[EMAIL PROTECTED]> wrote:
> My email client (Outlook Express) puts a lot of information
> at the top of the message automaticly, like:
> 
> The signature,
> --- original message ---
> The From line
> - The to line
> - The date line
> - The subject line.

There should be a way to customize that, no?

[...]

-- 
- E -
copperwalls was here ;)

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



Re: [PHP] List Etiquette

2004-09-20 Thread - Edwin -
On Sun, 19 Sep 2004 06:11:17 +0800
Jason Wong <[EMAIL PROTECTED]> wrote:

> On Sunday 19 September 2004 05:37, Andre Dubuc wrote:

[...]

> > Seems to me much easier to scan the Subject, see how it's
> > developing by reading the reply on the top, rather than
> > have to wade through even snipped old material.
> 
> And if you jumped into the middle of the thread, how would
> you know what was going on without scrolling down to find
> out?

Just want to add/emphasize one thing regarding this point:
When I try to find out something, I usually spend time 
googling and reading the archives, it's really quite 
annoying to read/scroll from bottom to top--this is not how
people learned to read. (At least, I hope not :)

Also, it's good that we're not writing programs from bottom 
to top as well... imagine that! (That'd worst than "spaghetti
code" ;)



-- 
- E -
copperwalls was here ;)

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



Re: [PHP] List Etiquette

2004-09-20 Thread - Edwin -
Hi,

(I know a lot has already been said but...)

On Sat, 18 Sep 2004 17:37:59 -0400
Andre Dubuc <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> After googling 'Web Etiquette, Top Posting', I still am
> puzzled why some people on this list insist that top
> posting is bad form, rather than personal preference. The
> arguments seem to be balanced on either side.

Let me just point out that it's NOT only on *this* list but 
even in others (that I'm subscribed to) most prefer that 
people "bottom post" AND trim as much as possible.

[...]

-- 
- E -
copperwalls was here ;)

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



Re: [PHP] auto converting a $string to ALL Upper Case.

2004-09-15 Thread - Edwin -
On Thursday 16 September 2004 15:36, Louie Miranda wrote:
> Is there a PHP syntax that can convert a $string result to
> all UPPER CASE?

  php.net -> manual -> strings -> strtoupper ?

-- 

- E -

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



Re: [PHP] str_split()

2004-08-12 Thread - Edwin -
On Friday 13 August 2004 03:27, Aaron Todd wrote:
(B> Do you know of a simular function that will split a string in the
(B> same way. I have phone numbers stored in a database in the format
(B> ##.  I need to display the number on the page in the format
(B> ###-###-.  str_split() worked perfectly for this.  Is there
(B> another function?
(B
(BPls. check the "User Contributed Notes" section of the manual.
(B
(BHINT: You can either "create" one yourself or use the PEAR package.
(B
(BPS ... and pls. trim your post(s) ...
(B
(B--
(B
(B- E -
(B
(B-- 
(BPHP General Mailing List (http://www.php.net/)
(BTo unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is that a PECL in your pants?

2004-07-01 Thread - Edwin -
On Thursday 01 July 2004 15:49, John W. Holmes wrote:
> - Edwin - wrote:
> > I guess it's more on the underlying library. (i.e.
> > Sablotron vs libxslt)
>
> Yeah, I guess that's what I meant; the "XSLT extension"
> versus the "XSL extension" which basically comes down to
> the libraries powering them.
>
> Anyone have any recommendations which one would be better
> to use in a PHP5 project?

When the release for RC1 was announced, this was also 
mentioned:

  "XML support has been completely redone in PHP 5, all 
  extensions are now focused around the excellent libxml2 
  library (http://www.xmlsoft.org/)."

I guess that includes libxslt so most probably you'd be 
better off sticking with them ;)

- E -

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



Re: [PHP] imagerotate - lossless?

2004-06-30 Thread - Edwin -
On Thursday 01 July 2004 12:20, CSN wrote:
> Anybody know if imagerotate does lossless rotation on
> jpeg's?

I don't know :) but maybe you can try this: Rotate an image 
360°, save it under a different name, then examine it. 
(filesize, quality, etc.)

- E -

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



Re: [PHP] Is that a PECL in your pants?

2004-06-30 Thread - Edwin -
On Thursday 01 July 2004 13:56, Curt Zirzow wrote:
> * Thus wrote John W. Holmes:
> > Curt Zirzow wrote:
> >
> > Thanks for the explanation Curt. I'll do my best to
> > educate! :)
> >
> > >As far as XSLT and XSL, the one is prefered over the
> > > other.
> >
> > What do you mean by this? XSLT is preferred over XSL?
> > Any reasons why you can point me to? Thanks again.
>
> I probably should have edited that part out, I only know
> that through rumors. I'm unfamiliar with all the XSL(T)
> stuff.

If my understanding is correct, it should NOT be XSLT vs XSL 
--it shouldn't be :)

I guess it's more on the underlying library. (i.e. Sablotron 
vs libxslt)

- E -

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



Re: [PHP] Protecting database passwords

2004-06-30 Thread - Edwin -
On Thursday 01 July 2004 08:25, Chris W. Parker wrote:
> [EMAIL PROTECTED] 
>
> on Wednesday, June 30, 2004 4:15 PM said:
> > How can I use a password hash to log on to a database
> > server (or for any other login for that matter)?
>
> i apologize. i completely misunderstood your original
> post.
>
> in which case, i can think of only two things (not to say
> there aren't more): 1. restricting access to the file via
> permissions, and 2. putting the file outside of the web
> root so that it can not be requested via the web.

If you're on a shared environment and if all the users are 
running under the same UID then permissions wouldn't 
really matter...

- E -

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



Re: [PHP] Re: Converting strings to match multiple charsets

2004-06-30 Thread - Edwin -
On Thursday 01 July 2004 06:42, Red Wingate wrote:
> yep, as i said it was displayed correctly everywhere
> expect in the forms oh i might mention - Mozilla worked
> well but IE destroyed the data (only in textareas)

Just an idea... How about doing something like this:

Retrieve data from the db(utf?) then convert it to the 
desired language encoding for the (HTML) page.

  ex. for EUC-JP

db (utf) -> html (EUC-JP)

?

- E -
 

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



Re: [PHP] Protecting database passwords

2004-06-30 Thread - Edwin -
On Thursday 01 July 2004 02:17, Chris W. Parker wrote:
> Red Wingate 
>
> on Wednesday, June 30, 2004 9:33 AM said:
> > Hashing ... but i guess he wants to protected the
> > password needed to access the DB not a PW stored in the
> > DB.
>
> you probably understand this already but for those who
> don't i would like to say:
>
> right, but the point with hashing is that even if the
> hashes are retrieved/stolen it will take time (possibly
> too long) for the password itself to be
> recovered/discovered.

And why would they need to recover/discover them?

If other users of the server can "see" your script(s) that 
holds the information (username/password) for your db, 
then they don't even have to know the real password--
they can just used the hashed ones to access your db.

Or, maybe you want to explain more? :)

- E -

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



Re: [PHP] What do I need in order to do the following with php.

2004-06-30 Thread - Edwin -
On Thursday 01 July 2004 01:38, 
[EMAIL PROTECTED] wrote:
> I want to make sure I'm correct in doing something. What
> do I need in order to perform the following:
>
> -
> Send an XML message to "something" at a website, have it
> load a database with the message, and return an
> acknowledgement.
> ---

SOAP?

Google -> XML SOAP

- E -

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



Re: [PHP] Protecting database passwords

2004-06-30 Thread - Edwin -
Hi,

On Wednesday 30 June 2004 09:58, Bob Hockney wrote:
> Hi there,
>
> I wrote a php script that accesses a database, and I am
> wondering about securing the password to the database.  I
> could prompt the user for the password every session, but
> I don't necessarily want the user to have the password. 

You mean the password for the database? Why would the user 
need that? If the users need a password to access the site, 
then create one for the *site*. Only you and your scripts 
need to know what the password for the database is...

> Unless I'm missing something, any on-disk place I store
> the password needs to be readable by PHP, and therefore
> isn't very secure.  I have restricted the rights of the
> database user, but I'm wondering how others have dealt
> with this, or maybe I'm completely missing the point.

Or, am I missing the point? :)

- E -

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



Re: [PHP] Re: still having login problems sigh

2004-03-25 Thread - Edwin -
On Thu, 25 Mar 2004 03:21:54 -0500
"Andy B" <[EMAIL PROTECTED]> wrote:

> >What happens if you give a the correct ones?
> 
> doesnt make any difference... 

Then there's a problem with your code. Check $username first
before you use it. Also, if you're using $_POST then you should
use $_POST['username'] instead of $username.

[...]

> do i have to pay any attention to something of this sort:

Yes.

> [notice] undefined variable in ../login.php:
> $_SESSION[username] is undefined
> 
> but i defined it already and the right way? im lost now

Try $_SESSION['username']

--

- E -

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



Re: Fw: [PHP] Re: still having login problems sigh

2004-03-25 Thread - Edwin -
On Thu, 25 Mar 2004 02:58:39 -0500
"Andy B" <[EMAIL PROTECTED]> wrote:

> >What do mean by "keeps getting stuck"? Where? What? Any error
> >messages?
> 
> 0 errors and 0 messages of any kind and what i meant by getting
> stuck was every time the login.html is filled out and submitted
> i either get the login.html page again (expected if user gave
> wrong pwd and stuff)

What happens if you give a the correct ones?

> or browser will get "stuck" on a blank
> page and show nothing at all

There's an error. Set error_reporting to E_ALL and turn on
display_errors.

> >Where's $username coming from? $_GET? $_POST? Check the
> >manual/archives for more info...
> 
> $_POST... but the way the web space is set up the admins
> somehow disabled$_POST?? is that even possible??

Yes, I guess, but that would be strange.

> $_POST[username] <--- for some strange reason php on server
> complains that it is an undefined variable/array??? anyways...

Try $_POST['username']

> >Use an absolute URL for header("Location ...
> didnt think i needed to but...ok i will
> 
> >And, your "echo" shouldn't come before your "header". Again,
> >you can check the manual/archives for more info...
> hmmm didnt think that part would work but saw it in a tutorial
> about this stuff (matter of fact this is almost an exact copy
> of that tutorial) just dont remember what one it was...

  http://www.php.net/manual/en/function.header.php

Read it carefully :)

--

- E -

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



[PHP] Re: PHP and GD

2004-03-24 Thread - Edwin -
Hi,

On Thu, 25 Mar 2004 02:03:26 +0100
[EMAIL PROTECTED] (Patrik Fomin) wrote:

> Hi,
> 
> Is there anyway to split a picture with PHP (GD) ?
> 
> Im uploading lots of pictures and i want to split them in 6
> pieces to make em load faster, is there anyway to do this in
> PHP ?

You mean, split them using PHP? *Before* uploading? Then, no.
(Unless of course you have PHP installed on the client then there
must be a way...)

--

- E -

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



[PHP] Re: still having login problems sigh

2004-03-24 Thread - Edwin -
Hi,

On Wed, 24 Mar 2004 23:59:30 -0500
[EMAIL PROTECTED] (Andy B) wrote:

> hi...
> 
> still having login problems..
> i tried just about everything i can think of to get this to
> work but for some strange reason it keeps getting stuck...

What do mean by "keeps getting stuck"? Where? What? Any error
messages?

> [code]
>  session_start();
> include("libs/conf.db");
> 
> mysql_connect($host, $mysqluser, $mysqlpwd);
> $result=mysql_query("select * from rnjresort.users where
> username='$username' and pwd=md5('$password')");

Where's $username coming from? $_GET? $_POST? Check the
manual/archives for more info...

> if(mysql_num_rows($result)==0) {
> echo "Login failed";
> header("location: login.html"); }
> else {
> $_SESSION[username]=$username;
> header("location: deletepost.php"); }
> ?>
> [/code]

Use an absolute URL for header("Location ...

And, your "echo" shouldn't come before your "header". Again, you
can check the manual/archives for more info...

And, maybe there's something else, I didn't really check
everything :)

--

- E -

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



Re: [PHP] ? Sub Directories

2004-03-24 Thread - Edwin -
Hi,

On Thu, 25 Mar 2004 09:07:06 +0200
"Labunski" <[EMAIL PROTECTED]> wrote:

> This script reads the content of the directory and turns it
> into the array. The problem is, that this script reads the
> names of the subdirectories in this directory too!

...[sample code and result]...

> How to solve this problem?

  http://www.php.net/manual/en/function.is-dir.php

--

- E -

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



Re: [PHP] diskusage

2004-02-18 Thread - Edwin -
On Wed, 18 Feb 2004 21:21:45 -0500
"Chakravarthy Cuddapah" <[EMAIL PROTECTED]> wrote:

> From the terminal I can do this by:
> ssh [EMAIL PROTECTED] du -hs /home/user | awk '{print $1}'

Hmm... that's a pretty scary setup. You can ssh as root? Without
a password? I wouldn't want that kind of setup even if I'm using
"authorized_keys" and stuff. Anyway...

> The same does not work in php. I used system and also
> shell_exec. Works only on localhost. But not remote system.

Most likely it's because when you're running your (php) script
you're NOT running as root. Try running the script as root (from
the command line) and see what happens.

--

- E -

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



Re: [PHP] fonts

2004-02-18 Thread - Edwin -
On Wed, 18 Feb 2004 20:36:30 -0500
"Jake McHenry" <[EMAIL PROTECTED]> wrote:

> it's for my intranet, figured it might be easier this way
> instead of touching every machine. All my machines are either
> on 98 or XP, which both will use the same font. I've manually
> installed it on 4 machines so far, 2 xp and 2 98, but have
> around 950 left.
> 
> can I do it?

Why not? A minute for each and you can finish it in less than a
day if my calculations were correct ;)

Or, try stylesheets: (And since you mentioned 98 or XP, this
might just work for you.)





For conversion of your fonts to .eot format, check:

  http://www.microsoft.com/typography/web/embedding/weft3/

And, pls. trim your posts!

--

- E -

"I may have invented it [Ctrl-Alt-Delete],
  but Bill made it famous." - David Bradley

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



Re: [PHP] fonts

2004-02-18 Thread - Edwin -
On Wed, 18 Feb 2004 22:09:13 -0500
"Jake McHenry" <[EMAIL PROTECTED]> wrote:

[...]

> Image files for the entire website? I want this to be the
> standard font for the text of the site.

Then why not just use standard fonts that exist on the clients?

--

- E -

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



Re: [PHP] Parse Error

2004-02-18 Thread - Edwin -
On Wed, 18 Feb 2004 21:35:15 -0800
"Bob Eldred" <[EMAIL PROTECTED]> wrote:

> > The error is:
> > Parse error: parse error, unexpected T_VARIABLE in
> > /www/htdocs/rolfvand/thinkquest/browsercheck.php on line 46
> > [/snip]
> >
> > All of your values are not enclosed with single quotes - the
> > first
> four
> > are, last four aren't
> 
> That's almost definitely not the issue.  Worst case scenario
> with the non-existent quotes is that MySQL will put bad
> information into the database if it's expecting numbers there
> and gets a string, or the query will fail if it's a string with
> whitespace.  It ought to parse just fine.

??

Your query wouldn't even be executed if you have a "parse error"
on your script. (So, it's not even possible for MySQL to "put bad
information into the database"...) Single quotes, double quotes,
semi-colon ought to be checked if one has "Parse error: parse
error, unexpected T_VARIABLE in blah blah blah"...

...[snip]...

--

- E -

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



Re: [PHP] mem

2004-02-17 Thread - Edwin -
Not that this is still a php question but...

On Wed, 18 Feb 2004 01:38:39 -0500
John Taylor-Johnston <[EMAIL PROTECTED]> wrote:

> Both for that matter. I have root access. I want to echo how
> much /var/xxx contains, and while I'm at it, how much my
> partition contains and how much is used.

Try these commands:

  $ df
  $ du /var/something

and these:

  $ man df
  $ man du

for more info...

And check this as well:

  http://www.php.net/manual/en/ref.exec.php

--

- E -

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



Re: [PHP] mem

2004-02-17 Thread - Edwin -
On Wed, 18 Feb 2004 01:25:54 -0500
John Taylor-Johnston <[EMAIL PROTECTED]> wrote:

> I'm not even sure if this is a Unix thing, or if it can be
> done, but ... How can I read the amount of memory used in a
> directory /var/something/ (and maybe sub-directories) and echo
> it?

Try the manual:

  http://www.php.net/manual/en/ref.filesystem.php

And just watch out for some permission issues...

--

- E -

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



Re: [PHP] redirecting

2004-02-17 Thread - Edwin -
On Wed, 18 Feb 2004 17:19:03 +1100
ajay <[EMAIL PROTECTED]> wrote:


> i want the user to have say 5s to read that page and then be
> redirected to another page.


'Not sure if it's only me but I think I've seen this recently ;)

http://marc.theaimsgroup.com/?t=10769831404&r=1&w=2
http://marc.theaimsgroup.com/?l=php-general&w=2&r=1&s=headers&q=b

--

- E -

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



Re: [PHP] Japanese Language

2004-02-13 Thread - Edwin -
Once upon a time, KidLat Ngayon wrote:


whenever i've open the file in staroffice, it can
read the nihongo, however when i open it in microsoft
office, it turns out that the nihongo are
something like a garbage character.


*Maybe* the problem lies with the fact that the file was saved 
(encoded) in EUC-JP and MS Office is trying to open it using SJIS 
whereas StarOffice is using the correct encoding...

This should help: http://www.php.net/mbstring

--

- E -

"I may have invented it [Ctrl-Alt-Delete],
 but Bill made it famous." - David Bradley
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: Constant PHP_OS and Mac Server

2004-02-13 Thread - Edwin -
I don't have a Mac Server here; only a G5 with the "ordinary" Panther ;)

The answer must be the same though...

Gerard Samuel wrote:
I dont have a Mac handy to get the value of the constant PHP_OS.
If anyone has access to a Mac, please reply to me with the output of 
var_dump( PHP_OS );


  var_dump(PHP_OS);
  // result is -> string(6) "Darwin"
?>

HTH,

PS (to myself)
First post from Thunderbird 0.5
--

- E -

"I may have invented it [Ctrl-Alt-Del],
 but Bill made it famous." - David Bradley
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] OT, Maybe: Question Re: Apache/Macintosh Platform

2004-01-28 Thread - Edwin -
On Wed, 28 Jan 2004 22:18:16 -0500
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:

> PHP/MySQL textbook I'm using says to copy its sample apps to
> the root directory. What it says is: "[o]n Apache this folder
> is usually named htdocs by default." Not only can't I find a
> folder named "htdocs", but I've been using--and I'm certain I
> remember reading in another book to use this--the Sites folder
> within my username folder, which is within the Users folder of
> my hard drive.
> 
> Now the code samples run fine from there; but I still need to
> know whether this is somehow not the correct place, and whether
> I need to create a folder named "htdocs".
> 
> Any thoughts?

Try searching for "DocumentRoot" and/or "UserDir":

  http://search.apache.org/

Or check the comments inside your httpd.conf file. I'm sure
you'll find something ;)

Btw, "Sites" corresponds to "public_html" in default (Red Hat)
linux installations...

--

- E -
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

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



Re: [PHP] PHP EDITORS

2004-01-27 Thread - Edwin -
Hello,

On Wed, 28 Jan 2004 00:10:11 -0600
"John Jensen" <[EMAIL PROTECTED]> wrote:

> Hello everyone. I am new to PhP and MySQL. I was wondering what
> a good (Or Free) Php Editor is?

Maybe you missed this: 

http://marc.theaimsgroup.com/?l=php-general&m=107396769431732&w=2

or

http://www.phparch.com/mailinglists/msg.php?a=749193&s=&sp=135

(Was that the latest? -> Ma Siva Kumar :)

--

- E -
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

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



Re: [PHP] Re: help with mysql

2004-01-27 Thread - Edwin -
On Tue, 27 Jan 2004 18:01:40 -0500
"Tom Flood" <[EMAIL PROTECTED]> wrote:

> Martin,
> 
> Thank you for the insight  when I ran the php file you
> suggested, nothing appeared to be related to mysql.  I
> installed both the php and mysql packages onto my Linux box
> through a rpm installer.  Where can I obtain mysql support for
> php?

Check if you have

  php-mysql-x.x.x-x.x.rpm

installed...

--

- E -
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

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



Re: [PHP] path problems

2004-01-27 Thread - Edwin -
On Tue, 27 Jan 2004 20:22:46 -0500
Scott Taylor <[EMAIL PROTECTED]> wrote:

> I understand all of the file size ones.  What I really don't
> understand is why neither of the following examples work:
> 
> /* example 1 */
> /* where $_SERVER['DOCUMENT_ROOT'] =
> /usr/local/psa/home/vhosts/domain.com/httpdocs */$file =
> $_SERVER['DOCUMENT_ROOT'] . '/archive/newsletters/Dec03.pdf';
> readfile($file);
> 
> 
> /* example 2 */
> $file = 'archive/newsletters/Dec03.pdf';
> readfile($file);

How does it not work?

Errors, anything?

--

- E -
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

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



Re: [PHP] null value and isset

2004-01-27 Thread - Edwin -
Hi,

On Wed, 28 Jan 2004 11:17:52 +1100 (EST)
<[EMAIL PROTECTED]> wrote:

> Hi there regarding out discussions before about using isset, i
> set function params which are false intitalially as null ie
> function foo ($bar = null) , anyway $bar remains true both ways
> if i do isset($bar), i didnt notice this assuming it was ok,
> now the scripts are buggered, it was originally like if($bar) 
> which worked fine. Is there a better way to check ?

Hmm.. It's always FALSE here. (Unless there something wrong with
my test code.)

Here's what I used: (Run on the command line...)



--

- E -
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

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



Re: [PHP] CGI ERROR

2004-01-27 Thread - Edwin -
On Tue, 27 Jan 2004 18:41:39 -0800
"Dale Hersh" <[EMAIL PROTECTED]> wrote:

> CGI Error
> The specified CGI application misbehaved by not returning a
> complete set of HTTP headers.
> 
> I am getting this error and I can't figure out what is causing
> the problem. If I hit refresh on the broswer, the page loads
> just fine. Any ideas???

A bug on your server? A bug on your browser? A bug on your
script? ...

--

- E -
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

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



Re: [PHP] strtotime Question

2004-01-27 Thread - Edwin -
Hi,

On Tue, 27 Jan 2004 23:05:09 -0500
gohaku <[EMAIL PROTECTED]> wrote:

> Hi everyone,
> I made the mistake of using strtotime("day") instead of 
> strtotime("today")
> to get the current time.
> I was just curious, what is strtotime("day") represent?
> 
> Below is what I used to test the "day" and "today" parameters:
> 
> Testing One Minute Difference
>  echo min_diff();
> function min_diff()
> {
>   $now = strtotime("today");//Return value is 60
>   //$now = strtotime("day");//Return value is 86400
>   $onemin = strtotime("-1 minute");
>   return $now-$onemin;
> }
> ?>

60 seconds * 60 min. * 24 hrs. = 86400?

--

- E -
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

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



Re: [PHP] DAMN

2003-11-28 Thread - Edwin -
On 2003/11/29, at 14:54, Bronislav Klucka wrote:

I would really like to stop this thread but...

1/ "What problemS"?? the two I mentioned?
The first one was/is NOT a problem.

2/ I do not hawe time ro read the whole war you send me link to, I 
read just
one mail
[...]

Why don't you read one more:

  http://marc.theaimsgroup.com/?l=php-general&m=106988902220400&w=2

--

- E -

__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Static Array vs MySQL query

2003-11-28 Thread - Edwin -
Hi,

On 2003/11/29, at 8:10, John Nichel wrote:

Hi,

  I'm designing my site to use drop down menus, and am having php 
generate the content of the main manus, as well as the sub-menus.  
What I'm wondering is what the performance hit will be with putting 
all the menu variables into an array in a config file vs storing the 
info in a MySQL table, and retriving the data from there.
...[snipped]...

Instead of "generating" the menu(s) each time, why not create a static 
[HTML] file which you can "call" by using file_get_contents() or 
something and just "insert" it where it's needed?

Just an idea...

--

- E -

__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] DAMN

2003-11-28 Thread - Edwin -
On 2003/11/29, at 14:17, John Nichel wrote:

Bronislav Klucka wrote:

I've just realized I'm replaying to JeRRy only Could anybody fixt 
this
problem by setting the Reply To header correctly? to be able to reply 
PHP
conf. directly using Reply button?!!!
Brona
How many times is someone going to start this flame war this month?
Hmm... A *better* question would be "How many people does NOT start 
it?" ;)

--

- E -

__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] DAMN

2003-11-28 Thread - Edwin -
I think...

On 2003/11/29, at 14:30, Bronislav Klucka wrote:

I'll shut up, I didn't realized there were some flame war, but somebody
should do:
1/ Fix this "Reply to" problem
(mail comes from PHP conference I suppose I should reply to this 
conference)
You just missed the point:

  http://marc.theaimsgroup.com/?t=10697795341&r=1&w=2

2/ Fix the problem with non existing users (or mailboxes, where cannot 
be
mail deliver to)

I'll really shut up. but these problems are quite annoying...
What "problemS"?

--

- E -

__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread - Edwin -
Okay, I've seen my name so here we go again... ;)

On Wed, 26 Nov 2003 16:59:27 +0900
"Dave G" <[EMAIL PROTECTED]> wrote:

> Edwin,

Hi Dave,

>   I read the articles you pointed out. I'm sorry, but I
>   still have
> not seen any argument that makes me think that the
> reply-to-the author option is better. In another posting
> I've put forth some of my reasons.

Try this:
http://marc.theaimsgroup.com/?l=php-general&m=105700977431019&w=2

>> And, what is your opinion regarding "Reply All"?
>   Reply all is very useful sometimes. In the case of
>   this mailing
> list, however, I see it as redundant. If I hit "Reply All",
> then the person I'm responding gets it twice. Once
> directly, and once on the list, as this mail I'm writing
> now does. Since you will get this via the list, why do you
> also want to get it directly? 

One very good answer: (okay, you can count two)
http://marc.theaimsgroup.com/?l=php-general&m=106981188006409&w=2
http://marc.theaimsgroup.com/?l=php-general&m=106981297807237&w=2

>   In any case, no one is saying that "Reply All" should
>   be deleted
> as an option. The more options the better - respond to the
> list, the list and the author, the author only...

Um... this has been discussed as well. Most *other* mail
clients can do this--mine for one can do it ->
http://sylpheed.good-day.net/

> all these
> options should be readily available. The debate is over
> what is the default behaviour. I maintain that the point of
> a list is to have open discussion, that people join
> precisely for the advantage of participating in a group,
> and so the postings should default to going to the group,
> with secondary options for posting off list.

... and quoting Jason Wong, what else can I say?

http://marc.theaimsgroup.com/?l=php-general&m=106983314920667&w=2

[quote]
Breaking the list to cater for broken mail clients is a
ludicrous suggestion.
[/quote]

--

- E -
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

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



Re: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread - Edwin -
Okay, I thought I won't be posting again for this thread
but...

On Tue, 25 Nov 2003 23:30:37 -0800 (PST)
Panos Konstantinidis <[EMAIL PROTECTED]> wrote:

> > 
> > What's the problem with the "Reply All" button?
> > 
> 
>   Which of the following words you just don't
> understand: *some mail clients (eg yahoo) do not have
> a "Reply All" button"?

Which of the following words you just don't understand: The
"Reply All" button is just BESIDE (on the right side) of the
"Reply" button!

"Do You Yahoo!?"

--

- E -
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

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



Re: [PHP] Add Reply-To to this list(s)

2003-11-25 Thread - Edwin -
On Tue, 25 Nov 2003 17:27:50 -0800
"Roger B.A. Klorese" <[EMAIL PROTECTED]> wrote:

> > I'm using the browser but not the email and news client
> > so I'm not sure but I just came across this: (Pls. check
> > under subheading "Mailing lists".)
> > 
> >  
> http://www.opera.com/support/tutorials/opera/m2/folders/?test=pop
> 
> > And, umm... PHP in Opera looks great. ;)
> 
> Yes, but:
> - the IMAP implementation is minimal at best
> - they don't implement any List-* capability *except* for
> categorization -- no reply-to-list or help or
> subscribe/unsubscribe
> 
> I installed it, was underwowed by the second issue above,
> and removed it after five minutes because of the first.

Aha! Okay, then, I recommend this:

  http://www.justsystem.co.jp/shuriken/pro3/

It addresses (I believe) all the problems you mentioned
above. It just add one new "problem"--it's all in Japanese!
;)

Um, okay, the above is a suggestion to those who are looking
for an excellent Japanese mail client... :)

- E -
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

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



Re: [PHP] Parsing a file line by line

2003-11-25 Thread - Edwin -
On Tue, 25 Nov 2003 17:44:09 -0800
"Jason Williard" <[EMAIL PROTECTED]> wrote:

...[snipped]...

> Does anyone have any ideas for me?

Okay, this is just an idea.

Use file() to put everything in an array.

  http://www.php.net/manual/en/function.file.php

Then find a function here that would let you check the first
four characters.

  http://www.php.net/manual/en/ref.strings.php

Loop through the array created by file() and process each
line accordingly (whatever it is that you need to do with
each line).

- E -
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

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



Re: [PHP] Add Reply-To to this list(s)

2003-11-25 Thread - Edwin -
On Wed, 26 Nov 2003 01:49:09 -
"Thomas Svenson" <[EMAIL PROTECTED]> wrote:

> - Edwin - wrote:
> 
> > What's the problem with the "Reply All" button?
> 
> One problem is that people, like you did now, forget to
> delete the non list address.

Hehe... I did NOT forget--that was deliberate.

http://marc.theaimsgroup.com/?l=php-general&m=105700977431019&w=2

> That makes me get two mail
> with the exact same content - one from the list and another
> directly to me. That is very irritating.

Why, can't you use/configure it (your mail/news client) to
delete "duplicated messages"? Mine can ;)

--

- E -
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

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



Re: [PHP] Add Reply-To to this list(s)

2003-11-25 Thread - Edwin -
On Tue, 25 Nov 2003 15:21:22 -0600
"Jay Blanchard" <[EMAIL PROTECTED]> wrote:

> [snip]
> If you would stop using M$ Outlook and switch to a better
> mail client that supports mailing lists, your problem would
> be solved.[/snip]
> 
> As has been said several times, not all can do this.

True. But maybe instead of *switching* they can just use
*another* mail client for mailing lists? ;)

--

- E -
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

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



Re: [PHP] Add Reply-To to this list(s)

2003-11-25 Thread - Edwin -
On Tue, 25 Nov 2003 15:55:15 -0500
"Glenn E. Sieb" <[EMAIL PROTECTED]> wrote:

> > From: Eugene Lee [mailto:[EMAIL PROTECTED] 
> >
> > If you would stop using M$ Outlook and switch to a better
> > 
> > mail client that supports mailing lists, your problem
> > would be solved.
> 
> Amusing--I've used Eudora.. I've used Mozilla.. I've used
> Netscape.. I don't see that behaviour in any of those. So,
> care to tell us which M$-Windows mail program supports
> this?

Try Opera. (http://www.opera.com/)

 
http://marc.theaimsgroup.com/?l=php-general&m=106980989504857&w=2

(But I believe Mozilla or Netscape supports threading so it's
still *nicer* to use than Outlook [Express].)

--

- E -

PS
Sorry about the "date" in my other posts...
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

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



Re: [PHP] Add Reply-To to this list(s)

2003-11-25 Thread - Edwin -
Hi,

On Tue, 25 Nov 2003 19:10:12 -0500
"John W. Holmes" <[EMAIL PROTECTED]> wrote:

> Adam i Agnieszka Gasiorowski FNORD wrote:
> 
> > Thomas Svenson wrote:
> >>>If you would stop using M$ Outlook and switch to a
> >better mail client>>that supports mailing lists, your
> >problem would be solved.>
> >>I wouldn't mind that at all. What clients do you
> >recommend for WindwosXP? I>want a small client (note: I
> >have to use Outlook for business purposes, but>have the
> >lists on a separate account).
> > 
> > Try the Opera's 7 M2 (build-in revolutionary
> >  email and news client).
> 
> Is this an advertisement or does it actually have the
> features everyone is looking for?

I'm using the browser but not the email and news client so
I'm not sure but I just came across this: (Pls. check under
subheading "Mailing lists".)

 
http://www.opera.com/support/tutorials/opera/m2/folders/?test=pop

> And, umm... PHP in Opera looks great. ;)

:)

- E -
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

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



Re: [PHP] Add Reply-To to this list(s)

2003-11-25 Thread - Edwin -
On Tue, 25 Nov 2003 22:18:01 -
"Thomas Svenson" <[EMAIL PROTECTED]> wrote:

...[snipped]...

> I am not demanding this to be changed. These lists are
> important enough for me to live with these problems. I
> would be very grateful though if the moderator(s) decided
> it would be a good idea to make this change.

Translation: "...it would be a good idea to do things the
incorrect way."

What's the problem with the "Reply All" button?

Have you read this?

 
http://marc.theaimsgroup.com/?l=php-general&m=106978623207586&w=2

- E -
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

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



Re: [PHP] Add Reply-To to this list(s)

2003-11-25 Thread - Edwin -
On Wed, 26 Nov 2003 02:51:58 +0900
"Dave G" <[EMAIL PROTECTED]> wrote:

>   This is, I suppose, a completely off topic thread.
>   However, I just
> read the web page
> http://www.unicom.com/pw/reply-to-harmful.html

That's great!

> and I was completely unconvinced.

:(

...[snipped]...


>   I remain steadfast in my opinion that automatically
>   replying to the
> list is a much more natural option. 

Have you read this?

 
http://marc.theaimsgroup.com/?l=php-general&m=106978016132054&w=2

Or, better yet, this?

 
http://marc.theaimsgroup.com/?l=php-general&m=106978623207586&w=2

And, what is your opinion regarding "Reply All"?

- E -
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

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



Re: [PHP] $_POST bug?

2003-11-13 Thread - Edwin -
Hi,

(I think you intended to send this to the list...)

On Thu, 13 Nov 2003 02:03:50 -0500
"Jake McHenry" <[EMAIL PROTECTED]> wrote:

...[snip]...

> I'm running RHLinux 9, php 4.2.2, apache 2.0.40

Hmm... same here. Only difference could be that I rebuilt the
php RPMs to support mbstring--I'm sure it's not related
though ;)

> if (($_POST['accid_1']) && ($_POST['accid_2']) &&
> ($_POST['accid_3'])&& ($_POST['accid_4']) &&
> ($_POST['accid_5'])){
>   do my stuff... 
> }
> 
> All variables are 1 character long, and should be numbers.
> I have a preg_match inside the condition.. But it wasn't
> even getting that far.

(Just a note: If they should be numbers, maybe you can use
is_numeric().)

> But when any of the values were 0, then it didn't do my
> stuff, which kinda caught my attention... lol

In the above, you're basically asking

  if (all of these are TRUE) {
do my stuff...
  }

So, if even one of those is "0" then it won't do your
stuff...

> ***
> 
> I just seemed to fix the problem, I changed the above code
> to($_POST['accid'] != "") for each one, and it works now...
> ? Could someone please enlighten me as to what's happening
> here?

Well, this

  if ($_POST['accid'])

is asking something like

  if (TRUE)

so if the value of $_POST is "0" then it's FALSE. If the
value is "1" or "a" or "Edwin" then that would evaluate to
TRUE.

Whereas this one

  if ($_POST['accid'] != "")

is asking something like

  if the value of $_POST is not equal to "" then...

So, since "0" is not equal to "" then the result would be
TRUE. If the value "1" or "a" or "Edwin" then that would
STILL evaluate to TRUE since those are not equal to "".

Not sure if I had explained this well since I'm starting to
have a headache trying to figure out how to explain 'What is
"TRUE"?' "Not 'FALSE'". "Then, what is 'FALSE'?" "Not
'TRUE'." "??."

:)

- E -
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

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



Re: [PHP] On OS X (10.2) where is php installed?

2003-11-13 Thread - Edwin -
On Fri, 07 Nov 2003 23:10:53 +0300
Burhan Khalid <[EMAIL PROTECTED]> wrote:

> - Edwin - wrote:
> 
> > Hi,
> > 
> > On 2003.11.8, at 01:51 Asia/Tokyo, Adam wrote:
> > 
> >> All,
> >>
> >> Forgive me for the simplistic question, I'm not much of
> >a Unix, > Apache, or PHP wiz. I'm running Mac OS X 10.2 on
> >a 12" PB. I've > installed PHP 4.3.0 from Marc Lynric's
> >site (http://www.entropy.ch). > However, I cannot actually
> >find the installation files on my laptop.>
> >> My web server works. It serves PHP pages quite well, but
> >I want to > know where the binaries are located. I've
> >tried using some sources I > thought might tell me where
> >the files are located, but they have not.>
> >> Can anyone shed some light?
> > 
> > 
> > Try /usr/local/php
> > 
> 
> Not sure if the Apple "Unix" supports this,

It *should* since it's based on FreeBSD 5 ;) I didn't try
though since I know where the files are--Marc Liyanage
(notice wrong spelling up there) is kind enough to post it on
his site: http://www.entropy.ch/software/macosx/php/

> but you can always try
> 
> find / -name php
> 
> or
> 
> locate php
> whereis php

--

- E -
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

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



Re: [PHP] Explanation for php.net front page???

2003-11-13 Thread - Edwin -
On 12 Nov 2003 17:37:58 -0500
Robert Cummings <[EMAIL PROTECTED]> wrote:

> It's not active on the main page. It's on the search page.
> Go there instead.
> 
> http://www.php.net/search.php
> 
> And it doesn't seem to work with Opera 6 :)

Try the latest version. It works for me ;)

  opera:about

Version 7.22 Final
Build   497
PlatformLinux

- E -
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

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



Re: [PHP] Calling PHP functions from within javascript

2003-11-13 Thread - Edwin -
On Thu, 13 Nov 2003 01:46:20 -0500
"Jake McHenry" <[EMAIL PROTECTED]> wrote:

...[snip]...

> Someone correct me if I'm wrong, but this isn't possible
> unless you have your javascript continuously refreshing the
> page, and changing the url, or posting data. PHP is server
> side, so the only way for php script to be executed is when
> the page loads. It might be more productive if you create
> the functions you want executed in javascript instead of
> php.

Yes, yes, yes and yes, you're correct. :)

- E -
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

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



Re: [PHP] $_POST bug?

2003-11-12 Thread - Edwin -
On Thu, 13 Nov 2003 00:59:11 -0500
"Jake McHenry" <[EMAIL PROTECTED]> wrote:

...[snip]...

> Just to test, I changed the input field length to 3, and
> every time I tried it, single 0 does not create the $_POST
> variable. Double 0's create it, along with any other
> numbers, it's only when a single 0 is entered. Is this a
> bug or happening for a reason?

Ans.: "happening for a reason" :)

Works here even with single 0.

Post some relevant code and if possible your environment as
well.

- E -
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

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



Re: [PHP] Japanese character validation

2003-11-08 Thread - Edwin -
On 2003.11.8, at 21:51 Asia/Tokyo, Dave G wrote:

In hopes of bringing the kanji character validation issue back
on topic, can I point out that it doesn't matter *why* someone would
want to do this, or what the origins of kanji and kana are? The
motivations of the original poster shouldn't be in question. Everyone
has their own situations and goals, and what's not important to one
person is important to others. Either what they are asking for is
possible or not, and if it is, it would be enlightening to know how.
I think it'd be scary if there's a certain doctor who'd give you a
medicine just because you said you have a headache. I'm sure a
good doctor would ask questions to diagnose what may be causing
it. He might even send you home without giving you any medicine.
Don't be surprised if your headache is gone the next morning.
I for one am also very interested in hearing possible solutions.
I can think of multiple situations in which checking to see whether a
user inputted kanji or kana would be very useful indeed.
Like for example?

 And I hope to
learn more by further discussion of the PHP coding required. It would 
be
a shame if that potential learning was obscured or lost in off topic
theorizing about the origins of the Japanese language.
First, I'm not theorizing. They're written in history books.

Optimistically looking forward to seeing more technical discussion on
how to accomplish this.
Secondly, didn't I mention that this was recently brought up in the
Japanese PHP Group ML? And there's really NO easy solution for this?
  http://ns1.php.gr.jp/pipermail/php-users/2003-October/019236.html

In fact, that "problem" is already an FAQ in that ML--and other MLs as
well since "the need" is not limited to PHP programmers only.
- E -

__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Japanese character validation

2003-11-08 Thread - Edwin -
On 2003.11.8, at 20:32 Asia/Tokyo, Eugene Lee wrote:

On Sat, Nov 08, 2003 at 06:26:39PM +0900, - Edwin - wrote:
:
: On Fri, 7 Nov 2003 13:43:06 -0600 Eugene wrote:
: >
: > Actually, kana are not "simplified kanji" because it is not
: > the case that kana can replace kanji while preserving the
: > exact same meaning. In fact, most kana by themselves have
: > no meaning.
:
: Well, I'm sure there's a very good reason why the dictionary
: I quoted called it "simplified kanji".
I disagree with the term "simplified kanji".
  regex - regular expressions

  Um, what's so "regular" about it again?

  The kana may have been
derived from kanji and evolved over the centuries, but they are no
longer kanji in the sense that they carry any intrinsic meaning by
themselves.
?? Who said that they are kanji?

Kanji are Chinese characters whereas kana are Japanese characters.

  Nor can they replace kanji in meaning and function.  They
are just phonetic alphabets.
Did I say otherwise?

- E -

PS
Maybe, you can complain here:
  http://dictionary.reference.com/search?q=kana

__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Japanese character validation

2003-11-08 Thread - Edwin -
On Fri, 7 Nov 2003 13:36:35 -0600
Eugene Lee <[EMAIL PROTECTED]> wrote:

> On Sat, Nov 08, 2003 at 02:20:00AM +0900, - Edwin - wrote:
> : 
> : Besides, there are some issues (for example with
> Shift_JIS) that: "bothers" (with no easy "solution") even
> members of the Japanese PHP: Group ML.  (Like the recent
> thread [PHP-users 18803] on: http://www.php.gr.jp/ or
> : http://ns1.php.gr.jp/mailman/listinfo/php-users mentioned
> about the : SJIS trouble.)
> 
> Force the end-user not to use Shift-JIS.  

Um, you don't have to do that since YOU as the programmer
decides what to use.

> It's a brain-dead
> format used only for internal processing purposes and not
> meant as a for-the-public encoding method.  Stick with
> something nice like normal JIS or Unicode.

"Brain-dead format" compared to JIS? Hehe, maybe you're
confused ;) Besides, I guess, more than half of Japanese
sites are written in shift_jis.

Result of a quick Google search:

  http://www.io.com/~kazushi/encoding/

Anyway, the easiest way (I find for now) when working with
PHP and Databases (MySQL, etc.) is to use "euc-jp". There are
times though that you are "forced" to use "shift_jis" e.g.
when working with sites for i-mode's browsers. If that's the
case, just use the mb_* functions to convert from euc-jp to
shift_jis...

- E -
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

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



Re: [PHP] Japanese character validation

2003-11-08 Thread - Edwin -
I know this is becoming off-t but just for the curious...

On Fri, 7 Nov 2003 13:43:06 -0600
Eugene Lee <[EMAIL PROTECTED]> wrote:

> On Sat, Nov 08, 2003 at 01:35:40AM +0900, - Edwin - wrote:
> : 
> : On 2003.11.7, at 18:37 Asia/Tokyo, Marek Kilimajer wrote:
> : 
> : ...[snip]...
> : 
> : >Are Kanji and Kana chracter sets?
> : 
> :   "Kan" -> Chinese + "ji" -> character
> : 
> :   kana:  (quoted from the American Heritage Dictionary)
> : "1. Japanese syllabic writing. The characters are
> simplified kanji
> 
> Actually, kana are not "simplified kanji" because it is not
> the case that kana can replace kanji while preserving the
> exact same meaning. In fact, most kana by themselves have
> no meaning.

Well, I'm sure there's a very good reason why the dictionary
I quoted called it "simplified kanji". In fact, there's a
very good why many--if not all--the books that talks about
the subject call it the same way.

Japanese didn't have a native system of writing so they
borrowed from Chinese characters. Those Chinese characters
were used *phonetically* and the meanings were ignored. In
other words, one can say that, during those time /even/
kanjis did NOT have any meaning for the Japanese (person)
since the characters were just used phonetically.

Since each Japanese word had to employ several Chinese
characters, which requires a large number of strokes, they
decided to simplify this bothersome process by using a
cursive, simplified style of kanji.

Then, (just to make the story short) during the Heian period
(794-1185), the simplified characters underwent a further
simplification. Thus, "hiragana" (and a little later,
"katakana") was born.

Actually, just by observing how the "kanas" are written,
you'll notice that:

  * The hiragana and katakana for "na"
came from the kanji "na" in "Nara"
(Nara Prefecture).
  * The hiragana and katakana for "yu"
came from the kanji "yu" which means
reason, cause, etc.
  * All hiragana and katakana has a
corresponding kanji from which
they're derived from.

Now, back to the future...

- E -
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

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



Re: [PHP] On OS X (10.2) where is php installed?

2003-11-07 Thread - Edwin -
Hi,

On 2003.11.8, at 01:51 Asia/Tokyo, Adam wrote:

All,

Forgive me for the simplistic question, I'm not much of a Unix, 
Apache, or PHP wiz. I'm running Mac OS X 10.2 on a 12" PB. I've 
installed PHP 4.3.0 from Marc Lynric's site (http://www.entropy.ch). 
However, I cannot actually find the installation files on my laptop.

My web server works. It serves PHP pages quite well, but I want to 
know where the binaries are located. I've tried using some sources I 
thought might tell me where the files are located, but they have not.

Can anyone shed some light?
Try /usr/local/php

- E -

__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


  1   2   3   4   5   6   >