[PHP] Paste variable from popup to previous page?

2006-12-12 Thread William Stokes
Hello, How can I pass a variable from popup window back to the page that originally opened the popup? Or can I? Thanks -Will -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Paste variable from popup to previous page?

2006-12-12 Thread William Stokes
Hello, How can I pass a variable from popup window back to the page that originally opened the popup? Or can I? Thanks -Will -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: FW: [PHP] Re: Please hack my app

2006-12-12 Thread Jordan Forssman
Hi Ivo, Sorry for the late reply, I have been traveling. I am assigning someone to your case who will assist you in understanding the cause of the inclusion of the vulnerability in your own functions. To my understanding it is that it could be the result of a repetition of an instance discovered

[PHP] How php works?

2006-12-12 Thread Kai Xiang
Hello all: I'm new here and looking PHP these days, howerver , I'm confused by how it works, and here is some questions I have. Is there any old bird wanna help me out? 1. I heard there is a zend engine inside PHP playing the role as a virtual machine, and PHP excution have 2 step, first compile

Re: [PHP] Cookies & page refresh

2006-12-12 Thread William Stokes
Thanks. It seems that I tested the right things but in a wrong order... -Will "Chris" <[EMAIL PROTECTED]> kirjoitti viestissä:[EMAIL PROTECTED] > William Stokes wrote: >> Hello, >> >> I have a page that uses session cookies for deciding what content to show >> to a visitor. User also has 2 for

Re: [PHP] Segmentation fault using imap_open

2006-12-12 Thread Chris
Richard Morris wrote: Hello all, I was experimenting with the imap_* library functions trying to see if I could get a PHP script to access a folder on our IMAP server and I ran into a problem. I was trying to get a simple script to work which simply opened a connection to the mail server an

Re: [PHP] Varying session behavior between 2 nearly identical Apache/PHP setups

2006-12-12 Thread Chris
Matthew North wrote: Hello All, I have an odd situation that I wonder if someone might have some insight on. The scenario is this: - Two FreeBSD systems running Apache+mod_php+others. We use one for development and the other for testing. - Each system is running PHP 5.2.0 with identical php.

Re: [PHP] Whitespace in Emails

2006-12-12 Thread Chris
[EMAIL PROTECTED] wrote: I'm experiencing a strange problem and difficult to diagnose because it's random. I have built an application that sends out an email with a nice amount of text (don't have exact char count, but could get it). On the html email, a random whitespace appears in the conte

Re: [PHP] Retransmiting post variables

2006-12-12 Thread Chris
Fernando M. M. wrote: Hello, I have a script called redir.php that is used only for redirecting using the following code: header('Location: ', $_GET['url']); But now i need to redirect post varibles too. Example: If someone access redir.php?url=my_page.php and post: &a=1&b=2 I need to send

Re: [PHP] Cookies & page refresh

2006-12-12 Thread Chris
William Stokes wrote: Hello, I have a page that uses session cookies for deciding what content to show to a visitor. User also has 2 form objecks to apply filters to the content SQL queries. So at the beginning of the script I set 2 cookies based on user selections(or defaults) and after that

RE: [PHP] Cookies & page refresh

2006-12-12 Thread Peter Lauri
Hi, I think it says somewhere in the documentation that the cookie values will not be available until next request/response... /Peter -Original Message- From: William Stokes [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 12, 2006 5:28 PM To: php-general@lists.php.net Subject: [PHP]

Re: [PHP] $POST Q

2006-12-12 Thread Chris
William Stokes wrote: Hello, Can someone tell me what wrong or to how to manage this? //default $limitorig = 10; echo ""; echo "$limitorig"; echo "10"; echo "20"; echo "30"; echo "; Something like this would be better: $limitorig = 10; $options = array('10', '20', '30'); if (isset($_POST['

[PHP] Segmentation fault using imap_open

2006-12-12 Thread Richard Morris
Hello all, I was experimenting with the imap_* library functions trying to see if I could get a PHP script to access a folder on our IMAP server and I ran into a problem. I was trying to get a simple script to work which simply opened a connection to the mail server and then closed it but wh

[PHP] Varying session behavior between 2 nearly identical Apache/PHP setups

2006-12-12 Thread Matthew North
Hello All, I have an odd situation that I wonder if someone might have some insight on. The scenario is this: - Two FreeBSD systems running Apache+mod_php+others. We use one for development and the other for testing. - Each system is running PHP 5.2.0 with identical php.ini files. - On each

[PHP] Whitespace in Emails

2006-12-12 Thread jennifer
I'm experiencing a strange problem and difficult to diagnose because it's random. I have built an application that sends out an email with a nice amount of text (don't have exact char count, but could get it). On the html email, a random whitespace appears in the content, but always toward

RE: [PHP] php redirection..

2006-12-12 Thread Tim
Just a quick question regarding this issue. Considering bruce wants to be able to display the data and then change location after a given time, and as stut said you can't do this with a header() as it redirects before output, I would have imagined a dynamic meta tag in the header with a time varia

RE: [PHP] php redirection..

2006-12-12 Thread Tim
Just a quick question regarding this issue. Considering bruce wants to be able to display the data and then change location after a given time, and as stut said you can't do this with a header() as it redirects before output, I would have imagined a dynamic meta tag in the header with a time varia

Re: [PHP] inheritance php4

2006-12-12 Thread Brad Bonkoski
bruce wrote: hi... haven't used php classes.. so this might not pertain.. but do php classes have the concept of public/private functions? Not in PHP 4 are the parent functions that you're trying to access public/private? -Original Message- From: blackwater dev [mailto:[EMAIL PROTE

RE: [PHP] inheritance php4

2006-12-12 Thread bruce
hi... haven't used php classes.. so this might not pertain.. but do php classes have the concept of public/private functions? are the parent functions that you're trying to access public/private? -Original Message- From: blackwater dev [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 1

[PHP] Re: inheritance php4

2006-12-12 Thread blackwater dev
nevermind, I was doing something stupid. On 12/12/06, blackwater dev <[EMAIL PROTECTED]> wrote: Ok, I have a class which inherits from a parent class. My first thought is that the child class inherits all of the functions of the parent but that doesn't seem to be the case, do I really have to

[PHP] inheritance php4

2006-12-12 Thread blackwater dev
Ok, I have a class which inherits from a parent class. My first thought is that the child class inherits all of the functions of the parent but that doesn't seem to be the case, do I really have to put parent::somefunction() to call each one? Why can't I just use $this->parentfunction(); within

Re: [PHP] php redirection..

2006-12-12 Thread Stut
bruce wrote: hey stut... Please don't reply to me directly, always include the mailing list. thanks for the reply... i did get some output... i also have a question as to why i couldn't get it to work when i used 'header (foo.php)' 1) The correct way to redirect using the header function i

Re: [PHP] php redirection..

2006-12-12 Thread Stut
bruce wrote: i want to be able to display some text/content and to then redirect the user to another page. basically: cat.php -echo " test content" -echo " more test content" //redirect user echo" location.href='foo.php'; "; --- foo.php -echo "i'm here" should be

Re: [PHP] Problems with Zip+IE6

2006-12-12 Thread Frank M. Kromann
Hello, if you use: header("Content-Type: application/zip"); header("Content-Disposition: attachment; filename=\"somefile.zip\""); That works for me with IE 6/7 and other browsers. - Frank > damn! that's a pretty good article, thanks a lot. > > unfortunatelly, it's not mentioning about zip fil

[PHP] php redirection..

2006-12-12 Thread bruce
hi... i have what should be a pretty simple question that i'm obviously missing something for... i want to be able to display some text/content and to then redirect the user to another page. basically: cat.php -echo " test content" -echo " more test content" //redirect user echo" loc

RE: [PHP] Newline Before XML Document

2006-12-12 Thread Ray Hauge
I found the problem. I was re-writing the page from using the old DOMXML to the new DOM. We recently switched to PHP5, and there's only one script (so far) that creates XML, so it was easier to just use the domxml-php4-to-php5.php class that is available online. I didn't realize that there was a

Re: [PHP] file uploads Q?

2006-12-12 Thread Børge Holen
On Tuesday 12 December 2006 15:02, Jochem Maas wrote: > Børge Holen wrote: > > ... > > > It is sad to see that you got an amazing tool like this list and still > > manages to read and understand it the way you FEEL like at any moment. > > what makes this list 'amazing' is the handful of people who

Re: [PHP] problems configuring php5.2.0 and php4.4.4 with mysql5.0.27

2006-12-12 Thread Jochem Maas
sidenote: shouldn't Erik be using the mysqli extension (note the extra *i*) instead of mysql? http://php.net/mysqli (... The mysqli extension allows you to access the functionality provided by MySQL 4.1 and above ...) Richard Lynch wrote: > Did you configure/install MySQL *and* the mysql-dev pac

[PHP] Retransmiting post variables

2006-12-12 Thread Fernando M. M.
Hello, I have a script called redir.php that is used only for redirecting using the following code: header('Location: ', $_GET['url']); But now i need to redirect post varibles too. Example: If someone access redir.php?url=my_page.php and post: &a=1&b=2 I need to send this post string (as p

[PHP] Cookies & page refresh

2006-12-12 Thread William Stokes
Hello, I have a page that uses session cookies for deciding what content to show to a visitor. User also has 2 form objecks to apply filters to the content SQL queries. So at the beginning of the script I set 2 cookies based on user selections(or defaults) and after that make DB query based on

Re: [PHP] Download adds ^M to beginning of file

2006-12-12 Thread Jochem Maas
[EMAIL PROTECTED] wrote: > Hi, > > Using the below code to force download works fine on most servers and > with most > browsers. However it does "crash" Firefox when I download a specific > file, IE > works like beauty. File content starts with: > > #!/sbin/_joor_perl_use Filter::decrypt..

[PHP] Newline Before XML Document

2006-12-12 Thread Ray Hauge
I've read a lot of information about this error (in Firefox): XML Parsing Error: xml declaration not at start of external entity Basically it means that the XML did not start at the beginning of the file. The weird part of this is that if I save the document to a file on the webroot and th

[PHP] Download adds ^M to beginning of file

2006-12-12 Thread lists
Hi, Using the below code to force download works fine on most servers and with most browsers. However it does "crash" Firefox when I download a specific file, IE works like beauty. File content starts with: #!/sbin/_joor_perl_use Filter::decrypt.. This is the code to force the download:

Re: [PHP] file uploads Q?

2006-12-12 Thread David Giragosian
On 12/12/06, Jochem Maas <[EMAIL PROTECTED]> wrote: Stut wrote: > Jochem Maas wrote: >> and say what *you* mean. > > I LIKE MARMITE!! you have my condolences. > > Damn, that does feel better. see, just let it out... (said in soothing psychoanalyst's voice) > > -Stut > (fairly bored today) r

Re: [PHP] Advice needed: implementing custom fields in tables

2006-12-12 Thread Jochem Maas
Denis Gerasimov wrote: > Hello list members, > > > > I am in a need of implementing custom/used-defined fields mechanism. What I > need is adding new fileds to a db table on-the-fly. > > > > There are 2 possible options I know: > > 1. Add a fixed set of text columns named custom_01,

[PHP] Advice needed: implementing custom fields in tables

2006-12-12 Thread Denis Gerasimov
Hello list members, I am in a need of implementing custom/used-defined fields mechanism. What I need is adding new fileds to a db table on-the-fly. There are 2 possible options I know: 1. Add a fixed set of text columns named custom_01, custom_02, etc. 2. Alter db tables dynam

Re: [PHP] file uploads Q?

2006-12-12 Thread Jochem Maas
Stut wrote: > Jochem Maas wrote: >> and say what *you* mean. > > I LIKE MARMITE!! you have my condolences. > > Damn, that does feel better. see, just let it out... (said in soothing psychoanalyst's voice) > > -Stut > (fairly bored today) really!? ;-) -- PHP General Mailing List (http://ww

Re: [PHP] file uploads Q?

2006-12-12 Thread Stut
Jochem Maas wrote: and say what *you* mean. I LIKE MARMITE!! Damn, that does feel better. -Stut (fairly bored today) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] file uploads Q?

2006-12-12 Thread Jochem Maas
Børge Holen wrote: ... > It is sad to see that you got an amazing tool like this list and still > manages > to read and understand it the way you FEEL like at any moment. > what makes this list 'amazing' is the handful of people who regularly answer (even the most banal) questions. the inter

Re: [PHP] file uploads Q?

2006-12-12 Thread Stut
Børge Holen wrote: No, I LEARN from this list. you? I smoke this list. Keeps me happy, out of trouble, and best of all it's free! -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] flash/php file uploader

2006-12-12 Thread Emil Edeholt
Hi Thanks for your answer, but I use an ajax solution right now and that is what I want to replace. I would really like to avoid flash, but I can't get this solution to work properly. Atleast my solution has been a little buggy in Safari (works mostly, but sometimes it won't upload the file)

RE: [PHP] file uploads Q?

2006-12-12 Thread Tim
> -Message d'origine- > De : Jochem Maas [mailto:[EMAIL PROTECTED] > Envoyé : mardi 12 décembre 2006 14:10 > À : Tim > Cc : php-general@lists.php.net > Objet : Re: [PHP] file uploads Q? > > Tim wrote: > >> Børge Holen wrote: > >>> On Monday 11 December 2006 20:48, Jochem Maas wrote: > >>

Re: [PHP] file uploads Q?

2006-12-12 Thread Børge Holen
On Tuesday 12 December 2006 14:10, Jochem Maas wrote: > Tim wrote: > >> Børge Holen wrote: > >>> On Monday 11 December 2006 20:48, Jochem Maas wrote: > Richard Lynch wrote: > > On Sat, December 9, 2006 12:18 pm, William Stokes wrote: > >> Is it possible to allow user pick several imag

Re: [PHP] file uploads Q?

2006-12-12 Thread Jochem Maas
Børge Holen wrote: > On Tuesday 12 December 2006 12:01, you wrote: >> Børge Holen wrote: >>> On Monday 11 December 2006 20:48, Jochem Maas wrote: Richard Lynch wrote: ... >> is that crack your smoking? > > No, I LEARN from this list. > > you? we'll I'll admit to learning plenty on this l

RE: [PHP] Need help with RegEx

2006-12-12 Thread Michael
At 04:56 AM 12/12/2006 , Ford, Mike wrote: >On 11 December 2006 19:43, Michael wrote: > >> At 08:29 AM 12/11/2006 , Brad Fuller wrote: >> > >> > The example provided didn't work for me. It gave me the same >> > string without anything modified. >> >> You are absolutely correct, this is what I ge

Re: [PHP] file uploads Q?

2006-12-12 Thread Jochem Maas
Tim wrote: >> Børge Holen wrote: >>> On Monday 11 December 2006 20:48, Jochem Maas wrote: Richard Lynch wrote: > On Sat, December 9, 2006 12:18 pm, William Stokes wrote: >> Is it possible to allow user pick several images and upload them all >> at >> once? (I need to pass the

Re: [PHP] file uploads Q?

2006-12-12 Thread Børge Holen
On Tuesday 12 December 2006 12:01, you wrote: > Børge Holen wrote: > > On Monday 11 December 2006 20:48, Jochem Maas wrote: > >> Richard Lynch wrote: > >>> On Sat, December 9, 2006 12:18 pm, William Stokes wrote: > Is it possible to allow user pick several images and upload them all > at

RE: [PHP] file uploads Q?

2006-12-12 Thread Tim
> Børge Holen wrote: > > On Monday 11 December 2006 20:48, Jochem Maas wrote: > >> Richard Lynch wrote: > >>> On Sat, December 9, 2006 12:18 pm, William Stokes wrote: > Is it possible to allow user pick several images and upload them all > at > once? (I need to pass the images to a

Re: [PHP] Havn't been on the list in a while

2006-12-12 Thread clive
Jim Lucas wrote: Seems like this list has slowed down alot. Anybody else notice this, or am I just missing something? jl well it is almost the end of the year perhaps some people are on holiday already? clive -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

RE: [PHP] Need help with RegEx

2006-12-12 Thread Ford, Mike
On 11 December 2006 19:43, Michael wrote: > At 08:29 AM 12/11/2006 , Brad Fuller wrote: > > > > The example provided didn't work for me. It gave me the same > > string without anything modified. > > You are absolutely correct, this is what I get for not > testing it explicitly :( My most sincer

RE: [PHP] PHP 4 on Apache 1.3

2006-12-12 Thread Edward Kay
A couple of suggestions: * The options should start with a double minus, i.e. --with-mysql not -with-mysql * Are the permissions OK for axps and it's directory? Edward > Hello, > > > > I've been trying for a couple of times now but seems to not find > the solution as > to why this error occurs.

[PHP] PHP 4 on Apache 1.3

2006-12-12 Thread zoticaic
Hello, I've been trying for a couple of times now but seems to not find the solution as to why this error occurs. I have Apache 1.3.37 installed on a Fresh CentOS 4.4 machine with this configure line : ./configure -enable-module=so -enable-module=rewrite I tried building PHP 4.4.4 using

Re: [PHP] $POST Q

2006-12-12 Thread Jochem Maas
William Stokes wrote: > Hello, > > Can someone tell me what wrong or to how to manage this? > > //default > $limitorig = 10; > > echo ""; > echo "$limitorig"; ^^ what do you think $_POST['USRlimitorig'] will be if you select the first option? > echo "10"; > echo

Re: [PHP] file uploads Q?

2006-12-12 Thread Jochem Maas
Børge Holen wrote: > On Monday 11 December 2006 20:48, Jochem Maas wrote: >> Richard Lynch wrote: >>> On Sat, December 9, 2006 12:18 pm, William Stokes wrote: Is it possible to allow user pick several images and upload them all at once? (I need to pass the images to a function for t

Re: [PHP] Problems with Zip+IE6

2006-12-12 Thread Javier Ruiz
damn! that's a pretty good article, thanks a lot. unfortunatelly, it's not mentioning about zip files concretely, I didn't find a solution for my problem with them. I tried playing a bit with the Content-type, but it seems that Internet Explorer doesn't really care about "Content-type"... it uses

[PHP] filedownload and output buffering

2006-12-12 Thread viraj
hi all, i have a small script which shows some information inside a html table and then pushes a file to save on to users desktop. but with the following code it download the file and stay without outputting the html table to browser. i tried with out put buffering functions, but still no luck (

RE: [PHP] Automating PHP email

2006-12-12 Thread zoticaic
-- > My Seeding Blog | http://bytes.nullp0inter.com > Hire me as Freelancer | http://www.getafreelancer.com/affiliates/shockx/ > -Original Message- > From: clr [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 12, 2006 5:02 PM > To: php-general@lists.php.net > Subject: [PHP] Automating P

Re: [PHP] Automating PHP email

2006-12-12 Thread Stut
clr wrote: I am creating a PHP/mySQL site that enables members to set criteria for email notification As my site changes and clients criteria are met they need to be notified. I can generate a list of email address and info quite simply using mySQL My question is how to "trigger" or initiate th

[PHP] Automating PHP email

2006-12-12 Thread clr
I am creating a PHP/mySQL site that enables members to set criteria for email notification As my site changes and clients criteria are met they need to be notified. I can generate a list of email address and info quite simply using mySQL My question is how to "trigger" or initiate this process

Re: [PHP] $POST Q

2006-12-12 Thread clive
William Stokes wrote: Hello, Can someone tell me what wrong or to how to manage this? //default $limitorig = 10; echo ""; echo "$limitorig"; echo "10"; echo "20"; echo "30"; echo "; firstly its better to use 10 this might also solve your problem if I understand your question correctly.

[PHP] $POST Q

2006-12-12 Thread William Stokes
Hello, Can someone tell me what wrong or to how to manage this? //default $limitorig = 10; echo ""; echo "$limitorig"; echo "10"; echo "20"; echo "30"; echo "; When the form is first printed the selected default (10) value is shown OK and if something is selected everything is fine. If I just