RE: [PHP] forms and inputs

2002-03-24 Thread S

Your input tag should look like this:
input type=text name=myvariable value=Hello my name is Vlad


-Original Message-
From: Vlad Kulchitski [mailto:[EMAIL PROTECTED]]
Sent: March 24, 2002 1:39 PM
To: [EMAIL PROTECTED]
Subject: [PHP] forms and inputs


Hi,

Can anyone suggest anything regarding the following problem.

Basically, I ask the user to type a few sentences, in 
input type=text name=name and on the next page I show everything
s/he typed asking Are you sure you want to submit this...

Once clicked YES all data is being taken to the next page for
FINAL submission to mysql. (all is done in one php script though)

But anyway, the problem is that when I see the final data in the
database, there's only 1 word from the sentence the used has typed
in, i.e if I submit Hello my name is Vlad, the only word that will
end up in the database would be Hello. What is the best solution to
overcome this?

Thanks,
Vlad

-- 
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] forms and inputs

2002-03-24 Thread S

You have to put quotes around the value or else you won't get anything pass
the space.

WRONG:
input type=hidden name=fname_eng value=Bob J.

RIGHT:
input type=hidden name=fname_eng value=Bob J.




-Original Message-
From: Vlad Kulchitski [mailto:[EMAIL PROTECTED]]
Sent: March 24, 2002 3:10 PM
To: S; [EMAIL PROTECTED]
Subject: RE: [PHP] forms and inputs


Hi continuing with the same issue I just found another bug in my code.
Basically I have a script myfile.php, based on codition it goes through
submit process STEP 1 through 4. It takes along the values it has collected
via:

form

input type=hidden name=name

/form

And so on, on the final stage it submits everything is has collected to the
database. What I noticed now is that if I type name with space, like Mister
Simpson or again like I mentioned before if I type a sentence in step 2 on
the final stage it gets lost. You can check how it works here:

http://kulchitski.com/btl/btl.php?lang=engpage=talkroom_submit

If anyone knows how to overcome the problem, please help.

Thanks,
Vlad

-Original Message-
From: S [mailto:[EMAIL PROTECTED]]
Sent: Sunday, March 24, 2002 2:34 PM
To: Vlad Kulchitski; [EMAIL PROTECTED]
Subject: RE: [PHP] forms and inputs

Your input tag should look like this:
input type=text name=myvariable value=Hello my name is Vlad


-Original Message-
From: Vlad Kulchitski [mailto:[EMAIL PROTECTED]]
Sent: March 24, 2002 1:39 PM
To: [EMAIL PROTECTED]
Subject: [PHP] forms and inputs


Hi,

Can anyone suggest anything regarding the following problem.

Basically, I ask the user to type a few sentences, in
input type=text name=name and on the next page I show everything
s/he typed asking Are you sure you want to submit this...

Once clicked YES all data is being taken to the next page for
FINAL submission to mysql. (all is done in one php script though)

But anyway, the problem is that when I see the final data in the
database, there's only 1 word from the sentence the used has typed
in, i.e if I submit Hello my name is Vlad, the only word that will
end up in the database would be Hello. What is the best solution to
overcome this?

Thanks,
Vlad

--
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] how to know upload progress status

2002-07-11 Thread S.

Hello,
I'm beginning to use PHP, maybe my question is very simple...
Anyway, I want permit users to upload files using a form, and I would show 
them the upload progress status...
I don't know how to extract informations about upload progress status and how 
to show informations to users. For example I want the users can see 30% of 
upload completed, or the MByte just uploaded.


I had some difficulties to write to the list, so I send the mail (with some 
modifies in the address) several times;
I apologyze if many mails are sended to the list.



Thanks for help...!
S.





In th file fileupload.php I call a function named uploadfile as shown in 
the follow code:
 





uploadfile($g_dir_corrente);





if (is_uploaded_file($HTTP_POST_FILES['userfile']['tmp_name']))
{
$nomefile=$HTTP_POST_FILES['userfile']['name'];





if(($nomefile!=.htaccess)($nomefile!=.ftpaccess)($nomefile!=.quota))
{  
copy($HTTP_POST_FILES['userfile']['tmp_name'],$g_dir_corrente/$nomefile);
messaggio(12); // show a message to users
echo br;
}
else
{
messaggio(13); // show a message to users
}
}





**





function uploadfile($g_dir_corrente)
{
$Upload_file=messaggioX(11); // show a message to users 
echo

form enctype=\multipart/form-data\ action=\fileupload.php\ 
method=\post\
input type=\hidden\ name=\MAX_FILE_SIZE\ value=\10\
$Upload_file input name=\userfile\ type=\file\
input type=\submit\ value=\Upload\
/form
;
}



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




Re: [PHP] Re: how to know upload progress status

2002-07-11 Thread S.

Thanks for informations,
I'll try to work on a different approach, maybe analyzing the dimension of the 
temporary file during upload (if it is possible identify the temporary file 
and monitoring it with another script).
Thanks for your help,

S.

Il 11:55, giovedì 11 luglio 2002, val petruchek ha scritto:
  I don't know how to extract informations about upload progress status and

 how

  to show informations to users. For example I want the users can see 30%
  of upload completed, or the MByte just uploaded.

 It's impossible.

 PHP script starts when file is 100% uploaded on the server.


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




Re: [PHP] Facing some problem with mySQL Installation

2002-07-25 Thread S.

Maybe it's a permission problem: if you read the installation procedure of 
MySQL, you can find that some file system permission modifies are required 
(you must modify the permissions of 2 or 3 file (or directories));
Have you chenged theese permission?

S.

Il 08:52, giovedì 25 luglio 2002, Manisha ha scritto:
 I know I should not ask this question - but as I am not getting prompt
 reply from mysql mailing list posting it here too - Just in case anybody
 knows about it

 
 I am trying to install the mySQL on our remote server thr putty (SSH).
 Following are the set of commands given by me,

 I have downloaded mysql-3.23 for BSDi.

 1)put into /usr/home/mysql-src directory and given following 2 commands
 going into
 shellcd  /usr/home/mysql-src
 shellgunzip mysql-.tar.gz
 shelltar xvf mysql-.tar

 This is creating the directory mysql-
 2)Config -

 shellcd  /usr/home/mysql-src/mysql-
 shell./configure -basedir=/usr/home/mysql -with-low-memory

 This command is giving me problem - saying - at the end
 shellStarting mysqld daemon with database from
 /usr/home/mysql-src/mysql-/data
 rm /tmp/mysql.sock - Operation not permitted
 mysqld end


 Can anybody help me in this matter - What is the meaning of it ?

 Thanks in advance and regards
 Manisha


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




[PHP] Homepage

2001-01-17 Thread S Bey

Just a small (and hopefully easy) question.

Is there a PHP equivalent of index.html? I want to be able to go straight
to a PHP script without the user specifying the filename.

Thanks, Steve.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Php, Apache, mysql - make error

2001-03-04 Thread S Jha

HI Gurus,

I am getting this error. I saw few posting for this error and found someone suggesting 
"-lz"
option in Makefile in LIBS option.
However, I didn't found this line in apache Makefile.
Also I tried other methods including reloading zlib, reconf mysql ..but in vain. 
Please help.
I did -
#SSL_BASE=../openssl-0.9.6 RSA_BASE=../rsaref-2.0/local ./configure  
--enable-module=ssl
--activate-module=src/modules/php4/libphp4.a --enable-module=php4 
--prefix=/usr/local/apache
--enable-shared=ssl

#make 

The error message was - 

/usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function `my_uncompress':
my_compress.o(.text+0x9a): undefined reference to `uncompress'
/usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function `my_compress_alloc':
my_compress.o(.text+0x12a): undefined reference to `compress'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/home/sjha/apache_1.3.17/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/home/sjha/apache_1.3.17'
make: *** [build] Error 2



Thanks,

SJ

=
Sanjeev Jha, Unix System Administrator

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] setting Check box

2001-03-27 Thread S. Efurd

This worked for me as well, and helped me with a problem I was having!

How would you show what option was selected in a drop down box. I have a
form the user fills out, this goes to a confirmation page to ensure the data
enetered is correct. I have a drop down box for states, and I cant seem to
make it show the state selected it always defaults to first choice?

Thanks




- Original Message -
From: "David Robley" [EMAIL PROTECTED]
To: "Peter Houchin" [EMAIL PROTECTED]; "Php-General@Lists. Php. Net"
[EMAIL PROTECTED]
Sent: Monday, March 26, 2001 11:37 PM
Subject: Re: [PHP] setting Check box


 On Tue, 27 Mar 2001 14:24, Peter Houchin wrote:
   Hiya can some one pls let me know if i am on the right track pls,
   this is in a form that updates if there is an id else it inserts,
   now what i want it if there is an id i want the check box to be
   either checked or unchecked depending on the 'y' / 'n' value in the
   db
 
 
 
   input type="checkbox" name="avail" value="" ? if ($avail == 'n')
   { echo 'SELECTED '; }?"
 
 
 
   Peter Houchin
 
 
 
   Try CHECKED for checkboxes - SELECTED works for dropdowns.
 
 
  ok I've changed it the SELECT to CHECKED but it had no effect ...
  input type="checkbox" name="avail" value="" ? if ($avail == 'n') {
  echo 'CHECKED'; }?
  I've also tried it with a "n" value  so it reads like
  input type="checkbox" name="avail" value="n" ? if ($avail == 'n') {
  echo 'CHECKED'; }? but that didn't have any luck either ... is there
  anything else i can do?
  Peter

 Well, this little snippet works for me...

 ?php
 $avail = 'n';
 ?

 FORM ACTION=check.php METHOD=GET
 input type="checkbox" name="avail" value="" ?php if ($avail == 'n')

 echo 'CHECKED'; }?
 INPUT TYPE=SUBMIT
 /FORM

 ?php
 if(isset($avail)) {
 echo "Value of AVAIL: $avail";
 }
 ?

 If you aren't getting the value you expect in $avail you may have
 problems.

 --
 David Robley| WEBMASTER  Mail List Admin
 RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
 AusEinet| http://auseinet.flinders.edu.au/
 Flinders University, ADELAIDE, SOUTH AUSTRALIA

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] setting Check box

2001-03-27 Thread S. Efurd

I thought about doing it this way, but repeating this 50 times seems a bit
ineffecient, perhaps i am looking for a shortcut that does not exist? I had
hoped I was missing something obivious.

Thanks
Steve

- Original Message -
From: "Peter Houchin" [EMAIL PROTECTED]
To: "S. Efurd" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, March 27, 2001 7:08 PM
Subject: RE: [PHP] setting Check box


 use
 SELECT NAME="foo" OPTION VALUE="bar" ? if ($areacode == 'bar') { echo
'SELECTED '; }?foo bar/OPTION

 Peter
 Ps thanks again David  Jason M  Phillip for your help :
 -Original Message-
 From: S. Efurd [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, March 28, 2001 10:48 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] setting Check box


 This worked for me as well, and helped me with a problem I was having!

 How would you show what option was selected in a drop down box. I have a
 form the user fills out, this goes to a confirmation page to ensure the
data
 enetered is correct. I have a drop down box for states, and I cant seem to
 make it show the state selected it always defaults to first choice?

 Thanks




 - Original Message -
 From: "David Robley" [EMAIL PROTECTED]
 To: "Peter Houchin" [EMAIL PROTECTED]; "Php-General@Lists. Php. Net"
 [EMAIL PROTECTED]
 Sent: Monday, March 26, 2001 11:37 PM
 Subject: Re: [PHP] setting Check box


  On Tue, 27 Mar 2001 14:24, Peter Houchin wrote:
Hiya can some one pls let me know if i am on the right track pls,
this is in a form that updates if there is an id else it inserts,
now what i want it if there is an id i want the check box to be
either checked or unchecked depending on the 'y' / 'n' value in the
db
  
  
  
input type="checkbox" name="avail" value="" ? if ($avail == 'n')
{ echo 'SELECTED '; }?"
  
  
  
Peter Houchin
  
  
  
Try CHECKED for checkboxes - SELECTED works for dropdowns.
  
  
   ok I've changed it the SELECT to CHECKED but it had no effect ...
   input type="checkbox" name="avail" value="" ? if ($avail == 'n') {
   echo 'CHECKED'; }?
   I've also tried it with a "n" value  so it reads like
   input type="checkbox" name="avail" value="n" ? if ($avail == 'n') {
   echo 'CHECKED'; }? but that didn't have any luck either ... is there
   anything else i can do?
   Peter
 
  Well, this little snippet works for me...
 
  ?php
  $avail = 'n';
  ?
 
  FORM ACTION=check.php METHOD=GET
  input type="checkbox" name="avail" value="" ?php if ($avail == 'n')

  echo 'CHECKED'; }?
  INPUT TYPE=SUBMIT
  /FORM
 
  ?php
  if(isset($avail)) {
  echo "Value of AVAIL: $avail";
  }
  ?
 
  If you aren't getting the value you expect in $avail you may have
  problems.
 
  --
  David Robley| WEBMASTER  Mail List Admin
  RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
  AusEinet| http://auseinet.flinders.edu.au/
  Flinders University, ADELAIDE, SOUTH AUSTRALIA
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] setting Check box - THANKS!

2001-03-27 Thread S. Efurd

Thanks, that did it.

Steve
- Original Message - 
From: "David Robley" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 27, 2001 7:58 PM
Subject: Re: [PHP] setting Check box


 On Wed, 28 Mar 2001 10:18, S. Efurd wrote:
  This worked for me as well, and helped me with a problem I was having!
 
  How would you show what option was selected in a drop down box. I have
  a form the user fills out, this goes to a confirmation page to ensure
  the data enetered is correct. I have a drop down box for states, and I
  cant seem to make it show the state selected it always defaults to
  first choice?
 
  Thanks
 
 I've built a function for displaying drop down lists: yours for free. Oh 
 look, Ive even bothered to comment it ;-) It will show selected item[s]
 
 Somebody will no doubt post improvements.
 
 ?php
 /* formDropDown - create an HTML SELECT
 * vars: $name - the form variable NAME
 *   $value - the SELECTED option which may be an array for multiple 
 selected items
 *   $labels - assoc. array, list of values=labels
 * $multiple - if non-empty, select multiple
 * $size - number of rows to show if multiple
 * returns: string, HTML (i.e. for use in echo or print statement) */
 
 function formDropDown($name,$value,$labels,$multiple = '',$size ='') {
   $html = 'SELECT NAME="' .$name . '"';
 if(!empty($multiple)) {
 $html .= ' MULTIPLE';
 }
 if(!empty($size)) {
 $html .= ' SIZE=' . $size;
 }
 
   $html .= "\n";
   $key = key($labels);
   while($key != "") {
   /* Check if the current value is in the $value variable */
 if(is_array($value)) {
 if(in_array($key,$value)) {
 $selected = ' SELECTED';
   } else {
 $selected = '';
   }
 } else {
   if ($key == $value) {
 $selected = ' SELECTED';
   } else {
 $selected = '';
   }
 }
 $html .= "OPTION VALUE=\"$key\"$selected$labels[$key]\n";
 next($labels);
 $key = key($labels);
   }
   $html .= "/SELECT\n";
   return $html;
 }
 ?
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] phpmyadmin blob blues

2001-12-28 Thread Paul S.

I had been using blob for a lot of mysql text fields, even email
address as well as other data. all of a sudden, it seems, instead of
seeing and editting these blob values in phpmyadmin (i currently have
2.2.2) tables all i see in the fields is [BLOB] and I am ubnable to
edit the fields.

Does anyone know what is going on?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] phpmyadmin blob blues

2001-12-28 Thread Paul S.

That is the one. Thanks. Diff than the previous phpmyadmin it appears, too.
I'll read through all those parms.


Bas Jobsen wrote:

 In config.inc.php:
 --
 // In browse mode...
 $cfgShowBlob  = FALSE;  // display blob field contents
 --
 Maybe put it on TRUE?

 Op vrijdag 28 december 2001 16:52, schreef Paul S.:
  I had been using blob for a lot of mysql text fields, even email
  address as well as other data. all of a sudden, it seems, instead of
  seeing and editting these blob values in phpmyadmin (i currently have
  2.2.2) tables all i see in the fields is [BLOB] and I am ubnable to
  edit the fields.
 
  Does anyone know what is going on?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] dot files in php directories

2001-12-28 Thread Paul S.

When reloading php software to new directories deleting the old dir is
often difficult because there is a dot file (often with a majic quotes
directrive) so directories aren't empty. I have to telnet to my main
account and use command line ftp to delete the (still invisible)
offending dot files. Then I can delete the dir with my standard ftp
client.

I know that I have seen unix systems where I can view/delete dot files
with an ftp client. Is that under my control (I have user unix access)
or system only control? It's linux/apache.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP Security - view source code

2002-01-21 Thread Sukumar S.

Dear all,

  One more measure thing to stop getting the source code with .inc 
is to deny the files which has inc extension in Apache httpd.conf itself
with DIRECTORY configuration.

with regards,
Sukumar .S

On Thu, 17 Jan 2002, Radu Filip wrote:

 Date: Thu, 17 Jan 2002 02:10:01 +0200 (EET)
 From: Radu Filip [EMAIL PROTECTED]
 To: [EMAIL PROTECTED] [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED] [EMAIL PROTECTED]
 Subject: Re: [PHP] PHP Security - view source code
 
 On Thu, 17 Jan 2002, [EMAIL PROTECTED] wrote:
 
  I've seen a number of sites for example that didn't have the .inc extension 
registered,
  include() doesn't care about that, but if your includes are under the document 
root of your
  website  (that happens a lot too, i don't know why ?) and you specify the exact 
name of
  the include in your browser (or worse, the directory is browsable from the web), 
the webserver
  will default to text/plain content and display the source. Bad thing since 
includes usually contain
  passwords and stuff.
 
 I agree with this, since I saw such mistakes wit my own eyes. IMHO, the
 best way to avoid this kind of problems is to:
 
 (1) avoid using .inc files; use .php files like for normal script
 (2) turn Indexes directive to off by default per website
 (3) make directories 711 instead of 755
 (4) develop an organized php scripts structure outside DocumentRoot and
 place the files that you will eventually include in an include
 sudirectory within that structure
 (5) review changes all the time, check your weblogs and be vigillent :-)
 
 Ave,
   Socrate
 
 -- 
 Radu Filip
Network Administrator @ Technical University of Iasi
 [EMAIL PROTECTED] Information Technology and Communication Center
 http://socrate.tuiasi.ro/  [EMAIL PROTECTED] | http://ccti.tuiasi.ro/
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 

--
A real friend is one who walks in when the rest of the world walks out
--


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] PHP-JavaScript

2002-01-21 Thread Sukumar S.


 You can store the data which is in JS to PHP when submiting the page.

From the Web Page which has the form, include some hidden type variables
in the html form. On submit call the JS function and store the JS Data
into the WEB form hidden variable and then submit it. so that your php
application which process the form would get the values. I think i
understood the question well...

with regards,
Sukumar .S

On Mon, 21 Jan 2002, Tim Ward wrote:

 Date: Mon, 21 Jan 2002 10:20:31 -
 From: Tim Ward [EMAIL PROTECTED]
 To: [iso-8859-1] Mårten Andersson [EMAIL PROTECTED],
  Richard Crawford [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: RE: [PHP] PHP-JavaScript
 
 Or get the JS to rewrite a query string in a link, but personally I wouldn't
 rely on JS that far.
 
 Tim
 www.chessish.com http://www.chessish.com 
 
   --
   From:  Richard Crawford [SMTP:[EMAIL PROTECTED]]
   Sent:  20 January 2002 23:32
   To:  Mårten Andersson
   Cc:  [EMAIL PROTECTED]
   Subject:  Re: [PHP] PHP-JavaScript
 
   In a word... No.
 
   Well...
 
   No.
 
 
   Mårten Andersson wrote:
 
Is it posible to get values from javascript to PHP? Without having
 to 
post the variables..

Thanks //Mårten

_
Chatta med vänner online, prova MSN Messenger:
 http://messenger.msn.se


 
 
 
   -- 
   Sliante,
   Richard S. Crawford
 
   mailto:[EMAIL PROTECTED] 
   http://www.mossroot.com
   AIM:  Buffalo2K   ICQ: 11646404  Yahoo!: rscrawford
   MSN:  [EMAIL PROTECTED]
 
   It is only with the heart that we see rightly; what is essential is
 
   invisible to the eye.  --Antoine de Saint Exupery
 
   Push the button, Max!
 
   
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 

--
A real friend is one who walks in when the rest of the world walks out
--


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Integer in PHP

2002-01-22 Thread Sukumar S.

Hi,

  Use intval(2.05);

  I hope this will do the needful for you.

with regards,
Sukumar .S


On Mon, 21 Jan 2002, Jerry wrote:

 Date: Mon, 21 Jan 2002 13:35:34 -
 From: Jerry [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: [PHP] Integer in PHP
 
 Hi,
 
 I'm new in PHP, coming from JavaScript.
 In JavaScript you had the function parseInt which was really useful.
 For example parseInt(2.05) will return 2...
 
 How can I do that in PHP ?
 
 Thanks.
 
 Jerry
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 

--
A real friend is one who walks in when the rest of the world walks out
--


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Passing. Which method to use?

2002-01-22 Thread Sukumar S.

Hi,
  I'm using sessions extremely to do that. 

with regards
Sukumar .S
On Tue, 22 Jan 2002, Floyd Baker wrote:

 Date: Tue, 22 Jan 2002 01:17:18 -0500
 From: Floyd Baker [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: [PHP] Passing.  Which method to use?  
 
 
 Hi once again.
 
 What's the consensus on the best way to pass arrays from page to page?
 
 By serializing?  But I think it's not recommended?
 
 By writing then reading to a text file?  Maybe?
 
 By inputting to and pulling from db records?  Possibilities?  
 
 Any other?  
 
 Thanks in advance.
 
 Floyd
 
 
 --
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 

--
A real friend is one who walks in when the rest of the world walks out
--


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Help! (How are sessions intended to work?)

2002-01-29 Thread Sukumar S.

Dear Adam,

Are you using 'realm' authentication setup?

with regards
Sukumar .S

On Tue, 29 Jan 2002, Adam wrote:

 Date: Tue, 29 Jan 2002 14:47:42 -0600
 From: Adam [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: [PHP] Help! (How are sessions intended to work?)
 
 My Setup Specs
 --
 
 PHP 4.1.1, MySQL 3.23.36,  Apache 1.3.19 with mod_auth_mysql on OpenBSD 
 3.0 (OS).
 
 Issue
 -
 
 Scenerio: User provides user_id and password. user_id and password are 
 checked against the database (MySQL). If authentication is true the a 
 session is started based on thier user_id. If autehentication is false 
 Error 403 is displayed to user.
 
 How do you destroy a session/user authentication so the user can not use 
 the browser back button? I have session_destroy() which seems to work 
 fine (deletes session files in /tmp) but when you press the browser back 
 button the exact session that was supposidly destroied is created again. 
 I've tried using unset() to reset variables but that doesn't seem to 
 work either. Any ideas... please epxplain this to me. I'm total lost why 
 this isn't working. BTW, I'm using cookies. Another question I would 
 have is.. to kill the cookie do I have to use set_cookie to remove the 
 cookie from the users browser or is this also destroied in the 
 session_destroy process? If it is suppose to be why is it not doing so?
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 

--
A real friend is one who walks in when the rest of the world walks out
--


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] php to open mail compose window

2002-03-02 Thread Paul S.

I thought that a simple php file email.php as follows:

?php
header(Location:mailto:[EMAIL PROTECTED];);
?

might open a compose window and circumvent those spam robots (the robots
that search web pages for email addresses for spam lists).

1) If this worked (a href=./email.php) then WOULD spam robots be
circumvented?

2) It does work in NS 4.78. Opera gives an invalid address message.
IE5.something opens the compose mail window but the web page it was
called from goes blank. Thus it is too inconsistent to use.

Any way to fix this?

Any way to accomplish circumventing spam robots and opening a mail
compose window?



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




[PHP] undefined variable when using if ($var) {}

2002-03-25 Thread Martha S

I'm rather new to PHP, so this should be fairly easy to answer. I checked
the manual and FAQ already.

I'm using the following code, and I get the following message if $id has
nothing in the var (i have it set to a default of  type int, not null in
mysql). Is there a way around this or something I'm missing?

Thanks :)

-- code---

if ($id) {

   $result = mysql_query(SELECT * FROM entries WHERE id=$id,$db);

   $myrow = mysql_fetch_array($result);

   printf(table border=1tr\n);
   printf(trtd%s/td/tr, $myrow[title]);
   printf(trtd%s | , $myrow[id]);
   printf(%s/td/tr, $myrow[posted]);
   printf(trtd%s\n/td/tr, $myrow[post]);
   printf(/tabletr\n);

   printf(a href=\$PHP_SELF\all/a);

   } else {

do {

printf(%s a href=\%s?id=%s\%s/abr\n, $myrow[id], $PHP_SELF,
$myrow[id], $myrow[title], $myrow[post]);

  } while ($myrow = mysql_fetch_array($result));

} else {

  // no records to display

  echo Sorry, no records were found!;

}




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




[PHP] Re: Login displays the pass and user in url

2002-03-25 Thread Martha S

You have to add an extra tag into the form tag (method=post), it should
read as follows:

(form name=\login\ action=\$PHP_SELF\ method=post

David Orn Johannsson [EMAIL PROTECTED] wrote in message
003001c1d418$7126b3f0$6500640a@gandalf">news:003001c1d418$7126b3f0$6500640a@gandalf...
Can I some how prevent the browser from displayin
index.php?passwd=passuser=user in the url when I use this script I
wrote.

  ?php
if(!IsSet($stage)){
print(form name=\login\
action=\$PHP_SELF\);
print(input type=\hidden\
name=\stage\ value=\1\);
print(table);
print(trtd
class=\maintext\bNotendanafn:/b/tdtdinput
name=\check_username\ type=\text\/td/tr);
print(trtd
class=\maintext\bLykilorð:/b/tdtdinput name=\check_passwd\
type=\password\/td/tr);
print(tdnbsp;/tdtdinput
type=\submit\ value=\Skrá inn\/td/tr);
print(/table);
}
else{

include(db_connect.php);
$query = select id,
passwd, system from users where username = '$check_username';
$mysql_result =
mysql_query($query, $db);
$row =
mysql_fetch_row($mysql_result);

if((crypt($check_passwd,
'dominos') == $row[1])  (($system == 0 || $system == 1 ))){
$sid =
session_id();
$uid =
$row[0];
print(a
href=\news.php\[Fréttir]/abr);
print(a
href=\sms.php\[SMS - Auglýsingar]/abr);
}
else if($session ==
session_id()){
print(a
href=\news.php\[Fréttir]/abr);
print(a
href=\sms.php\[SMS - Auglýsingar]/abr);
}
else{
print(Þú
verður að skrá þig inn. a href=\index.php\[Skrá inn]/a);
}
}
  ?

 http://www.atom.is/ 
Davíð Örn Jóhannssson
Vefforritari

Atómstöðin hf.
Garðastræti 37
101 Reykjavík

sími: 595-3643
fax: 595-3649
 mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]
 http://www.atom.is/ http://www.atom.is






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




[PHP] WDDX

2002-04-13 Thread Stuart S

Hello List,
I want to use WDDX in PHP but I don't have access to the WDDX module.
Does anyone know if there is WDDX serializer/deserializer written in
PHP?
I've been working on one for about a day now, and it works pretty sweet.
I'm relatively new to PHP and don't trust using it in commercial
projects just yet.
So, if anyone knows of one please direct me to where I can find one.

Thanks in advance

Stuart Schoneveld
www.xs4all.nl/~stuartmx



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




Re: [PHP] Sablotron broken in 4.2.1 ?

2002-06-08 Thread William S.

Thank you for the feedback. Sablotron is running
fine now. Just had to do some modifications
with my *.xsl file.

Here is what I have going now with the
implementation:

http://213.84.71.105/

On Tue, Jun 04, 2002 at 10:57:45AM +1000, Tom Rogers wrote:
 hi
 I am using 4.2.1 and it works fine, I can't see your source code as web 
 servers don't show it by design :)
 But from the error message it can't find your class file. I used the code 
 below to test it.
 Tom
 
 
 $xsltproc = xslt_create();
 
 $html = xslt_process($xsltproc, 'news.xml', 'news.xsl');
 
 if (!$html) die('XSLT processing error: '.xslt_error($xsltproc));
 
 xslt_free($xsltproc);
 
 echo $html;
 
snip
-- 
Bill
Amsterdam, NL

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




[PHP] Running PHP script within stylesheet?

2002-06-09 Thread William S.

I am very new to PHP, Sablotron, XSLT, and MySql.
Right now I have created a web page that is the
result of a transformation (through php) of an
xsl and xml file.

What I would like to do is run a PHP script so
that the result is displayed within a table on my
web page. How do I do this? Here is an example:

$myvar = Hello World;
echo $myvar;

In which file do I put this script?
Here is a link to my page.

http://213.84.71.105/

This is just the first step in my learning process.
Ultimately, I would like to be able to query
a mysql database through a web interface.

Thank you,
-- 
Bill
Amsterdam, NL

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




[PHP] Running PHP script within stylesheet?

2002-06-10 Thread William S.

Sorry, perhaps I should have been a bit more specific.
Here is my *.php file. I want the hello world
script to output to the Right Menu table on
my web page: http://213.84.71.105/ .

?php
$xml = ./test.xml;
$xsl = ./test.xsl;

$_parser = xslt_create();
  
if( !$result = xslt_process(  $_parser,// resource xh
   $xml,// string xml
   $xsl,// string xsl
   NULL,// string result
   array(), // array arguments
   array()  // array parameters
 ) ) {
printf( Sablotron Error (%s): br /strong%s/strong,
xslt_errno($_parser), xslt_error($_parser) );
}
xslt_free($_parser); 
echo $result;
?
 
On Mon, Jun 10, 2002 at 02:23:21PM +0800, James wrote:
 It's quite easy to display a result within a table, here are two
 examples...

 ?php
   $myvar = Hello World;
 ?
 html
   body
   table
   tr
   td?= $myvar ?/td
   /tr
   /table
   /body
 /html

 ?= $var ? is the equivalent to ?php echo $var ?
snip

-- 
Bill
Amsterdam, NL

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




[PHP] Can a php script be placed within a stylesheet?

2002-06-10 Thread William S.

Can a php script be put within a stylesheet and
work properly? If so, how?

For instance, this script put inside an XSL
stylesheet file:

  ?php
  $myvar = Hello World;
  echo $myvar;
  ?

Then it is transformed into html via Sablotron.

-- 
Bill
Amsterdam, NL

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




[PHP] Stylesheet to query an xml file

2002-06-12 Thread William S.

I am looking for an example or an explanation
of how to set up a stylesheet so it will
enable a user to query content in an XML file.

For instance. Have an XML file with names and addresses
and the user would be able to search for a name and
get back a list of matches.

This would need to work with Sablotron, PHP,
and XSLT. I have seen examples of php scripts
inserted into html documents but none that
can deal with Sablotron doing the transformations.

-- 
Bill
Amsterdam, NL

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




[PHP] appending to XML file before closing tag

2002-06-25 Thread William S.

This works pretty well to append content to
an XML file. However, I need to keep the
closing tag where it belongs: at the end of
the file. This only appends to the end and
doesn't work.
 
I use ...
 
$myecho = Hello World;
$file_name = file.xml;
$file_pointer = fopen($file_name, a);
fwrite($file_pointer, $myecho);
fclose($file_pointer);
 
I know I need to introduce: fread() and fseek().
but not sure how to put it all together.
Anyone?

-- 
Bill
Amsterdam, NL

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




Re: [PHP] appending to XML file before closing tag

2002-06-25 Thread William S.

Yes, that worked. Nice and effective solution.
Thank you.

On Tue, Jun 25, 2002 at 09:51:21AM -0400, Erik Price wrote:
snip
 
 If you know for a fact that the ending tag for each file is consistent 
 and always that same tag, here's an idea.  Determine or specify the 
 length of the ending tag (in other words /html would be a length of 
 7 [characters]).  Now move your file pointer to (file's total 
 characters - length) so that it is immediately before the ending tag.  
 Append your data, then manually append the ending tag.
 
snip
-- 
Bill
Amsterdam, NL

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




[PHP] gdlib list or galleries?

2002-06-27 Thread William S.

Is there a mailing list just dedicated to gdlib
or any places that show a gallery with examples?
I would be interested in seeing examples
of images that are complex/artistic and beyond
simple rectangles and boxes.

-- 
Bill
Amsterdam, NL

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




[PHP] imageellipse not working with gdlib2.0

2002-06-30 Thread William S.

Maybe I am just doing it incorrectly but I am unable
to get anything displayed with imageellipse in
gdlib2.0.

Can anyone give me a simple php script to test it
with? I am using php with Sablotron.

Thank you.
-- 
Bill
Amsterdam, NL

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




Re: [PHP] svg graphics and php : is it possible

2002-07-03 Thread William S.

Perhaps this relates to the original question as an additional
feature.

What would be the best way to offer SVG content from the
main opening page? Since SVG requires a browser that has
the approprite plugin or a dedicated browser, is it better
to create a hyperlink or maybe have the SVG capability
detected and content redirected automatically.

Another question. What is the best and lightest way
to offer SVG content from the server side? Java seems
real slow and resource hungry at sites I visit that use
it.

On Wed, Jul 03, 2002 at 12:39:21PM +1000, Justin French wrote:
 If you output the right headers, then output the file (by either passing
 thru an existing file or building a file), then it should work
 although I have no experience with exactly what you want -- only with MP3s,
 images, etc.
 
 Justin French
 
 
 on 01/07/02 7:52 PM, Herve le Martret ([EMAIL PROTECTED]) wrote:
 
  Hello,
  
  I am interested in creating svg graphics with php like creating a image with
  gd.
  I tried a PHP script with :
  
  header (Content-type: image/xml+svg);
  
  but I don't know how to output correctly svg lines.
  
  It is not possible to ouput svg lines with the print command and a command
  like
  imagesvg($im); does'nt exit.
  

-- 
Bill
Amsterdam, NL

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




[PHP] using xsl:value-of select within form

2002-07-03 Thread William S.

I am able to do this:

xsl:for-each select=alot of stuff
form name=myform action = http:path to somewhere.php 
method=post
input  type=submit name=insert value=Boston//form
/xsl:for-each

But would like to do something like this:

xsl:for-each select=alot of stuff
form name=myform action = http:path to somewhere.php 
method=post
input  type=submit name=insert value=xsl:value-of 
select=.///form
/xsl:for-each

I know the latter does not work, so how do I correct it?

Thank you,
-- 
Bill
Amsterdam, NL

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




[PHP] html entry within XML database

2002-07-13 Thread William S.

I am experimenting with using an XML file as a
database. One of the things I do is provide
a way of adding records to the database by an
html form.

This seems to work out well so far unless one
of the fields in a record contains an html
reference. The result is a Sablotron parse error.

What is the best way around this? Should I
validate the form before it is submitted so that
html references are rejected? How would I do this?

-- 
Bill
Amsterdam, NL

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




[PHP] select multiple within for-each

2002-07-15 Thread William S.

This works OK with creating buttons but is not what I want.
POST/INPUT

xsl:for-each select=. . . 
xsl:sort/

form
xsl:attribute name=namemyform/xsl:attribute
xsl:attribute name=actionlist.php/xsl:attribute
xsl:attribute name=methodpost/xsl:attribute
input
xsl:attribute name=typesubmit/xsl:attribute
xsl:attribute name=nameinsert/xsl:attribute
xsl:attribute name=valuexsl:value-of 
select=.//xsl:attribute
/input
/form
/xsl:for-each

***This is what I would like to do but it does _not_ work and is wrong.***
POST/SELECT MULTIPLE

xsl:for-each select=. . . 
xsl:sort/

form
xsl:attribute name=namemyform/xsl:attribute
xsl:attribute name=actionlist.php/xsl:attribute
xsl:attribute name=methodpost/xsl:attribute
select
xsl:attribute name=multiple/xsl:attribute
xsl:attribute name=nameinsert/xsl:attribute
option
xsl:attribute name=valuexsl:value-of 
select=.//xsl:attribute
xsl:value-of select=./
/option
/select
/form
/xsl:for-each

So how do I get a select-multiple form to work this way?

-- 
Bill
Amsterdam, NL

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




Re: [PHP] select multiple within for-each (SOLVED)

2002-07-15 Thread William S.

Please disregard the previous posting I made. I figured it
out.

On Mon, Jul 15, 2002 at 10:52:23AM +0200, William S. wrote:
 This works OK with creating buttons but is not what I want.
 POST/INPUT
 
   xsl:for-each select=. . . 
   xsl:sort/
 
   form
   xsl:attribute name=namemyform/xsl:attribute
snip

-- 
Bill
Amsterdam, NL

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




[PHP] Segmentation fault with Sablotron xslt_process()

2002-07-17 Thread William S.

I am getting random Segmentation faults when I use
the following script. This does not happen when I run
scripts that do not include the xslt_process()
So I am assuming it has something to do with Sablotron and xslt.
Below is also the back trace with the problem.
Can anyone suggest a solution or next step?


?php 
$xml = ./file.xml;
$xsl = ./file.xsl;
ob_start();

$_parser = xslt_create(); 

if( !$result = xslt_process(  $_parser,// resource xh
   $xml,// string xml
   $xsl// string xsl
 ) ) {
printf( Sablotron Error (%s): br /strong%s/strong, 
xslt_errno($_parser), xslt_error($_parser) );
}
ob_end_clean();
xslt_free($_parser);
echo $result;
?

Starting program: /usr/sbin/httpd -X

Program received signal SIGSEGV, Segmentation fault.
__libc_free (mem=0x2) at malloc.c:3135
3135malloc.c: No such file or directory.
in malloc.c
(gdb) bt
#0  __libc_free (mem=0x2) at malloc.c:3135
#1  0x0808a177 in hashTableDestroy ()
#2  0x080890c2 in XML_ErrorString ()
#3  0x080833ea in XML_ParserFree ()
#4  0x4040fd29 in TreeConstructer::parseDataLineUsingExpat (this=0xbfffdcc4, 
S=@0x81202d0,
t=0x8132990, d=0x8131fc0, base_=0x0) at parser.cpp:149
#5  0x40432767 in Tree::parse (this=0x8132990, S=@0x81202d0, d=0x8131fc0) at 
tree.cpp:1373
#6  0x40416328 in Processor::addLineParse (this=0x8120348, S=@0x81202d0, 
newTree=@0x8120348,
absolute=@0xbfffdda0, isXSL=0, ignoreErr=0) at proc.cpp:573
#7  0x404168d2 in Processor::readTreeFromURI (this=0x8120348, S=@0x81202d0, 
newTree=@0x8120348,
location=@0xbfffde40, base=@0xbfffde28, isXSL=0, ignoreErr=0) at proc.cpp:621
#8  0x4041482d in Processor::open (this=0x8120348, S=@0x81202d0,
sheetURI=0x810ba6c ./aaindex.xsl, inputURI=0x810b994 ./aanews.xml) at 
proc.cpp:303
#9  0x4041e5d7 in SablotRunProcessor (processor_=0x8120348, sheetURI=0x810ba6c 
./aaindex.xsl,
inputURI=0x810b994 ./aanews.xml, resultURI=0x40374da3 arg:/_result, params=0x0,
arguments=0x0) at sablot.cpp:450
#10 0x4034813b in zif_xslt_process (ht=3, return_value=0x81207ec, this_ptr=0x0,
return_value_used=1) at sablot.c:512
#11 0x4026e047 in execute (op_array=0x81121dc) at ./zend_execute.c:1598
#12 0x4027f994 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at zend.c:810
#13 0x40292f35 in php_execute_script (primary_file=0xb4e8) at main.c:1381
#14 0x4028d600 in apache_php_module_main (r=0x8109544, display_source_mode=0) at 
sapi_apache.c:90
#15 0x4028e538 in send_php (r=0x8109544, display_source_mode=0,
filename=0x8109c4c /var/www/htdocs/index.php) at mod_php4.c:575
#16 0x4028e5bb in send_parsed_php (r=0x8109544) at mod_php4.c:590
#17 0x08055439 in ap_invoke_handler ()
#18 0x0806b0cf in ap_some_auth_required ()
#19 0x0806b536 in ap_internal_redirect ()
#20 0x401d1daa in handle_dir () from /usr/libexec/mod_dir.so
#21 0x08055439 in ap_invoke_handler ()
#22 0x0806b0cf in ap_some_auth_required ()
#23 0x0806b136 in ap_process_request ()
#24 0x08061ae6 in ap_child_terminate ()
#25 0x08061cc5 in ap_child_terminate ()
#26 0x08061e3c in ap_child_terminate ()
#27 0x080624cd in ap_child_terminate ()
#28 0x08062d5c in main ()
#29 0x4009217d in __libc_start_main (main=0x8062998 main, argc=2, ubp_av=0xba04,
init=0x804f348 _init, fini=0x809adc0 _fini, rtld_fini=0x4000a534 _dl_fini,
stack_end=0xb9fc) at ../sysdeps/generic/libc-start.c:129
(gdb)


-- 
Bill
Amsterdam, NL

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




[PHP] Re: $HTTP_SERVER_VARS not accessible in Functions (fwd)

2002-07-22 Thread Sukumar .S



What is your PHP Version ?

Try putting the 

   global $HTTP_SERVER_VARS;
   print_r($HTTP_SERVER_VARS);

in your custom function  and check out what is it printing...

-S. Sukumar


 I'm trying to access some settings in the $HTTP_SERVER_VARS[] array, but,
 within a custom function() this array appears empty. In the calling script,
 however, the $HTTP_SERVER_VARS[] array is defined.
 
 I thought this was supposed to be superglobal and available on every
 level? If not, is there another command I can use? I also tried $_SERVER[]
 but this appears to be always empty no matter what level I call it on.
 
 Thanks.
 
 Monty
 
 
 .
 
 



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




[PHP] accessing raw post data

2002-04-15 Thread Stuart S

I'm trying to access data sent to PHP script via POST. But I can't seem
to find any documentation on how to do this. Only $HTTP_POST_VARS, but
that's not what I want.
Anyone know how?
Thanks

Stuart Schoneveld
www.xs4all.nl/~stuartmx



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




[PHP] Sablotron broken in 4.2.1 ?

2002-06-03 Thread William S.

Is Sablotron broken in 4.2.1 because none
of the transformations have worked that
I have tried.

I am using:

php 4.2.1
apache_1.3.24
expat-1.95.2

my files are:

'wget http://213.84.71.105/news.xml'
'wget http://213.84.71.105/news.xsl'
'wget http://213.84.71.105/news.php'

If someone could tell me what to correct to
make it right I would appreciate it.

Note: Please disregard the content. It is copied
from a site that I knew to be using XML with Sablotron
and is not mine.

-- 
Bill
Amsterdam, NL

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




[PHP] Re: pg_pconnect() question

2002-07-26 Thread Sukumar .S

Hi,

  This is error is coming to you bcoz you have given IDENT as the 
authentication type in your pg_hba.conf file.  Check out this file,
whether you have enabled IDENT as your auth type. If so configure
appropriately users for IDENT authentication.

   For simplicity and for testing purpose, you can just give trust
for localhost and try whether you are able to connect to postgresql or 
not.

-S. Sukumar


 I am trying to connect to postgre_sql database using
 pg_pconnect(). When I try to run it i get the
 following error
 Warning: Unable to connect to PostgreSQL server: FATAL
 1: IDENT authentication failed for user postgres in
 /var/www/html/test.php on line 3
 connection failed 
 
 Please tell me what might be the reason.
 -Varsha
 
 __
 Do You Yahoo!?
 Yahoo! Health - Feel better, live better
 http://health.yahoo.com
 .
 
 


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




[PHP] Unix vs PC test for server

2001-08-16 Thread Paul S.

I design a website on a PC, and upload it to UNIX. Of course, there are
always one or two variables that I have to keep track of as to
whetherteh server is UNIX or PC. There MUST be a simple way to test

if (the OS is Windows) {
 $siteurl = http:// www.website.com/ ;
 $mysqlpasswordfilelocation =  ... outsideroot.txt ;
}else{
 $siteurl = http://127.0.0.1/;;
 $mysqlpasswordfilelocation =  ...outsideroot.txt  ;
}

???


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHP within .html files

2001-08-16 Thread Paul S.

My UNIX apache server that I host from seems to be preset to execute PHP
code within html docs. That is, a php require statement within a .html
file is included, executed,  and sent to the browser.

Is this unusual? or standard? I ask because I would hope not to become
dependent on including php code in html docs and have them switch a
server setting back.

Of course, if that happens I guess I could rename my files from .html
to .php. But I really prefer to just having .html appear in the
browser URL bar.




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] pdflib+pdi

2001-08-21 Thread Jonathan S

Hi,
we recently purchased the whole PDFlib+PDI package, however I've been
having trouble installing it.
Many of the different installation instructions i've found have told me
contradictory things.
I have tried using both the binary distribution aswell as the source.
After many rounds of recompiling and testing different options I'm
getting kinda beat.

Can anyone please instruct me on how to get PDFlib and PDI working on my
machine. I need it urgently
for a project. What configure options, what tarballs and what files to
copy between source directories.

I'm using Redhat Linux 7.1

Any help is GREATLY appreciated.
Sincerely Jonathan Svensson / Sweden



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] COM

2001-08-21 Thread Paul S.

I heard refs on using the COM interface to access MS Word files.

Is this a procedure an interface that only works on Windows systems (as
that is where Word runs)?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] php chat or customer support center

2001-05-08 Thread Black S.

We have all seen these one-on-one chat systems placed on sites like home.com
and others. You can click on a button and chat live with a customer service
agent. Does anyone know if a PHP based system like this exists? If not, what
are your recommendations for such a system? Java?

Thanks All,
Blake S.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHP Not Working

2001-06-29 Thread Black S.

Very strange situation, PHP Version 4.0.3 on one of my production web
servers has started to loose different functionality?? The OS is
Apache/1.3.12 (Unix) (Red Hat/Linux 6.2) PHP/4.0.3 mod_perl/1.21, PHP was
compiled as a module with apxs. The strange thing is, some virtual host
directories have some of the things other Virtual host directories don't
have or quite working. It started with the include() function not working
and has now moved to the mail() function not working. Has anyone
excperienced similiar problems or know of a fix??

Thanks,

Blake



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Function No Longer works

2001-06-29 Thread Black S.

I have found the problem with my previous post and PHP functions no longer
working. It seems the code:

include(http://www.domain.com/path/to/file.txt;);

no longer works? If I type in a complete directory path then it works great,
but no Internet include, any one know why?

Thanks



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] libexec/lobphp4.so: undefined symbol:uncompress

2001-02-17 Thread S Jha

Hi All,

I saw similar error questions posted on phpbuilder etc but didn get exact answer about 
cause
of this error. 

I have RedHat 6.2 with Apache 1.3.17, MySQL 3.23.33 and Php 4.0.4pl1. 

I am getting the above error mentioned in subject while trying to start Apache. Any 
idea ?

Thanks,

SJ


=
Sanjeev Jha, Unix System Administrator

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Generating percentages of numbers

2001-02-21 Thread Blake S.

I have a database of numbers:

TOTAL HITS: 1000
PAGE 1: 500
PAGE 2: 250
PAGE 3: 250

How can I query these numbers and display back a percentage number? For
instance with the numbers above:

PAGE 1: 50%
PAGE 2: 25%
PAGE 3: 25%

Or is their a process by which to store numbers for easily getting this to
work?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Is their a function for this?

2001-04-04 Thread Black S.

Basically I have array variables, lets say:
---
$folder[0] = "basic";
$folder[1] = "standard";
$folder[2] = "knowledge";

Fruther down in the code:
---
$totalsub_basic = "10";
$totalsub_standard = "24";
$totalsub_knowledge = "12";

Everything runs fine until "$total_count" how do I take the value of
$folder[$i], lets say "standard" append that to "totalsub" and get the value
of "$totalsub_standard"?
---
$i = 0;
while($i  $level_0_links) {
echo "First While Loop";

if (ereg("^/$folder[$i]?", $PHP_SELF)) {
  $a = 0;
  $total_count = (eval("$totalsub_$folder[$i]")); ---
  while ($a  $total_count) {
  echo "$a";
  $i++;
  }
}

$i++;
}

Thanks Everyone!




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] how to display photos of the day?

2008-01-29 Thread jeffry s
sorry if this question sound stupid.
i need a good, simple and efficient function to display lets say photo of
the day.

i have a mysql table contain data about 1000 rows. i want to display any of
the photos randomly
and it is fixed for one day.

anyone know how to write the function that return a fixed table id for the
day?


[PHP] how to make multiple website on one host

2008-02-02 Thread jeffry s
i am wondering whether this can be done. i know it can.
is it possible to make one website with the ability to host multiple
website.
it is something like website generator. eg: www.shopify.org

let say for example i have a website www.example.org.
i can point a domain name (www.example1.org) to the server where
www.example.org hosted,
and when user visit www.example1.org, it execute the same scripts as
www.example.org with
with different themes and website configuration.

anyone have the idea?

thanks


Re: [PHP] how to make multiple website on one host

2008-02-03 Thread jeffry s
On Feb 4, 2008 3:33 AM, Feris Thia C. [EMAIL PROTECTED] wrote:

 Yes you can.

 Just mirror the additional domains and in your PHP app check the
 $_SERVER[HTTP_HOST] variable.

 Hope this helps !

 Regards,

 Feris
 http://top-10.bigspacehosting.com


 On Feb 3, 2008 2:20 PM, jeffry s [EMAIL PROTECTED] wrote:

  i am wondering whether this can be done. i know it can.
  is it possible to make one website with the ability to host multiple
  website.
  it is something like website generator. eg: www.shopify.org
 
  let say for example i have a website www.example.org.
  i can point a domain name (www.example1.org) to the server where
  www.example.org hosted,
  and when user visit www.example1.org, it execute the same scripts as
  www.example.org with
  with different themes and website configuration.
 
  anyone have the idea?
 
  thanks
 


great help, thanks you all.. =)


Re: [PHP] how to make multiple website on one host

2008-02-03 Thread jeffry s
can you tell me more about mod_rewrite?


On Feb 4, 2008 10:52 AM, Richard Lynch [EMAIL PROTECTED] wrote:



 On Sun, February 3, 2008 1:20 am, jeffry s wrote:
  i am wondering whether this can be done. i know it can.
  is it possible to make one website with the ability to host multiple
  website.
  it is something like website generator. eg: www.shopify.org
 
  let say for example i have a website www.example.org.
  i can point a domain name (www.example1.org) to the server where
  www.example.org hosted,
  and when user visit www.example1.org, it execute the same scripts as
  www.example.org with
  with different themes and website configuration.

 switch($_SERVER['HTTP_HOST'])){
  case 'example1.org': load('example1'); break;
  case 'example.org': load('example'); break;
 }

 You should also consider playing games with Apache mod_rewrite

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




[PHP] insert text with no specific format into database table

2008-02-25 Thread jeffry s
i have text file and a table created with

create table word(
id int not null auto_increment primary key,
word varchar(50),
definition text
)

the text contain list of words but not really in specific format

word, some text definition
word, some text definition, some text definition, etc


i want to read the file line by line,
take the first word before comma (,) and insert into the word column in the
database
whatever after follow the first comma(,) will be inserted into the
definition column in the word table database.

i am not sure how to read the file line by line in php.
and how to separate the line of  text into two. divided by the 1st comma (,)
..
my idea is using the explode(',' $text) function. but this one will separate
everything between a comma(,) into an array.
i wan't to know if there is another better way to do it..


any idea?
thank you!


Re: [PHP] Re: insert text with no specific format into database table

2008-02-26 Thread jeffry s
thank you all.
it is a great help..

On Tue, Feb 26, 2008 at 1:15 AM, Shawn McKenzie [EMAIL PROTECTED]
wrote:

 Shawn McKenzie wrote:
  jeffry s wrote:
  i have text file and a table created with
 
  create table word(
  id int not null auto_increment primary key,
  word varchar(50),
  definition text
  )
 
  the text contain list of words but not really in specific format
 
  word, some text definition
  word, some text definition, some text definition, etc
 
 
  i want to read the file line by line,
  take the first word before comma (,) and insert into the word column in
 the
  database
  whatever after follow the first comma(,) will be inserted into the
  definition column in the word table database.
 
  i am not sure how to read the file line by line in php.
  and how to separate the line of  text into two. divided by the 1st
 comma (,)
  ..
  my idea is using the explode(',' $text) function. but this one will
 separate
  everything between a comma(,) into an array.
  i wan't to know if there is another better way to do it..
 
 
  any idea?
  thank you!
 
 
  Read about the file() function and also read about the explode()
  function's limit parameter.
 
  -Shawn
 
 
  if(($lines = file(file.txt))) {
  foreach($lines as $line) {
  list($word, $definition) = explode($line, ',', 1);
  //insert word and definition SQL stuff here
  }
  }

 Maybe I should read up on the limit parameter also :-0

 list($word, $definition) = explode($line, ',', 2);

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




Re: [PHP] Sending SMS via PHP

2008-02-26 Thread jeffry s
i wonder how kannel.org work?
do i need the specific device. i need the sim card form the phone company
provider right?

On Thu, Feb 21, 2008 at 4:18 PM, Per Jessen [EMAIL PROTECTED] wrote:

 Paul Scott wrote:

  What you need to do is ask yourself whether you are going to do high
  volume SMS or not, and look at when do the commercial providers become
  more economical? What a lot of people do, is sign up for an account
  and end up sending only 50 or so SMS a month, which is silly, when for
  the same price as a month or two's subscription, you could buy your
  own GSM modem and a prepaid SIM card and do it for half the price
  yourself.

 Or use sms_client and only pay per individual SMS.  No subscription
 needed.


 /Per Jessen, Zürich

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




[PHP] save image in database vs folder

2008-03-11 Thread jeffry s
some friend of mine ague about this matter, this morning. they say, saving
image in
database is more professional. I am not really agree with that,since i am
just a novice programmer. i am asking
senior php programmer what you opinion about this?

which one is better. save in database or in folder?


Re: [PHP] save image in database vs folder

2008-03-11 Thread jeffry s
thanks Richard ..
sorry dev.. i don't know this subject is quite sensitive here :(

 I think I'm gonna dive into the archives then. To see for myself what
 left such a scars upon that subject.

i guess, i have to prepare my oxygen tank to dive into the archives.
i am quite curious to find out what  happen about this..


On Tue, Mar 11, 2008 at 7:18 PM, Richard Heyes [EMAIL PROTECTED] wrote:

  some friend of mine ague about this matter, this morning. they say,
 saving
  image in
  database is more professional. I am not really agree with that,since i
 am
  just a novice programmer.

 Well, bearing in mind I only have experience of MySQL, the general
 consensus is to save it to a file on you hard drive and store the file
 name in the database. If for whatever reason you can't or don't want to
 do that, then at least store it in a separate table that only gets
 touched when the image is requested.

 --
 Richard Heyes
 Employ me:
 http://www.phpguru.org/cv



[PHP] weird. iceweasel crash my laptop after i use costum sessions

2007-06-11 Thread jeffry s

i am using my laptop with PHP 4+ and mysql 5+, everything start to be weird
after i implement my costume sessions (storing in database).
i only use one database connection for the whole website.
what i mean is, the session and every query connect to mysqlserver using the
same user.

I am not sure if it is because of the sessions. but it happen after i use
costume sessions.

if i make a SQL query with non existant column name eg: noe

SELECT * FROM test WHERE noe=1;

Suddenly, if i use top to monitor process on my laptop i saw the processor
usage for the mysqld and firefox-bin(iceweasel) increasing.
Icewasel will continue to consume processor usage to 100% and memory up to
80% all the time.

Worst still, the mouse, keyboard do not work anymore. My laptop very-very
slow until i cannot move my mouse cursor at all..

there is no way i can go except turn off the laptop power.

I don't know what the problem is this. but, i think there is something to do
with the sessions. And it related to PHP or may be problem with Iceweasel.
I will try to ask debian mailing list for this.

In case anyone experience the same thing. please let me know how you fix it.


[PHP] Hi. I need your help here

2007-06-24 Thread J S
Hi. I came across your contact info at php.zend.com and was hoping you could 
help me out with this question.
  I recently installed Rubberwall10, a free software that protects from 
hotlinking and although I managed to installed the software correctly at my 
site, I came across the fact that when I tried to download an image from the 
site to my computer, the image came out with 0 kbs.
   
  Someone who also installed the software made a comment on the internet 
stating he solved the problem adding a trim function to three of the variables 
in the filescrapper.php file. 
   
  My question to you is, how can I do that. I am not familiar with php, 
although I have understood some minimal basics. Adding trim function to $ct, 
$webaddress and $wantedfilename seemed to have solved the problem according to 
the user who solved the problem but did not specify how he did it. Can you tell 
me how I can add trim function to the above three variables?. Your help is 
greatly appreciated. The code is below. Thanks. John
  /***
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***/
$allowed = 0;
include('config.php');
  if($allowblank  0) { if($_SERVER['HTTP_REFERER']==) { $allowed = 1; }}
  $domains = count($alloweddomains);
  for($y=0;$y$domains+1;$y++) {
 if((stristr($_SERVER['HTTP_REFERER'], $alloweddomains[$y]))) { $allowed = 1;}
}
  if($allowed  0) {
  $namenumberarray = file($webaddress.fileindex.txt);
  $numberoffiles = count($namenumberarray);
  $filenames = array();
  
  for($x=0;$x$numberoffiles+1;$x++) {
   $temporary = explode(:,$namenumberarray[$x]);
   $tempname = explode(\n,$temporary[1]);
   $filenames[$temporary[0]] = $tempname[0];
  }
  
  if(!isset($filenames[$_GET['serve']])) { 
   if($logging  0){
$status = ReqNF;
include('logit.php');
   }
   echo('That number wasnt found!');
   exit;
  }
  
  $wantedfilename = $filenames[$_GET['serve']];
  
  
  $extension = explode(., $wantedfilename);
  $numberinarray = count($extension);
  
  $lcext = strtolower($extension[$numberinarray-1]);
  
  //BEGIN CONTENT TYPES BLOCK. ADD OR REMOVE FILE TYPES HERE, AS SHOWN //
  //DON'T EDIT THIS UNLESS YOU KNOW WHAT YOU ARE DOING!//
  //MOST COMMON FILE TYPES ARE ALREADY INCLUDED//
  
  switch($lcext) {
   case ($lcext == swf): 
$commonname=flash; 
$ct = Content-type: application/x-shockwave-flash;
   break;
   case ($lcext == wmv): 
$commonname=wmv; 
$ct = Content-type: video/x-ms-wmv;
   break;
   case ($lcext == mov): 
$commonname=quicktime movie; 
$ct = Content-type: video/quicktime;
   break;
   case ($lcext == avi): 
$commonname=avi video; 
$ct = Content-type: video/avi;
   break;
   case ($lcext == rar): 
$commonname=winrar; 
$ct = Content-type: application/octet-stream;
   break;
   case ($lcext == zip): 
$commonname=zip; 
$ct = Content-type: application/octet-stream;
   break;
   case ($lcext == bmp): 
$commonname=bitmap; 
$ct = Content-type: image/bmp;
   break;
   case ($lcext == gif): 
$commonname=gif; 
$ct = Content-type: image/gif;
   break;
   case ($lcext == jpeg || $lcext == jpg || $lcext == jpe): 
$commonname=jpeg; 
$ct = Content-type: image/jpeg;
   break;
   case ($lcext == mpeg || $lcext == mpg || $lcext == mpe): 
$commonname=mpeg; 
$ct = Content-type: video/mpeg;
   break;
   case ($lcext == png): 
$commonname=png; 
$ct = Content-type: image/png;
   break;
   
   //END//
   
   default: 
$commonname=Generic Filetype; 
$ct = Content-type: application/octet-stream;

if($logging  0){
 $status = Generic_Filetype;
 include('logit.php');
}
   
  }
  
  $handle = fopen($webaddress.$wantedfilename, rb);
  header(Cache-Control: ); //keeps ie happy
  header(Pragma: ); //keeps ie happy
  header($ct); //content type as set above from explode();
  
  if(!stristr($lcext, swf)){//flash plays, it isnt downloaded as an 
actual file.
   header(Content-Disposition: attachment; 
filename=\.$wantedfilename.\);
  }
  
  header(Content-Length: .filesize($path.$wantedfilename));
  
  fpassthru($handle);
  if($logging  0){
   $status = Granted;
   include('logit.php');
  }
  exit;
}
  else {
 if($logging  

[PHP] generate letter combination..

2007-06-26 Thread jeffry s

i made a mistake when i say i can solve this problem to a friend.
finally i realize it is not as simple as i appear to be.

what he ask me to do is write a simple script that, given a word.. the
script will generate a list of words combinaton
from the each character in in that word. i am tired thinking.

to make it clear. i give a simple scenario. i don't have an idea what i
should name my baby.
so, i took my wife  name and me and input to the script.(i want a name that
is from our name combination).

later the output will present many words that i can choose.

the input string can be of any length.

anyone have an idea?


[PHP] forms usage in web pages

2006-10-29 Thread Karthi S

hi,

i am newbie to web programming. i have a basic doubt in using forms.

Is it advisable to use multiple forms performing various functions in a
single web page.
what are the pros and cons of using that.

Please forgive me if this is not the right mailing list to post this
question. But help me out in clarifying this basic doubt.

thanks in advance

Karthi


Re: [PHP] General use of rewrite / redirect

2008-03-18 Thread jeffry s
On Tue, Mar 18, 2008 at 9:22 PM, Aschwin Wesselius [EMAIL PROTECTED]
wrote:

 Per Jessen wrote:
  Yes, that's a very typical setup.  When the form is processed, you send
  a 303 redirect to the Thank you page.  That way, if the user hits
  the back arrow, he's taken back to the form URL, not the post URL.
  (which would then warn him about re-submitting etc.)
 
 Ok, fine. But why do a real redirect when a header with 303 could be
 sufficient? If you model good enough, there would not be a need for
 header(location) redirects. Or am I wrong?
  What is your opinion about (ab)using rewrites / redirects? Do you use
  it quick and dirty, or is it some elegant way of controlling flow?
 
  I think there are plenty of perfectly valid reasons for using a
  redirect, whether dynamically from php or via an apache config.
  And undoubtedly there equally many poor reason for using redirect and/or
  rewrite.  (they're very different things, by the way).
 I know they're different things. I only want to start a discussion so
 people do understand other techniques instead of just using whatever
 'works' as a solution to their problem with flow. Redirects do solve
 some issues, but they should be avoided whenever possible.

 header(location) mechanisms do come with a very huge disadvantage if you
 don't use them with caution. Requests are reinitialised, libraries
 loaded (again), DB connections setup/checked again, session lookups are
 being done, log write for another request etc. That's quite an impact
 for just not knowing what to do with flow. So, if you know what you want
 to handle (control) and what you want the user to see (view), one should
 be able to model it without the use of redirects unless it really is
 needed.

 Or is it OK, to redirect and 'simplify' the flow?
 --

 Aschwin Wesselius

 /'What you would like to be done to you, do that to the other'/


i am sorry.. but i don't get what u really want to say. honestly, i don't
see any other way
(better alternative) to avoid people to simply refresh the browser to submit
the form
many time.

Requests are reinitialised, libraries
loaded (again), DB connections setup/checked again, session lookups are
being done, log write for another request etc.

i don't see anything wrong with this since that is the way it is. whether
you redirect or
not, the script will do DB connection, session lookup anyway. i simply
called exit;
to stop execution after the header redirect..

sorry.. if i misunderstand your point. but that is just my opinion..


Re: [PHP] Fastest way to get table records' number

2008-03-19 Thread jeffry s
On Wed, Mar 19, 2008 at 10:57 PM, Andrew Ballard [EMAIL PROTECTED] wrote:

 On Wed, Mar 19, 2008 at 10:53 AM, tedd [EMAIL PROTECTED] wrote:

 
 
 
  At 10:35 AM -0400 3/19/08, Nathan Nobbe wrote:
  On Wed, Mar 19, 2008 at 9:42 AM, Andrew Ballard [EMAIL PROTECTED]
 wrote:
  
That works; I'm just wondering why you went with a count on an 'ID'
 column
rather than COUNT(*).
  
  
  ouch, it looks like im horribly wrong :O
  mysql select count(*) from table;
  +--+
  | count(*) |
  +--+
  |   361724 |
  +--+
  1 row in set (0.90 sec)
  
  mysql select count(id) from table;
  ++
  | count(did) |
  ++
  | 361724 |
  ++
  1 row in set (4.56 sec)
  
  -nathan
 
  That surprised me as well.
 
  I thought that (*) meant look up everything and would have figured
  that (id) would have been quicker.
 
 

 You generally want to explicitly specify column names rather than
 using SELECT *, because it returns everything even if you don't need
 it. But for aggregate COUNT, I'm not surprised by the results Nathan
 got.

 Andrew

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


what about SELECT MAX(id) FROM table :)


[PHP] selling gpl software?

2008-03-19 Thread jeffry s
i know it is forbidden to sell open source software.

let say i have costumer want me to modified an open source php script.
i have the right to charge him the service to modified  the software.

but this costumer ask me to do one thing against the gpl software.
he want me to remove all the link and powered by link (anything visible to
the end user)

what should i do to satisfy my costumer without making myself against
the spirit of open source community?


Re: [PHP] Re: selling gpl software?

2008-03-19 Thread jeffry s
On Thu, Mar 20, 2008 at 1:02 AM, Daniel Brown [EMAIL PROTECTED] wrote:

 On Wed, Mar 19, 2008 at 12:55 PM, Colin Guthrie [EMAIL PROTECTED]
 wrote:
 
   IANAL so apologies if I've gotten anything wrong here.

 Yes, we know you're anal.  ;-P

In all seriousness, looks like you got it all right.  +1 for you
 (and a gold star)!

 --
 /Daniel P. Brown
 Forensic Services, Senior Unix Engineer
 1+ (570-) 362-0283

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


well, i am quite surprised with you all feedback.
then it is ok to remove all the link as part of modification then as long
as the source code available to the client (it is php script anyway)

forgive me for my stupidness. i am quite confuse with law thing
and gpl, gplv2 and gplv3 or gnu proven hard for me to understand.
anyone can point me a comparison between all this?

a simple explanation easy for baby to digest.. :)


Re: [PHP] Re: selling gpl software?

2008-03-19 Thread jeffry s
On Thu, Mar 20, 2008 at 1:19 AM, Daniel Brown [EMAIL PROTECTED] wrote:

 On Wed, Mar 19, 2008 at 1:13 PM, jeffry s [EMAIL PROTECTED] wrote:
 
  forgive me for my stupidness. i am quite confuse with law thing
  and gpl, gplv2 and gplv3 or gnu proven hard for me to understand.
  anyone can point me a comparison between all this?

 GPL is the (GNU) General Public License.

GPLv2/GPLv3 are the second/third versions, containing
 modifications, ratifications, and clarifications.  There may be some
 other ifications in there that I'm forgetting as well.

GNU is a recursive acronym (as PHP now is for PHP Hypertext
 Preprocessor).  It stands for GNU's Not Unix, and is an operating
 system.  It's often confused with the organization from which it
 receives primary focus (and shares the founder: Richard Stallman),
 known as the FSF - the Free Software Foundation.

  a simple explanation easy for baby to digest.. :)

 Now go get burped and have Mommy change your diaper.  ;-P

 --
 /Daniel P. Brown
 Forensic Services, Senior Unix Engineer
 1+ (570-) 362-0283


what is the difference between gpl, gplv2 and gplv3 ?

actually.. baby is a name of a monkey. sure it doesnt need a diaper... :p


Re: [PHP] Re: algorithm of pages beaking

2008-03-19 Thread jeffry s
On Thu, Mar 20, 2008 at 7:35 AM, George J [EMAIL PROTECTED]
wrote:

 Hi,

 I'm trying to resolve an issue with a pagination routine. Sounds like
 we're
 working on a similar routine. I have a query returning products from a
 database and then display the results in a defined number of products per
 page.

 Checkout - 'Newbie question, Which way is best?' in this newsgroup.

 George




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

 i  have spent some time to figure it out last time. i did create a simple
function to do it
total - is the total record. can be output of SELECT COUNT(*) FROM table
offset - is the current offset.

//display pages
function pages($total, $offset, $perpage)
   {
   if($total == 0) return;

   $total_pages = floor($total / $perpage);
   $current_page = floor($offset / $perpage);

   $pg = '';
   for($i = 0; $i = $total_pages; $i++)
   {
   $pg .= a class='page_nav' href='?p=.($i *
$perpage).'.($i + 1)./a;
}

return $pg;
}

i am afraid this one look too simple. but you can see how the basis work.
this one simply print 1, 2, 3 etc..


[PHP] Comparing file creating dates...

2008-03-22 Thread Ryan S
Hey all,

Heres what i am trying to do:

When someone sends a message from my site, i take their ip address and make a 
file with their ip address in a directory called hash-directory, the file 
looks like this: 169.34.534.243.txt

I want to make sure they cant send too many messages because of the potential 
to spam, so I want to limit them to sending a message every X number of 
minutes... heres what i have written (its not working for some damn reason)

# Start PHP file 

if(isset($_SERVER['REMOTE_ADDR']))
{$rem_address=$_SERVER['REMOTE_ADDR'];}

$directory_with_files=hash-directory/;
$threshold = strtotime('-2 minutes');

echo File created on: b.$rem_address ..txt - . date(F d Y H:i:s., 
filectime($directory_with_files.$rem_address..txt)). 
.$file_time_details[0]./bbrbr;

if (file_exists($directory_with_files.$rem_address..txt)) 
{

if (getdate(filectime($directory_with_files.$rem_address..txt))  
$threshold)
{echo bPlease wait more than 1 minute before posting./bbr;}
else{echo bEnough time has elapsed./bbr;}
}

# END PHP file 


Where am I going wrong?

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




  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

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



Re: [PHP] Re: optimilize web page loading

2008-03-27 Thread jeffry s
On Thu, Mar 27, 2008 at 7:28 AM, Al [EMAIL PROTECTED] wrote:

 Depends on the server and it's load.  I've strung together some rather
 large html strings and they
 aways take far less time than the transient time on the internet. I used
 to use OB extensively until
 one day I took the time to measure the difference. I don't recall the
 numbers; but, I do recall it
 was not worth the slight extra trouble to use OB.

 Now, I simple assemble by html strings with $report .= foo; And then
 echo $report at the end. It
 also makes the code very easy to read and follow.

 Andrew Ballard wrote:
  On Wed, Mar 26, 2008 at 1:18 PM, Al [EMAIL PROTECTED] wrote:
  You are really asking an HTML question, if you think about it.
 
   At the PHP level, either use output buffering or assemble all your
 html string as a variable and
   then echo it.  The goal is to compress the string into the minimum
 number of packets.
 
  Yes, but do so smartly. Excessive string concatenation can slow things
  down as well. On most pages you probably won't notice much difference,
  but I have seen instances where the difference was painfully obvious.
 
  Andrew

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


I am  also doing the same way. assemble the string and echo it at the end


Re: [PHP] new lines in textareas?

2008-03-30 Thread jeffry s
On Sun, Mar 30, 2008 at 2:07 PM, TG [EMAIL PROTECTED] wrote:


 Is \n included literally because you're using single quotes for the
 variable?

 $textdata = 'This is a test\nThis is the second line';

 vs...

 $textarea = This is a test\nThis is the second line;

 I would guess a lot of the pages you find are talking about what to do
 with
 the text after submitting through the textarea, not re-displaying with
 proper breaks when loading a page containing a text area that should have
 data.

 -TG

 - Original Message -
 From: Mary Anderson [EMAIL PROTECTED]
 To: php-general@lists.php.net
 Date: Sat, 29 Mar 2008 21:26:24 -0700
 Subject: [PHP] new lines in textareas?

  Hi all,
  I have a php script which produces text which is to be displayed in
  a textarea.  I have the wrap for the text area set to 'hard'.  I need to
  have newlines inserted in the text.
   \n and br don't work.  They just get quoted literally in the
  text.  I suspect I need to use htmlspecialchars , but don't know what
  special character to feed it.
 
   Apologies if this should go to an HTML forum.  I checked several
  archives and did not find anything useful.  (They tended to tell me to
  put in \n or br!)
 
   Thanks
 
  Mary Anderson


my client ask me about this problem 2 weeks ago. he want the text to
automatically
go to new line after user type until the end of the line. The only possible
solutions so
far is using wrap='hard' or wrap='soft'
eg: textarea cols=10 rows=10 wrap=hard
but wrap only work on IE  Netscape browser. Not working in firefox.
i guess i want to use javascript to do the text formatting. trigger the
javascript event
every time the user using the onchange event (i never try)..
i is quite complicated  i dont have much time working on it.
so i decided to tell him, it cannot be done :)


Re: [PHP] new lines in textareas?

2008-03-30 Thread jeffry s
On Mon, Mar 31, 2008 at 12:40 AM, Paul Scott [EMAIL PROTECTED] wrote:


 On Sun, 2008-03-30 at 12:29 -0400, tedd wrote:
  At 9:26 PM -0700 3/29/08, Mary Anderson wrote:
  Hi all,
  I have a php script which produces text which is to be displayed
  in a textarea.  I have the wrap for the text area set to 'hard'.  I
  need to have newlines inserted in the text.
   \n and br don't work.  They just get quoted literally in
  the text.  I suspect I need to use htmlspecialchars , but don't know
  what special character to feed it.
  

 Only getting to this now, but doesn't nl2br() do what you 
 want?http://www.php.net/unsub.php


well, i don't think nl2br() is  a solution here because nl2br() only replace
the '\n' with
br/ html tags which is displayed inside the textarea. the textarea will
display a new
line with '\n'..

$str = hello\nworld;
will display

hello
world

in text area. but

$st = 'hello\nworld'.

will be display as

hello\nworld

just like what TG trying to say..


[PHP] dynamic boxes problem... JS and PHP

2008-04-08 Thread Ryan S
Hey everyone,

A bit of a puzzle here, dont know if this is a JS problem or PHP or FF or  
just me.

(My money is on the last one :p )


Here's what I am trying to do:
In a form  I have a listbox with the values 1-5, and under the listbox i have a 
TD with the id of recips (like so: TD id='recips

I have a onChange event linked to the list box and depending on what number the 
client picks it should dynamically put the number of text boxes there, here is 
the JS code:

/ ### Start JS code 
function change_no_of_recipients()
{
var 
nr=document.mainform.no_of_friends.options[document.mainform.no_of_friends.selectedIndex].value;

if(nr5){nr=5;} // max number of recipients
var msg = ;

for (var x = 1; x = nr; x++)
   {
   msg += 'table width=50% border=0 cellspacing=2 cellpadding=2' +
  'tr' +
'td nowrap=nowrap'+ x +'. Recipient\'s name:/td' +
'tdinput type=text name=rec_name[] id=rec_name[] //td' +
'td nowrap=nowrapRecipient\'s email:/td' +
'tdinput type=text name=rec_email[] id=rec_email[] //td' +
  '/tr' +
'tr' +
'/table';
   }

document.getElementById('recips').innerHTML=msg;
}

/ # End JS code 

So far on the page everything is working, but when I click the submit button 
this is my PHP processing script:

?php
print_r($_REQUEST);
?


It shows me everything that has been submitted but NOT any of the above 
dynamically made boxes values... but get this, it DOES show me all values... in 
IE7 _not_ in FF (am using 2.0.0.13)

Anybody else face anything like this?
Is this a bug in FF? Is $_REQUEST wrong to catch this? 
Dont know what the @#$@ to do... ANY help even a link to a site which can shed 
a little light would be appreciated.

Thanks in advance.

/Ryan



  

You rock. That's why Blockbuster's offering you one month of Blockbuster Total 
Access, No Cost.  
http://tc.deals.yahoo.com/tc/blockbuster/text5.com

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



Re: [PHP] dynamic boxes problem... JS and PHP

2008-04-08 Thread Ryan S
Hi Guys,
Thanks for responding, will try to answer everyone in the same order.

Mark W:

Thanks for replying!

 Since I'm relatively new to PHP I could be off on this, but I'd say yes, 
 $_REQUEST is wrong. I would think you'd want to use $_POST to receive 
 the incoming values from a form.


$_REQUEST should work in this case (i think) as it works kind of like a catch 
all
While $_POST just catches POST and $_GET just catches GET...  $_REQUEST catches 
all requests be it get,post,cookie etc
for testing I always use $_REQUEST.

Andrew:
Thanks for replying!

 I think in this case $_REQUEST and $_POST should both get you what you
 want. I'm wondering whether your javascript is inserting the form
 fields within the correct FORM/FORM tags.

Yep, it is correct, further down I will post the URL so you can check it out if 
you want.

 Also, FWIW, I doubt it has anything to do with your problem but you
 are assigning the same value for ID each time through the loop. The ID
 attribute is supposed to be unique for each element on the page.

Tried changing it, no luck.

Pete F:
Thanks for replying!

 1. Check that the Javascript is doing what you expect: you *are* using 
 Firebug 
 on Firefox, aren't you?  Also the WebDeveloper toolbar plugin is useful - it 
 has 
 a View Generated Source tool which will show you what Firefox thinks your 
 page 
 actually looks like after the JS has run...

Dont have either of them dont know how to use them actually, but will have 
a look after this email. I did hear of firebug though not the other one.

 2. Check that the TD you are loading with content is actually inside the 
 FORM 
 tags - otherwise the inputs won't be included in the request/post variables...

Yep, checked that. IE is getting it... FF is not. Which is really strange as IE 
is usually the bit*h that usually throws weird errors and results.

Daniel,
Thanks for replying!

Ryan, would it be possible for you to send an actual link to the
   page in question?  You'll probably wind up with some better feedback
with a real-world test in this particular case.

Didnt want to bloat my post and take up extra time from the people who reply, 
but looks like posting links is the best option so will do:

http://www.coinpass.com/test/step2.php (to run the script)
http://www.coinpass.com/test/step2.phps (View the source, its just a html file 
really)
All Javascript and CSS is in the http://www.coinpass.com/test/scripts/; 
directory

The processing script just has
print_r($_REQUEST);
so its useless pointing you to the actual file source.

Jim L,
Thanks for replying!

 Show us the actual output of the print_r() call above.

Would be easier if you click on the top link/s and just click the submit button


Cheers!
R






  

You rock. That's why Blockbuster's offering you one month of Blockbuster Total 
Access, No Cost.  
http://tc.deals.yahoo.com/tc/blockbuster/text5.com

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



Re: [PHP] dynamic boxes problem... JS and PHP

2008-04-08 Thread Ryan S
Hey!
Thanks Andrew, will look into those points that you sent me.

First thing to change will be the DOCTYPE I think, as i didht type that but 
must have copied code into a pre-made page...

Cheers!
R

- Original Message 
From: Andrew Ballard [EMAIL PROTECTED]
To: PHP General list php-general@lists.php.net
Sent: Tuesday, April 8, 2008 11:18:36 PM
Subject: Re: [PHP] dynamic boxes problem... JS and PHP

On Tue, Apr 8, 2008 at 3:51 PM, Ryan S [EMAIL PROTECTED] wrote:
 Hi Guys,
[snip]
  Andrew:
  Thanks for replying!

[snip]
   Also, FWIW, I doubt it has anything to do with your problem but you
   are assigning the same value for ID each time through the loop. The ID
   attribute is supposed to be unique for each element on the page.

  Tried changing it, no luck.

I didn't expect it to fix anything related to the problem you posted,
but it is something that should be fixed.


I looked at the HTML source (since I think that's where your problem
is). The problem is that you have FORM tags nested inside your table
between two rows:

  /trform action=process_ecard1.php method=post name=mainform
  tr

While your nesting is correct insofar as making sure that your FORM,
TABLE, TR and TD tags don't cross each other, the FORM tag
can't be there. I see why you've done it that way - you have another
form nested inside a cell within the same table (you can't nest one
form within another), and your second form needs to span more than one
cell or row. You need to rethink your page flow and layout so that it
uses valid HTML structure. I don't know if you can combine both forms
into one or if you need to split the table apart.

FWIW, while validating the above solution I found an extra (empty and
unclosed) TR tag inside the recipient table which prompted me to run
your HTML through the W3C validator. It found 19 errors that keep it
from validating as XHTML strict as specified in your DOCTYPE. Most of
these won't cause major problems, but the 6th error reported is the
cause of the problem you're having: document type does not allow
element 'form' here.

Andrew

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






  

You rock. That's why Blockbuster's offering you one month of Blockbuster Total 
Access, No Cost.  
http://tc.deals.yahoo.com/tc/blockbuster/text5.com

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



Re: [PHP] dynamic boxes problem... JS and PHP

2008-04-08 Thread Ryan S


Hello Bitter,
(so is that Bitter Andrew or Bitter Brown? :-)   )

Thanks for the little titbit of request code, have saved it and will certainly 
use it.
Lets see how the next version is, they promised to make the new IE stick closer 
to the standards.

Cheers!
R


On Tue, Apr 8, 2008 at 6:20 PM, Ryan S [EMAIL PROTECTED] wrote:
 Hey!
  Thanks Andrew, will look into those points that you sent me.

  First thing to change will be the DOCTYPE I think, as i didht type that but 
 must have copied code into a pre-made page...

One thing I learned when screwing around with AJAX is that it,
like nearly everything that occurs in nature, must be customized to
play nicely with Microsoft things.  Call me bitter.  No, seriously, it
could be my new nickname.

script language=JavaScript
//Gets the browser specific XmlHttpRequest Object
function getXmlHttpRequestObject() {
  if (window.XMLHttpRequest) {
return new XMLHttpRequest();
  } else if(window.ActiveXObject) {
return new ActiveXObject(Microsoft.XMLHTTP);
  } else {
document.getElementById('p_status').innerHTML = 'Status: Cound not
create XmlHttpRequest Object.  Consider upgrading your browser.';
  }
}
/script

It's something I had to use when playing around with a chat script
I was building a while ago:
http://pilotpig.net/gchat/

-- 
/Daniel P. Brown
Ask me about:
Dedicated servers starting @ $59.99/mo., VPS starting @ $19.99/mo.,
and shared hosting starting @ $2.50/mo.
Unmanaged, managed, and fully-managed!





  

You rock. That's why Blockbuster's offering you one month of Blockbuster Total 
Access, No Cost.  
http://tc.deals.yahoo.com/tc/blockbuster/text5.com





  

You rock. That's why Blockbuster's offering you one month of Blockbuster Total 
Access, No Cost.  
http://tc.deals.yahoo.com/tc/blockbuster/text5.com

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



Re: [PHP] dynamic boxes problem... JS and PHP

2008-04-08 Thread Ryan S
Hello Bitter,
(so is that Bitter Andrew or Bitter Brown? :-)   )

Thanks for the little titbit of request code, have saved it and will certainly 
use it.
Lets see how the next version is, they promised to make the new IE stick closer 
to the standards.

Cheers!
R


On Tue, Apr 8, 2008 at 6:20 PM, Ryan S [EMAIL PROTECTED] wrote:
 Hey!
  Thanks Andrew, will look into those points that you sent me.

  First thing to change will be the DOCTYPE I think, as i didht type that but 
 must have copied code into a pre-made page...

One thing I learned when screwing around with AJAX is that it,
like nearly everything that occurs in nature, must be customized to
play nicely with Microsoft things.  Call me bitter.  No, seriously, it
could be my new nickname.

script language=JavaScript
//Gets the browser specific XmlHttpRequest Object
function getXmlHttpRequestObject() {
  if (window.XMLHttpRequest) {
return new XMLHttpRequest();
  } else if(window.ActiveXObject) {
return new ActiveXObject(Microsoft.XMLHTTP);
  } else {
document.getElementById('p_status').innerHTML = 'Status: Cound not
create XmlHttpRequest Object.  Consider upgrading your browser.';
  }
}
/script

It's something I had to use when playing around with a chat script
I was building a while ago:
http://pilotpig.net/gchat/

-- 
/Daniel P. Brown
Ask me about:
Dedicated servers starting @ $59.99/mo., VPS starting @ $19.99/mo.,
and shared hosting starting @ $2.50/mo.
Unmanaged, managed, and fully-managed!





  

You rock. That's why Blockbuster's offering you one month of Blockbuster Total 
Access, No Cost.  
http://tc.deals.yahoo.com/tc/blockbuster/text5.com

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



Re: [PHP] dynamic boxes problem... JS and PHP

2008-04-09 Thread Ryan S
Hey Pete,


**
First, you should reply to the list - that way more people could see the links 
you posted and help out.
**
Oops, my mistake, I thought I did that. Will add a snip at the bottom of this 
email.

**
It looks like there may be a problem with the form tags - when I look at this 
code I see
form action=process_ecard1.php method=post name=mainform/form

That looks like you've closed your mainform before defining the inputs
**

can you tell me which line you see this? I did a search using that string on 
top and I couldnt find it... I even did a form search and still didnt find 
both of the form tags side by side..

Thanks again,
R

/// Snip of other mail with links ///
but looks like posting links is the best option so will do:

http://www.coinpass.com/test/step2.php (to run the script)
http://www.coinpass.com/test/step2.phps (View the source, its just a html file 
really)
All Javascript and CSS is in the http://www.coinpass.com/test/scripts/; 
directory

The processing script just has
print_r($_REQUEST);
so its useless pointing you to the actual file source.

/ End snip///




__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: [PHP] dynamic boxes problem... JS and PHP

2008-04-09 Thread Ryan S
Hey!

Thanks to you and everyone else who replied, I have fixed the problem by 
remaking the tables... 

 

 This is not really anything to do with PHP, of course... :)

:) True, in the end it was not. But in the beginning I couldnt figure out for 
the love of god why my PHP script was not getting the form values and 
variables... so thought it might be something to do with my script and PHP.

Thanks again!
/R




Peter Ford, Developer phone: 01580 89 fax: 01580 893399
Justcroft International Ltd.  www.justcroft.com
Justcroft House, High Street, Staplehurst, Kent   TN12 0AH   United Kingdom
Registered in England and Wales: 2297906
Registered office: Stag Gates House, 63/64 The Avenue, Southampton SO17 1XS

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

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: [PHP] dynamic boxes problem... JS and PHP

2008-04-09 Thread Ryan S
Hey Jim,

Yep, That was the problem fixed that and now everything works.

***
While we are on the topic of the form../form tags, just a side note.  
It 
is invalid HTML syntax to have any tag between your

tableILLEGALtrILLEGALtd
ok here
/tdILLEGAL/trILLEGAL/table

As a note: the only legal tag that I know of that can be placed in between the 
above tags is the caption tag.  oh and the thead, tbody, and tfoot tags.
***

Cheers!
R

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: [PHP] dynamic boxes problem... JS and PHP

2008-04-09 Thread Ryan S
Hey Bill,

Thanks for the tips, makes sense and will try to follow them.

Cheers!
R

*
Ryan,

Four observations:

1. Don't try to solve your problem by changing the DOCTYPE. Bad HTML is
bad HTML. Changing the DOCTYPE may reduce the severity of the problem,
but it won't solve it.

2. You have interpreted the fact that IE gave you what you expected while
FF did not as a problem with FF, but the opposite is true. A problem
with IE allowed it to accept HTML that it should not have accepted. FF
treated it properly.

3. Firebug is a free download from Mozilla. I have it and it has solved
more problems for me than I can remember. (Or, maybe I just don't have
a very good memory.) Get it. You will see your form... tags inside
the table  /table tags, but not inside any td.../td tags.

4. Learn to use the W3C Markup Validation service -
http://validator.w3.org/. It will point out many problems that you can
solve quickly.

  -= Bill =-
-- 

Murphy's Law Cardinal Conundrum -
The optimist believes we live in the best of all possible worlds.
The pessimist fears this is true.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



[PHP] Xampp question, pretty much 0T

2008-04-29 Thread Ryan S

 Hello!

I have been using XAMPP for quite some time now (thanks to the recommendations 
from this list) without any real complaints... 
and the only reason I am writing here is because i am sure a lot of you guys 
run the same thing considering the amount of people who recommended it to me 
when I asked for an easy install of AMP.
It was easy to install and has given me months of hassle free use... but today 
i have started facing some strange problems of everytime I start Apache... it 
crashes my laptop, anybody else run into this?
I use this only for PHP, no perl.

My config:
Win Vista home premium with all updates and patches (genuine, not pirate copy)
core2 duo 2ghz
2 gigs ram

Nothing installed today for it to be acting up so.

Do you suggest I reinstall? or can I just reinstall Apache in some way? If i 
have to reinstall is there an easy way of backing up my stuff and then 
reinstalling then putting my stuff back? (I know i can just copy the files that 
were in the htdocs... but am talking about an easy way to copy the files and 
the DBs and put them back... or is that just wishful thinking?

TIA,
Ryan




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




  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

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



Re: [PHP] Xampp question, pretty much 0T

2008-04-29 Thread Ryan S
 You could try their forums:

 http://www.apachefriends.org/f/?language=english



Thanks!
Just after I posted i started searching on google and found them, have joined 
and posted... no reply as yet... just the waiting game now i guess.

Main prob is I cant even get phpmyadmin running to copy the DBs to do a 
reinstall because PHPmyAdmin wont work... without apache of course.

After reading a bit I see that if I just copy the data directory in the mySql 
directory, I can restore it from there? any idea if I have that wrong?


Cheers!
R





  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

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



Re: [PHP] Xampp question, pretty much 0T

2008-04-30 Thread Ryan S
clip
 After reading a bit I see that if I just copy the data directory in the 
 mySql directory, I can restore it from there? any idea if I have that wrong?

Hmm I guess, but I'd take the safer road and open a console and run:

mysqldump.exe -u username -p --all-databases --add-drop-database --opt 
  mysql.database.dump

so you have an sql file you can restore if necessary.

Adjust paths/files/usernames/passwords as necessary.


/clip

Hey!
Thanks for replying.

I decided to try something else while waiting for a response (still nothing 
from the main XAMPP forums though) and this is what worked for me, am posting 
it here so maybe it will help someone else in future (via the archives) facing 
the same problems that I faced , I dont know if this is a temp fix, I dont 
think so and it works perfectly for now.

Downloaded XAMPP again, installed it in c:/xampp2 (original version was in 
c:/xampp)
copied over all the files needed from the htdocs to c:/xampp2's htdocs
in the MySql folder, go into the data folder and just copy the files with the 
DB names that you created, leave all other files alone, paste these files into 
the c:/xampp2/mysql/data folder... do not overwrite anything, and if you have 
done this correctly you should _not_ get the overwrite prompt
Go to xampp's security page and redo the security including putting the 
password for root.. 


I am a bit of a paranoid dude, so i did a complete backup of all myfiles in 
htdocs and the mySql data folder and burnt it to DVD, you might consider doing 
thesame...just in case.

Thats it! Remember to edit the paths in your scripts for those that need it 
from xampp to xampp2.
A slight hassle, but not one that cant be done in 3-10 mins including copy time.

Thanks again Chris for your replies to this thread.

Cheers!
R



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

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



Re: [PHP] Xampp question, pretty much 0T

2008-05-01 Thread Ryan S

/*
Top posting from my cell...

1.  Format hard drive
2. Install redhat fc8 or Ubuntu 8.04
3. Load the new MySQL installation with your backup file

If you really have to stay with windoze, remove and re-install apache.  Look at 
the system log files as they SHOULD tell you what was causing the crash.
*/

Hey Wolf,
Thanks for replying.

Would love to install Linux, problem is... dont know the first thing about it 
if things go wrong, I always wanted to learn what its all about but when I 
started to read up on it quickly got confused with all the different flavors 
out there... which one is right for me/ a total beginner? for every little 
thing I would probably have to join a linux list and post.. what about drivers 
for the bits and pieces of the laptop? what about software? most of the places 
I go to download software (freeware or shareware) is only for Win..
Would love to switch away from Win... but i think the OS guys will have to make 
it seem less of a mountain to climb to do so :(

Cheers!
R





  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

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



[PHP] Categories like wordpress

2008-05-01 Thread Ryan S
Hey!

Heres what i have to do, upload pics and each pic can be a part of x number of 
categores

for example:
A picture of a rose can be for birthday, as well as anniversary, or miss you, 
or love etc
exactly the same as how in wordpress an article can be in multiple categories 
like tech, current news, gadgets etc

Was wondering how to do this, and please tell me if I am on the wrong path but:
in the mysql db next to img name have a field called cate (or whatever for 
categories) and have a comma seperated list for each of the categories that the 
pic falls into and then do a mySql  LIKE '%$param%' search if the user wants 
'birthday'?

Is this how its done or am I barking up the wrong tree?

TIA
/R



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

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



Re: [PHP] Xampp question, pretty much 0T

2008-05-01 Thread Ryan S




 /*
 Top posting from my cell...

 1.  Format hard drive
 2. Install redhat fc8 or Ubuntu 8.04
 3. Load the new MySQL installation with your backup file

 If you really have to stay with windoze, remove and re-install  
 apache.  Look at the system log files as they SHOULD tell you what  
 was causing the crash.
 */

 Hey Wolf,
 Thanks for replying.

 Would love to install Linux, problem is... dont know the first thing  
 about it if things go wrong, I always wanted to learn what its all  
 about but when I started to read up on it quickly got confused with  
 all the different flavors out there... which one is right for me/ a  
 total beginner? for every little thing I would probably have to join  
 a linux list and post.. what about drivers for the bits and pieces  
 of the laptop? what about software? most of the places I go to  
 download software (freeware or shareware) is only for Win..
 Would love to switch away from Win... but i think the OS guys will  
 have to make it seem less of a mountain to climb to do so :(
reply
One option, I don't know what your budget is, but Apple's Macintosh OS  
X is basically a flavor of Unix (FreeBSD if I remember right) with a  
nice user interface on it.

You have the ability to dive into the commandline when you need to/ 
want to, but have the comfortable point/click user interface when you  
don't want to worry about it.

Just something else to think about... Oh... And there's no virii for  
the Mac :)

/reply


Cant afford a new comp or a new OS and as for your last statement:
http://www.sophos.com.au/pressoffice/news/articles/2006/02/macosxleap.html
_almost_ no virii for the Mac :)

Cheers!
R



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

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



Re: [PHP] Xampp question, pretty much 0T

2008-05-01 Thread Ryan S




 Cant afford a new comp or a new OS and as for your last statement:
 http://www.sophos.com.au/pressoffice/news/articles/2006/02/macosxleap.html
 _almost_ no virii for the Mac :)
/*
None that have effected my computers here at work, or at home. No anti- 
virus, no firewall's ;)

Oh and I'll take 1 over 97,467 anyday :)

http://www.macdailynews.com/index.php/weblog/comments/5393/
*/

Haha fair enough... but that will still leave you owning a Mac... will rather 
have the viruses than the shame! Plus you know nearly any software you download 
(shareware/freeware or even pirated) will support windows.. can you say the 
same for the Mac?
Anyway, lets not take this down the my daddy can beat up your daddy lane and 
make this into a Apple against M$ thread.

Cheers!
R



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

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



Re: [PHP] Categories like wordpress

2008-05-01 Thread Ryan S
Hey!
Thanks for replying guys!

clip

 1. Fully normalised, where you have three tables - one for your
   articles, one for your categories and a link table.

This is the route that I would suggest, it's the most flexible and  
fastest to query.

/clip

Anyone happen to have a little PHP code as an example here ( a little more than 
Brady gave me)? or links to where i can read up on this mySql and php side as I 
have never done anything like this before.

TIA,
R



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

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



Re: [PHP] Categories like wordpress

2008-05-01 Thread Ryan S

Hey,
Am not really used to using the JOIN in SQL so am a bit confused as to what 
kind of data I need to enter into this table:

image_category_mapping table:
- image_id
- category_id



for all of this to work... mind explaining a bit?

Thanks!
Ryan







  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

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



[PHP] Regex to catch ps

2008-05-05 Thread Ryan S

 Hey all!

To say I suck at regex is an understatement so really need any help I can get 
on this, I have a page of text with different html tags in them, but each 
block of text has a p or a  class=something tag... anybody have any 
regex that will catch each of these paragraphs and put then into an array
example:
array[0]=p first block /p;
array[1]=p class=blah  block X/p;

Thanks!
R




  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

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



Re: [PHP] Regex to catch ps

2008-05-05 Thread Ryan S


clip
  To say I suck at regex is an understatement so really need any help I can 
 get on this, I have a page of text with different html tags in them, but each 
 block of text has a p or a  class=something tag... anybody have any 
 regex that will catch each of these paragraphs and put then into an array


If you're using php5 you can use DOM's getElementsByTagName.

If you still think you need to do some sort of regex it is possible
but it will be buggy at best.


/clip

Nope, need a regex... guess I have no choice, either chancy regex or nothing... 
I know for a fact that the first paragraph tag wont contain a class, and for 
the p tags that contain a class=blah does it matter that i know exactly 
what the classname is?



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

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



Re: [PHP] Re: Re[PHP] gex to catch ps

2008-05-07 Thread Ryan S


 
Hey,

clip
$tag_regex=array(
  '/\p(\s*)\(.*?)\\/p\ /si' = $1,
  '/\(\s*)(*.?)class\=(*.?)\(.*?)\\/(*.?)\/si' = $3
);

$paragraphs=preg_replace(array_keys($tag_regex),array_values($tag_regex),$page);

I am not sure what tag is that you mean on class=something, but in this
RE .. it should capture any p tags (the first element of the array) and
any tags (the second element of the array) that has attribute class on it. 
 /clip

Thanks for replying!
Sorry, a bit of a typo there, i meant p class=something

I ran your regex but got this warning:
Warning:  preg_replace() [function.preg-replace]: Compilation failed: nothing 
to repeat at offset 8 in C:\xampp2\htdocs\ezee\tests\para_regex.php on line 25


I think I ran it wrong, because although i have passed $page i dont know where 
to pass the replacement texts...

Can you give me an example on how to run this or an explanation?

Thanks!
R



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

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



Re: [PHP] Regex to catch ps (weird result)

2008-05-07 Thread Ryan S
clip


preg_match_all('|p[^]*(.*)/p|Ui', $myText, $myArray);
/clip

Hey!

Thanks for replying.

Your preg_match_all works like a charm, but for some reason catches only 8 out 
of 9 paragraphs... its really weird. I have upped the test page to 
http://www.ezee.se/tests/para_regex2.php.txt  so you can have a look at it... 
didnt want to post such a lot of text to the list.

Thanks again,
R


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

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



Re: [PHP] Regex to catch ps (weird result)

2008-05-07 Thread Ryan S
clip
 http://www.ezee.se/tests/para_regex2.php.txt  

Yep, sorry...  Just add the s

preg_match_all('|p[^]*(.*)/p|Uis', $myText, $myArray);

/clip

Swett! It works!
If you _do get time_, would love to know the actual meaning of 
|p[^]*(.*)/p|Uis
because although I do appreciate the help and the code, am learning to work a 
bit with regex
and this is still quite advanced for me.
So far I have gotten (correct me if I am wrong)
|p[^]* = 1) Starts with p  2) can have anything between till the next  
3) end with 
(.*)/p| = 1) can have whatever inbetween till the end which is /p

Have no idea of the Uis switches...

Thanks again,
R



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

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



[PHP] Plugins... (like wordpress?)

2008-05-15 Thread Ryan S
Hey,

Have just started screwing around with wordpress and I must say... it has a lot 
of really really nice bits and pieces... two of my favourites are widgets and 
plugins... not a hundred percent certain exactly what the diff is though! :)

Anyway, was thinking it would be a great way to program for my next project... 
instead of jumping into the code again and again... write specific code and 
throw the file into the directory... then it either gets read and executed 
automatically or have a feature like WP where you have to activate it... only 
problem is, i dont know where to begin... i did do a little google searching 
and have a rough idea.. but would appreciate it if YOU could give me some links 
or code that got you started... something that was easy when you were 
beginning... something that lit that lightbulb in your head when you read it...

Thanks in advance!
R

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



  

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



[PHP] 0T - Request for quick test

2008-05-19 Thread Ryan S


 Hey guys,

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

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


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



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



  

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



Re: [PHP] 0T - Request for quick test

2008-05-20 Thread Ryan S
Hey Daniel B, Steve H and Thiago P,

Thanks for replying!

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

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

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

clip
Your JS for email verification is annoying :P

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

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


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

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

Cheers!
R

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


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

On Tue, May 20, 2008 at 12:01 AM, Ryan S [EMAIL PROTECTED] wrote:


  Hey guys,


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

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

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



  

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



  1   2   3   4   5   6   7   8   9   10   >