[PHP] Install problems

2001-07-19 Thread Chetan Ganpati

Hello,

I am trying to install PHP4 on a redhat 6.2 box.
I have got mysql-3.23-39 and apache-1.3.14-2.6.2
installed.
I did a 
./configure --prefix=/usr/local/php
--with-config-file-path=/usr/loca/php
--with-apxs=/usr/sbin/apxs
--with-mysql=/usr/local/mysql  --enable-track-vars
--enable-magic-quotes --enable-debugger

and then a make and make install

when i try to restart apache i get this error:-
Starting httpd: Syntax error on line 873 of
/etc/httpd/conf/httpd.conf:
Cannot load /etc/httpd/modules/libphp4.so into server:
/etc/httpd/modules/libphp
4.so: undefined symbol: uncompress

line 873 is this
LoadModule php4_modulemodules/libphp4.so and
the next is
AddModule mod_php4.c

Would be grateful if someone could help me
Thanks 
Chetan



__
Do You Yahoo!?
Get personalized email addresses from 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]




[PHP] Help! -- mail() is not supported in this php build

2001-07-19 Thread Jack Sasportas

This is the message I recieved on a box we just setup on RH7.1 and PHP,
compiled.
Any ideas ?

I do have the sendmail -t option in the php.ini file with the path.
Found 1 thread on phpbuilder with no resolve.

Any Help appreciated...


Thanks !

--
___
Jack Sasportas
Innovative Internet Solutions
Phone 305.665.2500
Fax 305.665.2551
www.innovativeinternet.com
www.web56.net



-- 
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] where does the visitor come from?

2001-07-19 Thread Emanuele De Fazio

Hi,

I call a script from an html page (for example "test.htm") in this way:


This script returns at the end an image, but before it takes and save to
a file
some informations like the visitor's ip and where he comes from
($refer=$HTTP_USER_AGENT).

My problem is that $refer gives me always "http:///test.htm";(that's
normal by the way)
which is the page who call the script with the "img" html tag.

What I want to have in $refer is the url of the page that contain the
link who has direct the
visitor in my page "test.htm" which will call then the script
myscript.php.

There is a way for do this?(I guess yes, but I find nothing about this)

Thanks


---
*Emanuele De Fazio*
Unix Administrator
SchlumbergerSema - Sema S.p.A.
Viale Carlo Viola, 76
11026  Pont Saint Martin (AO)
Italy

Phone: + 39.0125.810373
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] More upload Problems

2001-07-19 Thread Jason Rennie

Hi all,

It appears when i try to upload a file in a form, and pass it to php, it
never arrives.

I'm doing a POST from a  form, and i all but copied the example straight
from the php manual on file uploading.

But the $HTTP_POST_FILES[] array is never set, and is_uploaded_file always
returns false.

Has anybopdy else had a problem like this ???

I really am stumped here.

Could i have perhaps compiled php incorrectly ? Turning off a needed
switch perhaps ?

Jason


-- 
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] System() and PGP

2001-07-19 Thread Maxim Derkachev

Hello David,

Thursday, July 19, 2001, 8:48:17 AM, you wrote:

DP> I can use this command to encrypt messages:

DP> system("pgp -ea $plainTxt 'David Price <[EMAIL PROTECTED]>'");

DP> without any problems.  But when I try,

DP>  system("pgp");

DP> I don't get any output.  It should display the general help text.

It does. But it sends the output to STDERR, which PHP doesn't have access
to. If you do this with apache, the output will go straight to the
apache, omitting PHP, if from a shell with PHP executable, the lines go
to the shell's tty.



-- 
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
System administrator & programmer,
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
www.books.ru, www.symbol.ru 



-- 
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] NT Authentication

2001-07-19 Thread Taylor, Stewart

You can install an apache module which does this.
Then all you do is edit apache's httpd.conf file to say which directories
you want to be authenticated and information about your NT domain and backup
servers etc...
e.g.


Authname"Company Intranet Server"
AuthTypeBasic
Auth_SMBon
Auth_SMB_Authoritative  on
Auth_SMB_Server SERVER1
Auth_SMB_Backup SERVER2
Auth_SMB_Domain DOMAIN1
#had to modify code for multiple domain access
#Auth_SMB_Server1SERVER1a
#Auth_SMB_Backup1SERVER2a
#Auth_SMB_Domain1DOMAIN2
#Auth_SMB_Server2SERVER1b
#Auth_SMB_Backup2SERVER2b
#Auth_SMB_Domain2DOMAIN3
require valid-user


When a user tries to access an authenticated directory via their browser a
login prompt will be displayed, they will not be able to progress until they
have entered their correct NT username/password.  Once they do apache then
passes their NT username on to your app in the $REMOTE_USER global variable.



The module is located at:
http://guru.josefine.at/~mfischer/mod_auth_smb/



-Stewart



-Original Message-
From: Warren Vail [mailto:[EMAIL PROTECTED]]
Sent: 18 July 2001 15:23
To: [EMAIL PROTECTED]
Subject: [PHP] NT Authentication


I am running php4/mysql/apache in a large NT complex, behind a firewall.
How can I authenticate users to my site using NT authentication?  Has anyone
done this?

thanks,

Warren Vail


-- 
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] php logo

2001-07-19 Thread Alva Chew

hi everyone,

i would like to know if there is an official logo for php4 that i can put on
my company website, to show that we support and develop applications using
php4.

thanks and regards,
Alva Chew



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

2001-07-19 Thread Johan Holst Nielsen

> i would like to know if there is an official logo for php4 that i
> can put on
> my company website, to show that we support and develop applications using
> php4.

Ypou can use one of these:
http://www.php.net/download-logos.php

regards,

Johan


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

2001-07-19 Thread Daniel Rezny

Hello Alva,

Thursday, July 19, 2001, 10:24:09 AM, you wrote:

AC> hi everyone,

AC> i would like to know if there is an official logo for php4 that i can put on
AC> my company website, to show that we support and develop applications using
AC> php4.

AC> thanks and regards,
AC> Alva Chew


Try to search on a oficial php page.

www.php.net

-- 
Best regards,
 Danielmailto:[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] Re: Using Frames

2001-07-19 Thread James Holloway

Hi Mark,

yes it's possible, but with javascript rather than php Do a search on a
javascript related site for window.frames

James.

"Mark Lo" <[EMAIL PROTECTED]> wrote in message
000701c11021$c66111a0$caccfea9@Mark">news:000701c11021$c66111a0$caccfea9@Mark...
> Hi,
>
>  I would like to know how to make all three frames to move at the same
> time.  Actually is it possible ??
>
> Thanks
>
> Mark
>
>



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

2001-07-19 Thread Adrian D'Costa

Tried.  It gives only MULTIPART/MIXED; since that is what is stored in the
$buffer.  I need the $buffer to read everything from: 
 Content-Type: multipart/mixed;
  boundary="B42DA66C4EC07C9B572A58FC"
even if there is a break or a new line.

Adrian


On Wed, 18 Jul 2001, Ben Bleything wrote:

> Why don't you explode(";",$header); ??
> 
> Ben
> 
> -Original Message-
> From: Adrian D'Costa [mailto:[EMAIL PROTECTED]] 
> Sent: Saturday, July 14, 2001 2:54 AM
> To: php general list
> Subject: [PHP] REGEXP
> 
> Hi,
> 
> I am trying to capture the Header from a mail for my webmail using php
> and
> pop3.  The header is something like this:
> Content-Type: multipart/mixed;
>  boundary="B42DA66C4EC07C9B572A58FC"
> 
> When I use preg_split("/[\d;]*/", $buffer), I get
> Content-Type: multipart/mixed;
> 
> What I want is to return the whole line split by the ";".  I usually try
> to avoid regexp (too lazy) but now I want to use it.  The final result I
> would need is: B42DA66C4EC07C9B572A58FC so that I can search
> in the body of the message for the rest of the parts.
> 
> Any pointers would be helpful.
> 
> Adrian
> 
> 
> 


-- 
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] file upload

2001-07-19 Thread Marcus

-BEGIN PGP SIGNED MESSAGE-

Hi everyone,
I try to upload a file to my webserver, extract the email-adresses it
contains and write these into a mysql database.
Working with small files (<350 Kb) this works perfect. But trying to
do this with files bigger than that fails. The files are never
uploaded.
I allready increased the "max_filesize" flag in php.ini to 8MB (!).
Still it doesn´t work

Does anyone have a clue??


Thanx in advance

-BEGIN PGP SIGNATURE-
Version: PGPfreeware 6.5.8 for non-commercial use 

iQEVAwUBO1aKZ1iXvbAP3AzNAQHHYAf+IJEJ0efrj0+EikPSQ5stXlrEQ3lCHDJl
5viGZfY8fuOS4eD3/L/ttrRllCtOrojCPjDk7vGEQnWJhokJW1ijOelumpOMvRAS
AJnGyxMN+kxOle2umSkrZvhkMIqpbBJiR8ePhoCQW6xkLf3R/uiB1i7Duclm1ONm
cwMy9VuzpNYNTBD4KhPBov7FC9SRBl9PIGYQqRmAss2r1YBv5Exo39NM8VW2sCKr
Z+zSpYKLUzF2va215/9UWHSUmHcAw6Go6qHrjE9bbhJnoURif+8kdr18xMu6TGBx
Mbb1397PapIxYnOYN5lbBeWNfNl7iLAj0upCwrBVpTmSlQ0m7R4z2Q==
=enfp
-END PGP SIGNATURE-




-- 
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] file upload

2001-07-19 Thread Slavomir Slizik

Try to incerease 'max_execution_time' in your php.ini file - if your
connection is too slow, script execution time expires before the file is
uploaded. Increasing max_execution_time might help.
Try to increase max_filesize in your upload _form_, too.

Slavko


On Thu, 19 Jul 2001, Marcus wrote:

> -BEGIN PGP SIGNED MESSAGE-
>
> Hi everyone,
> I try to upload a file to my webserver, extract the email-adresses it
> contains and write these into a mysql database.
> Working with small files (<350 Kb) this works perfect. But trying to
> do this with files bigger than that fails. The files are never
> uploaded.
> I allready increased the "max_filesize" flag in php.ini to 8MB (!).
> Still it doesn´t work
>
> Does anyone have a clue??
>
>
> Thanx in advance
>
> -BEGIN PGP SIGNATURE-
> Version: PGPfreeware 6.5.8 for non-commercial use 
>
> iQEVAwUBO1aKZ1iXvbAP3AzNAQHHYAf+IJEJ0efrj0+EikPSQ5stXlrEQ3lCHDJl
> 5viGZfY8fuOS4eD3/L/ttrRllCtOrojCPjDk7vGEQnWJhokJW1ijOelumpOMvRAS
> AJnGyxMN+kxOle2umSkrZvhkMIqpbBJiR8ePhoCQW6xkLf3R/uiB1i7Duclm1ONm
> cwMy9VuzpNYNTBD4KhPBov7FC9SRBl9PIGYQqRmAss2r1YBv5Exo39NM8VW2sCKr
> Z+zSpYKLUzF2va215/9UWHSUmHcAw6Go6qHrjE9bbhJnoURif+8kdr18xMu6TGBx
> Mbb1397PapIxYnOYN5lbBeWNfNl7iLAj0upCwrBVpTmSlQ0m7R4z2Q==
> =enfp
> -END PGP SIGNATURE-
>
>
>
>
> --
> 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] Sessions over Internet Explorer

2001-07-19 Thread Enrique Rodríguez Lázaro

Hi.

Mi situation.
*

PHP 4.0.6

./configure --with-mysql \
--with-apxs=/usr/local/apache/bin/apxs \
--enable-trans-sid

Linux Box kernel 2.2.14 (RH 6.2)

Web Server Apache 1.3.20

php.ini
***
[...]

[Session]
; Handler used to store/retrieve data.
session.save_handler = files
 
; Argument passed to save_handler.  In the case of files, this is the
path
; where data files are stored.
session.save_path = /tmp

; Whether to use cookies.
session.use_cookies = 1

; Name of the session (used as cookie name).
session.name = PHPSESSID

; Initialize session on request startup.
session.auto_start = 0
 
; Lifetime in seconds of cookie or, if 0, until browser is restarted.
;session.cookie_lifetime = 0
session.cookie_lifetime = 1200
 
; The path for which the cookie is valid.
session.cookie_path = /
 
; The domain for which the cookie is valid.
session.cookie_domain =
 
; Handler used to serialize data.  php is the standard serializer of
PHP.
session.serialize_handler = php

; Percentual probability that the 'garbage collection' process is
started
; on every session initialization.
;;session.gc_probability = 1
session.gc_probability = 10
 
; After this number of seconds, stored data will be seen as 'garbage'
and
; cleaned up by the garbage collection process. 24'
;;session.gc_maxlifetime = 1440
session.gc_maxlifetime = 600
 
; Check HTTP Referer to invalidate externally stored URLs containing
ids.
session.referer_check =
 
; How many bytes to read from the file.
session.entropy_length = 0
 
; Specified here to create the session id.
session.entropy_file =
 
;session.entropy_length = 16
 
;session.entropy_file = /dev/urandom
 
; Set to {nocache,private,public} to determine HTTP caching aspects.
session.cache_limiter = nocache
 
; Document expires after n minutes.
session.cache_expire = 180
 
; use transient sid support if enabled by compiling with
;--enable-trans-sid.   
session.use_trans_sid = 1
 
url_rewriter.tags =
"a=href,area=href,frame=src,input=src,form=fakeentry"

[...]


Problem: Sessions over Internet Explorer (tested version 5.5)


Program for tested (contardor.php)





Nº 

 


Results:
***

Whith Internet Explorer, contador.php doesn't work. Output is ever the
same: 1

Whith Netscape Navigator, contador.php work fine.


In both (Explorer and Netscape) I have configurated war me cookies.
Netscape war me, but Explorer doesn't war me. To probe that Explorer
it's ok, I go to an URL with cookies and then I recieve a warm over a
cookie.


Where it's the probleme?


Thank's in advanced.

-- 
 Enrique Rodríguez

-- 
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] Re: OT Math Question

2001-07-19 Thread Nigel Russell

Hi,

The answer actually depends on whether the order is important (ie if it
matters if the user selects from x from the first menu and y from the
second, and if this is deemed to be identical to selecting y from the first
and x from the second).

If the order is important, then the number of permutations is
(dp_items)!/(dp_items-dp_menu)! where ! is the factorial symbol eg
6!=6*5*4*3*2*1
In the example below, this gives 5!/1!=120

If the order is unimportant, the the number of combinations is
(dp_items)!/((dp_menu)!(dp_items-dp_menu)!)
In the example below, this gives 5!/4!1! = 5

For the lottery below, the answer is actually 56!/6!50! = 32468436:1 (which
is pretty darn close to zero!)
:-)
Nigel Russell
Linnsell Science Software

-Original Message-
From: Paul A. Procacci [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 19, 2001 5:44 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: OT Math Question


Well, If I'm right.  The total number of posible combinations in the NJ
state lottery, assuming there are, say, 56 numbers is

var total = 56;

total*(total-1)*(total-2)*(total-3)*(total-4)*(total-5) == 23377273920:1

Now that assuming one number was pulled from the pot and the same number
didn't exists in the pot.  Now, please anyone correct me if I'm wrong,
but I believe the solution to rm's quesion is as follows:

var dp_menus = 4   // Number of drop-down menus
var dp_menus = 5   // Number of dp_items per menu

dp_menus^dp_items == 1024:1 //Total number of possibilities

Does that look right?  I hope this helps

Paul.


Rm wrote:
>
> if i have four drop down menus with five values in
> each, and the values are the same for each of the four
> drop down menus, how many variations are there without
>  duplicates, any dups,
>
> I though the formula was 5 to the 4th power minus 5,
> this can't possibly be right.
>
> math impaired and trying to fake it
>
> rm
>
> __
> Do You Yahoo!?
> Get personalized email addresses from 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]


-- 
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] Individual PHP Developer(s) Req. in Alberta, Canada

2001-07-19 Thread Roderick Scott Corporation

Hello,

Please forgive my "Slightly" Off Topic posting. I am starting a 
short-term (2-12 weeks) project here in Edmonton, Alberta and will 
require one or two contract developers of PHP. Project will entail 
using PHP linked to PostgreSQL and will be deployed under 
Linux/Apache. More details available privately.

Please reply _off-list_ to [EMAIL PROTECTED]

Thanks!

Scott

Scott Sandeman-Allen
Roderick Scott Corporation
Edmonton, Alberta. Canada


[PHP] XSLT module bugs (?)

2001-07-19 Thread Maxim Derkachev

Hi all.

Just met two bugs (?) in the xslt module.
1st. I replace HTML entities in the CDATA parts with their ascii
equivalents ('<' -> '<', '>' -> '>', etc.)
After XSLT transformation, '<' went back to '<', while any other
remain untouched.

2nd. After the transformation, &#; are substituted with
their char equivalents, prepended with  character. E.g. ®
('registered' sign) become ® .

Could someone advise?

P.S. PHP4.0.6, Sablotron 0.6.

-- 
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
System administrator & programmer,
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
www.books.ru, www.symbol.ru 



-- 
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] Re: More upload Problems

2001-07-19 Thread Peter Clarke


"Jason Rennie" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all,
>
> It appears when i try to upload a file in a form, and pass it to php, it
> never arrives.
>
> I'm doing a POST from a  form, and i all but copied the example straight
> from the php manual on file uploading.
>
> But the $HTTP_POST_FILES[] array is never set, and is_uploaded_file always
> returns false.
>
> Has anybopdy else had a problem like this ???
>
> I really am stumped here.
>
> Could i have perhaps compiled php incorrectly ? Turning off a needed
> switch perhaps ?
>
> Jason
>


Check your php.ini file to see if "file_uploads = on" - it is often turned
off for security.

Peter


-- 
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] count number of email sent to us

2001-07-19 Thread Jack

How about when there is two people click on the email link at the same time
(which could happen on internet) , what will happen to the value that will
pass to javascript variables as number of click?
Jack
[EMAIL PROTECTED]
"Love your enemies, it will drive them nuts"
- Original Message -
From: Francis Fillion <[EMAIL PROTECTED]>
To: Jack <[EMAIL PROTECTED]>
Cc: Zak Greant <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, July 18, 2001 10:19 AM
Subject: Re: [PHP] count number of email sent to us


> Yes you can send javascript stuff to php, juste use a form
> 
> 
> 
>
> 
> function whatever(){
> document.test.click.value= nomberofclick;
>  document.test.submit();
> }
> 
>
> or something like that and $click will have the number of click in
> xy.php
>
> I'm not sure if this is good, can someone double check?
>
> Jack wrote:
> >
> > Sorry, It is mistyping here. I mean, we normally use variables from php
to
> > do something in javascript function. But how could we use value from
> > variables in javascript function to do something in php function?
> > Jack
> > [EMAIL PROTECTED]
> > "Love your enemies, it will drive them nuts"
> > - Original Message -
> > From: Zak Greant <[EMAIL PROTECTED]>
> > To: Jack <[EMAIL PROTECTED]>
> > Cc: <[EMAIL PROTECTED]>
> > Sent: Wednesday, July 18, 2001 2:39 AM
> > Subject: Re: [PHP] count number of email sent to us
> >
> > > Check the list archives - this question gets posed quite often.
> > >
> > > --zak
> > >
> > > - Original Message -
> > > From: "Jack" <[EMAIL PROTECTED]>
> > > Cc: <[EMAIL PROTECTED]>
> > > Sent: Wednesday, July 18, 2001 1:38 PM
> > > Subject: Re: [PHP] count number of email sent to us
> > >
> > >
> > > > Yes, that is the point here. We normally use variables from php to
do
> > > > something in php function, how could we use javascript variables to
do
> > > > something in php function?
> > >
> > >
> > >
> >
> > --
> > 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]
>
> --
> Francis Fillion, BAA SI
> Broadcasting live from his linux box.
> And the maintainer of http://www.windplanet.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 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] 100M虚拟主机+国际域Ã?恍?50元!

2001-07-19 Thread 厦门中资源网络服Î裼邢薰?¾

×𾴵Ŀͻ§£¬ÄúºÃ£¡
 
ÎÒÃÇÊÇÖйúÓòÍøhttp://www.163asp.net/ 
£¬±¾ÍøÕ¾Ö÷ÒªÊÇΪÄúÌṩÓòÃû×¢²á£¬×âÓÃÐéÄâÖ÷»ú,ÍøÒ³ÖÆ×÷·þÎñ¡£ÈÕÇ°ÎÒÃÇÍƳöÌػݼÛ1+1Ìײͣ¬¼´×âÓÃ100MÐéÄâÖ÷»ú(350Ôª/Äê/Ì×)¿É»ñµÃÃâ·ÑÔùË͵Ĺú¼ÊÓòÃûºÍ5¸ö10MµÄÓÊÏ䣬»ú»áÄѵò»ÈÝ´í¹ýŶ£¡

ÒÔÏÂÊÇÎÒÃǵķþÎñ¼Û¸ñ:
Ó¢ÎĹú¼ÊÓòÃû100Ôª/¸ö/Äê
  ¡¡ÖÐÎĹú¼ÊÓòÃû300Ôª/¸ö/Äê
¡¡  Ó¢ÎĹúÄÚÓòÃû300Ôª/¸ö/Äê 
¡¡  ÖÐÎĹúÄÚÓòÃû280Ôª/¸ö/Äê
¡¡  .ccÓ¢ÎĹú¼ÊÓòÃû380Ôª/¸ö/Äê 
¡¡  100MÐéÄâÖ÷»ú300Ôª/Äê
¡¡  200MÐéÄâÖ÷»ú500Ôª/Äê
¡¡  20Óû§¹²Ïí·þÎñÆ÷2000Ôª/»§/Äê
¡¡  10Óû§¹²Ïí·þÎñÆ÷3000Ôª/»§/Äê
¡¡  µ¥Óû§¶ÀÏí·þÎñÆ÷2Ôª/»§/Äê
¡¡  ÆóÒµµç×ÓÓÊÏä50Ôª/¸ö/Äê
ÍøÒ³ÖÆ×÷:20¸öÒ³ÃæÒÔÄÚ1900Ôª,°üÀ¨Ò»¸öÓòÃûºÍ100MÐéÄâÖ÷»ú
 

ÎÒÃǵķþÎñ³ÐŵÊÇ:
ÏÈ×¢²áÓòÃûºó¸¶¿î£¬ÏÈ¿ªÍ¨Ö÷»úºóÊÕ·Ñ£¬Èç¹ûÄãÔÚʹÓÃÖв»ÂúÒ⣬ÎÒÃÇ»¹¿ÉÒÔÍË¿î¡£
ÎÒÃǵķþÎñ×îÖܵ½£¬¼Û¸ñ×îʵ»Ý¡£¿ìÀ´ÓëÎÒÃÇÁªÏµ°É£¡
ÁªÏµµç»°£º0592-527  ´«Õ棺0592-2220123 
ÖÂ 

Àñ£¡ 
 

   ÏÃÃÅÖÐ×ÊÔ´ÍøÂç·þÎñÓÐÏÞ¹«Ë¾
 [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] PHP is cool by me.

2001-07-19 Thread John Monfort



 Amen !

__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Tue, 17 Jul 2001, Sterling Hanenkamp wrote:

> Just thought I'd send in my testimonial. I run a web site for a
> relatively small business (4 employees including the President ;).
> Anyway, I had been using JSP and Servlets to manage our smallish web
> site, but in preparation for graduation and moving on to another job, we
> need a web site that can be managed by my boss and coworkers who know
> nothing of Java.
>
> Thus, I endeavored to find a solution that would be more stable (the
> servlet engine was unstable from time to time, though it is highly
> reputed as stable). Anyway, I chose PHP over everything else because of
> it's resemblance to Perl and my boss' familiarity with Perl. Within
> hours I was able to port the entire site from JSP to PHP with all the
> previous functionality.  (It took me much longer to design the original
> site in JSP.) Within hours I was able to add even more functionality to
> make it easier for them to maintain.
>
> This is not meant in any way to detract from JSP, just that PHP happens
> to make JSP look rather inept in this particular case--especially since
> PHP had built-in a lot of stuff that I had to build myself in Java code.
> PHP does for web programming what Perl does for script programming. It
> makes what should be easy, easy and yet still manages to make the hard
> stuff easier or, at least, no harder.
>
> Excellent product. My appreciation goes to the authors and anyone else
> who had a hand in this product. I have met few IT products that actually
> stand up to my expectations after I have put hours and days of effort
> into them--this one has done just that.
>
> Thanks,
> Sterling
>
>
> --
> 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] 100MÐéÄâÖ÷»ú+¹ú¼ÊÓòÃûÖ»Ðè350Ôª£¡

2001-07-19 Thread Vitali Falileev


Ìëÿ, çàòðàõàëè!!!
Êèòàéöû, ÿïîíöû, àðàáû è ïðî÷èå èåðîãëèôíûå óðîäöû. Ó÷èòå ðóññêèé, à
åñëè íå ìîæåòå, õîòÿ áû àíãëèéñêèé.
Íàðîä êòî ìîæåò ýòîãî ï@#$ðà âûùåìèòü, ñòóêíèòå ïî áàøêå ïëç.

Sorry for flame.


Ï> ×𾴵Ŀͻ§£¬ÄúºÃ£¡
 
Ï> ÎÒÃÇÊÇÖйúÓòÍøhttp://www.163asp.net/
Ï> 
£¬±¾ÍøÕ¾Ö÷ÒªÊÇΪÄúÌṩÓòÃû×¢²á£¬×âÓÃÐéÄâÖ÷»ú,ÍøÒ³ÖÆ×÷·þÎñ¡£ÈÕÇ°ÎÒÃÇÍƳöÌػݼÛ1+1Ìײͣ¬¼
Ï> 
´×âÓÃ100MÐéÄâÖ÷»ú(350Ôª/Äê/Ì×)¿É»ñµÃÃâ·ÑÔùË͵Ĺú¼ÊÓòÃûºÍ5¸ö10MµÄÓÊÏ䣬»ú»áÄѵò»ÈÝ´í¹ýŶ£¡

Ï> ÒÔÏÂÊÇÎÒÃǵķþÎñ¼Û¸ñ:
Ï> Ó¢ÎĹú¼ÊÓòÃû100Ôª/¸ö/Äê
Ï>   ¡¡ÖÐÎĹú¼ÊÓòÃû300Ôª/¸ö/Äê
Ï> ¡¡  Ó¢ÎĹúÄÚÓòÃû300Ôª/¸ö/Äê 
Ï> ¡¡  ÖÐÎĹúÄÚÓòÃû280Ôª/¸ö/Äê
Ï> ¡¡  .ccÓ¢ÎĹú¼ÊÓòÃû380Ôª/¸ö/Äê 
Ï> ¡¡  100MÐéÄâÖ÷»ú300Ôª/Äê
Ï> ¡¡  200MÐéÄâÖ÷»ú500Ôª/Äê
Ï> ¡¡  20Óû§¹²Ïí·þÎñÆ÷2000Ôª/»§/Äê
Ï> ¡¡  10Óû§¹²Ïí·þÎñÆ÷3000Ôª/»§/Äê
Ï> ¡¡  µ¥Óû§¶ÀÏí·þÎñÆ÷2Ôª/»§/Äê
Ï> ¡¡  ÆóÒµµç×ÓÓÊÏä50Ôª/¸ö/Äê
Ï> ÍøÒ³ÖÆ×÷:20¸öÒ³ÃæÒÔÄÚ1900Ôª,°üÀ¨Ò»¸öÓòÃûºÍ100MÐéÄâÖ÷»ú
Ï> ÁªÏµµç»°£º0592-527  ´«Õ棺0592-2220123
Ï> ÖÂ 

Ï> Àñ£¡ 
 

Ï>ÏÃÃÅÖÐ×ÊÔ´ÍøÂç·þÎñÓÐÏÞ¹«Ë¾
Ï>  [EMAIL PROTECTED]


-- 
Best regards,
 Vitalimailto:[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] XSLT module bugs (?)

2001-07-19 Thread Maxim Derkachev

MD> Just met two bugs (?) in the xslt module.

The bugs appear to be Sablot's. Just have the same results using
sabcmd. Posting report there.



-- 
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
System administrator & programmer,
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
www.books.ru, www.symbol.ru 



-- 
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] Re: More upload Problems

2001-07-19 Thread Jason Rennie

> Check your php.ini file to see if "file_uploads = on" - it is often turned
> off for security.

Yep it is turned on. 

And php.ini is in /usr/local/php/lib/php.ini 

Any other ideas ?

Jason


-- 
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] a good PHP editor

2001-07-19 Thread John Monfort



 Amen !


__John Monfort_
_+---+_
 P E P I E  D E S I G N S
   www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-

On Wed, 18 Jul 2001, Chris Lambert - WhiteCrown Networks wrote:

> Would you give the same advice if it were Zend Cache? Show some respect,
> please.
>
> /* Chris Lambert, CTO - [EMAIL PROTECTED]
> WhiteCrown Networks - More Than White Hats
> Web Application Security - www.whitecrown.net
> */
>
> - Original Message -
> From: Maxim Maletsky <[EMAIL PROTECTED]>
> To: 'doug' <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Wednesday, July 18, 2001 2:41 PM
> Subject: RE: [PHP] a good PHP editor
>
>
> | EditPlus (editplus.com - not free but easily crackable through a simple
> | search on astalavista.box.sk)
> | A great editor - believe me.
> |
> | -maxim
> |
> |
> | -Original Message-
> | From: doug [mailto:[EMAIL PROTECTED]]
> | Sent: Thursday, July 19, 2001 3:16 AM
> | To: [EMAIL PROTECTED]
> | Subject: [PHP] a good PHP editor
> |
> |
> | Hiya everybody,
> | I'm relatively new to PHP and I'm looking for a good text editor on
> | win2k for creating/manipulating php pages. Notepad is great if your in a
> | bind, and I've tried phpedit and activestate's Komodo and both seem to
> have
> | problems (crashing etc...). Anybody got any suggestions? Free/small fee
> | programs doesn't matter Thanks
> |
> | Doug Henry
> |
> |
> | --
> | 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]
>
>


-- 
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] Sessions over Internet Explorer

2001-07-19 Thread Enrique Rodríguez Lázaro

Bogdan Morar wrote:
> 
> I think is a problem of cache. Use Ctrl+F5 to refresh the page in IE or
> CTRL+Refresh if u use the mouse.
> Of course is another param "alow_cache" in phplib which must be true or
> false.
> 

Thanks, but that isn't the problem. I have tried with 5 different
Internet Explorer.

I had in php.ini 

session.cache_limiter = nocache

and I have tried whith private and public but the problem it's the same.


In my Apache access_log I can see this:

When the client is IE:

 [19/Jul/2001:11:00:57 +0200] "GET
/prueba/contador.php?=PHPE9568F35-D428-11d2-A769-00AA001ACF42 HTTP/1.1"
200 4453

And when the client is Netscape:

 [19/Jul/2001:11:02:20 +0200] "GET /prueba/contador.php HTTP/1.0" 200
43385


I'm going to sees Apache configuration...

> --
> Bogdan Morar
> www.bogmor.com

-- 
 Enrique Rodríguez

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

2001-07-19 Thread Duy B

Hi all,
I have a view containing a char value. I use select to_date(thoigian,'yy-mm-dd 
hh24:mi:ss') from this view. But i can't see the time, it's only appear as 
"DD-MON-YY". Anybody could show me how to see the time.
Thanks you in advance.
Best regards,
BaDu



[PHP] a goog "whatever you want" editor

2001-07-19 Thread Aniceto Lopez

My opinion: "UltraEdit" https://www.ultraedit.com

cheap, powerfull, totally configurable, ftp included,
http://www.ultraedit.com/products/features.html
free tag list (any code), word files, macros

I use it for html, xml, xsl, wml, php, javascript...



Ani Lopez
http://www.lamundial.net
visit us, download, spread our music



[PHP] how_to_display blob picture from Interbase database

2001-07-19 Thread Admin

Hi php-general,

  How to display blob picture from Interbase database
  in web page.
-- 
Keep going,
 Admin  mailto:[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] Re: a goog "whatever you want" editor

2001-07-19 Thread elias

As we already run into this sort of discussions...here's my opinion again:
http://www.editplus.com
Fast, light, and powerfull! I use it to edit all my files! even my assembly
projects!

"Aniceto Lopez" <[EMAIL PROTECTED]> wrote in message
003701c1103d$d1e24140$2a53a8c0@latinia">news:003701c1103d$d1e24140$2a53a8c0@latinia...
My opinion: "UltraEdit" https://www.ultraedit.com

cheap, powerfull, totally configurable, ftp included,
http://www.ultraedit.com/products/features.html
free tag list (any code), word files, macros

I use it for html, xml, xsl, wml, php, javascript...



Ani Lopez
http://www.lamundial.net
visit us, download, spread our music




-- 
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] Re: Loading values from a tag

2001-07-19 Thread elias


...


then php would read as:
";
}
?>

"Mauricio T?Llez Jim?Nez" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all, I want to print all the text stored in a  tag. For
example:
>
> 
> Hello
> World
> Again!!!
> 
>
> This is the final select, but is created dinamically with javascript.
> So when the sumbit button is pressed, I want that my php script output the
folowing:
>
> The number of options is:  X(3 in that example)
> The options was:
>
> value=1, text=Hello
> value=2, text=World
> value=3, text=Again!!!
>
> and so on.
>
> Thanks for your help.



-- 
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] Re: Editing Files Using POST Forms

2001-07-19 Thread elias

try "stripcslashes()"

"Rca Web Development" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have created a php page that accepts a variable called $file using GET.
It
> then displays this in a textarea box. You can then edit the file and click
a
> button to save it and it POSTS it to the same page (edit.php) on the
server.
> This works but it adds slashes before any speech marks (""). Can somebody
> help me with this.
>
> Below is an example of how it changes the code and the code for the page
> edit.php
>
> Regards,
> Corin Rathbone
> www.corin.org.uk
> -
>
> A page before editing:
> 
> 
> 
> 
> 
> 
> 
>
> Delete A File
>
> 
> 
> -
>
> The same page after editing:
>
> 
>
> 
> 
> 
> 
> 
> 
> 
>
> Delete A File
>
> 
> 
> -
>
> The edit.php page source:
>  include "config.php";
>
> //Start Pages PHP here
>
> if(isset($save)){
> $fp = fopen("$file", "wb") or die("Could not open file!");
> $worked = fwrite($fp, $contents) or die("Could not write file!");
> fclose($fp) or die("Could not close file!");
> $edit=false;
> $save=true;
> }
> elseif(isset($file)){
> $fp = fopen("$file", "rb") or die("Could not open file!");
> $contents = fread($fp, filesize($file)) or die("Could not read file!");
> fclose($fp) or die("Could not close file!");
> $edit=true;
> $save=false;
> }
> else{
> $edit=false;
> $save=false;
> }
>
> //End Pages PHP Here
> ?>
>  "http://www.w3.org/TR/html4/loose.dtd";>
>
> 
> 
> Edit A File - File Explorer For 
> 
> 
> 
> 
> 
> 
> 
>
> Edit A File
>
>  if($edit){
> print( "Contents Of file: " );
> print( "$file" );
> print( "\n" );
> print( "\n" );
> print( " \n" );
> print( " print( "$file" );
> print( "\">\n" );
> print( "" );
> print( "  \n" );
> print( "$contents" );
> print( "  \n" );
> print( "  \n" );
> print( " \n" );
> print( "" );
> }
> elseif($save){
> print( "\n" );
> print( "File: " );
> print( "$file" );
> if($worked){print( " has been saved!" );}
> else {print( " has not been saved!" );}
> print( "" );
> }
> else {
> print( "Please Select A File To Be
Save!" );
> }
> ?>
>
> 
> 
> ©mailto:[EMAIL PROTECTED]";>Corin
> Rathbone 2001
>
> 
> 
>



-- 
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] Re: screen

2001-07-19 Thread elias

you can clear w/ refreshing!

just do it via javascript as:


document.open();
document.close();

"Jeremy Morano" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> is there any refresh or clear screen function in php?



-- 
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] Re: a goog "whatever you want" editor

2001-07-19 Thread Daniel Rezny

Hello elias,

Thursday, July 19, 2001, 10:59:50 PM, you wrote:

e> As we already run into this sort of discussions...here's my opinion again:
e> http://www.editplus.com
e> Fast, light, and powerfull! I use it to edit all my files! even my assembly
e> projects!

I am using this
http://www.soysal.com/PHPEd/

-- 
Best regards,
 Danielmailto:[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] date

2001-07-19 Thread AJDIN BRANDIC

What is this "On Mon, 4 Jan 1999, Duy B wrote:"


On Mon, 4 Jan 1999, Duy B wrote:

> Hi all,
> I have a view containing a char value. I use select to_date(thoigian,'yy-mm-dd 
>hh24:mi:ss') from this view. But i can't see the time, it's only appear as 
>"DD-MON-YY". Anybody could show me how to see the time.
> Thanks you in advance.
> Best regards,
> BaDu
> 

-- 
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] Re: More upload Problems

2001-07-19 Thread Peter Clarke


"Jason Rennie" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Check your php.ini file to see if "file_uploads = on" - it is often
turned
> > off for security.
>
> Yep it is turned on.
>
> And php.ini is in /usr/local/php/lib/php.ini
>
> Any other ideas ?
>
> Jason
>

need to see some code...

Peter


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

2001-07-19 Thread Yassel Omar Izquierdo Souchay

Hi agin
I have APCHE SERVER Installed in my Machine.
And i have Win2k pro installed. 
And as you sww i want to use.
So i having troubles to configure the WEB server. 
If somebody knows how to do it, please it would help me much.
Thanks
Yassel (Cybername=YOIS)




[PHP] PHP- OF TOPIC--Sorry abotut my english

2001-07-19 Thread Yassel Omar Izquierdo Souchay



Hi agin
I have APCHE SERVER Installed in my Machine.
And i have Win2k pro installed. 
And as you see i want to use.
So i having troubles to configure the WEB server. 
If somebody knows how to do it, please it would help me much.
Thanks
Yassel (Cybername=YOIS)




[PHP] Prevent user to close web browser

2001-07-19 Thread Mihailo Dzigurski

Hello,

I need to prevent user to close the web browser on close button or by
pressing ALT+F4.

Is this possible?

Thanks,
Mihailo.


_
Do You Yahoo!?
Get your free @yahoo.com address at http://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] PHP- OF TOPIC--Sorry abotut my english

2001-07-19 Thread thiagols

What problems r  you having?

> Hi agin
> I have APCHE SERVER Installed in my Machine.
> And i have Win2k pro installed. 
> And as you see i want to use.
> So i having troubles to configure the WEB server. 
> If somebody knows how to do it, please it would help me much.
> Thanks
> Yassel (Cybername=YOIS)
> 
> 


--
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] Prevent user to close web browser

2001-07-19 Thread kath

Not with PHP.  Maybe some Javascript could.

But why would you want this?  Planning some infinite spawning pop up website? 
=)

- k

On Thursday 19 July 2001 08:28 am, you wrote:
> Hello,
>
> I need to prevent user to close the web browser on close button or by
> pressing ALT+F4.
>
> Is this possible?
>
> Thanks,
> Mihailo.
>
>
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://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] Prevent user to close web browser

2001-07-19 Thread Slavomir Slizik

So, try to surf some free erotic,porn sites. They're full of that
window-spawing stuff :(

slavko


On Thu, 19 Jul 2001, kath wrote:

> Not with PHP.  Maybe some Javascript could.
>
> But why would you want this?  Planning some infinite spawning pop up website?
> =)
>
> - k
>
> On Thursday 19 July 2001 08:28 am, you wrote:
> > Hello,
> >
> > I need to prevent user to close the web browser on close button or by
> > pressing ALT+F4.
> >
> > Is this possible?
> >
> > Thanks,
> > Mihailo.
> >
> >
> > _
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://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 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]




Fw: [PHP] PHP- ABOUT CONFIGURE APACHE SERVER

2001-07-19 Thread Yassel Omar Izquierdo Souchay

MY PROBLEMS IS. THAT I DON'T KNOW HOW TO CONFIGURE MY APACHE SERVER TO USE
MY C:\Inetpub\wwwroot\SITES I HAVE THERE
THAT'S MY PROBLEM.
THANKS FOR YOUR COLABORATION.
YOIS


- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 19, 2001 7:32 AM
Subject: Re: [PHP] PHP- OF TOPIC--Sorry abotut my english


What problems r  you having?

> Hi agin
> I have APCHE SERVER Installed in my Machine.
> And i have Win2k pro installed. 
> And as you see i want to use.
> So i having troubles to configure the WEB server. 
> If somebody knows how to do it, please it would help me much.
> Thanks
> Yassel (Cybername=YOIS)
> 
> 


-- 
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] Prevent user to close web browser

2001-07-19 Thread Mihailo Dzigurski

I need it for my intranet web site, some of my users close browser on long
lasting script and I need to prevent this.

Thanks,
Mihailo.

-Original Message-
From: kath [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 19, 2001 2:39 PM
To: Mihailo Dzigurski
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Prevent user to close web browser


Not with PHP.  Maybe some Javascript could.

But why would you want this?  Planning some infinite spawning pop up
website?
=)

- k

On Thursday 19 July 2001 08:28 am, you wrote:
> Hello,
>
> I need to prevent user to close the web browser on close button or by
> pressing ALT+F4.
>
> Is this possible?
>
> Thanks,
> Mihailo.
>
>
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com


_
Do You Yahoo!?
Get your free @yahoo.com address at http://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] Prevent user to close web browser

2001-07-19 Thread Steve Brett

have a javascript function that is fired when you load the index page.

i have a calendar system that i wrote at work that is displayed in a window
with most of the features turned off like toolbars etc.

have a look at 'on load' and window properties.

it's a doddle.

and no i didn't find it on a porn site. ;-)

Steve

"Slavomir Slizik" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> So, try to surf some free erotic,porn sites. They're full of that
> window-spawing stuff :(
>
> slavko
>
>
> On Thu, 19 Jul 2001, kath wrote:
>
> > Not with PHP.  Maybe some Javascript could.
> >
> > But why would you want this?  Planning some infinite spawning pop up
website?
> > =)
> >
> > - k
> >
> > On Thursday 19 July 2001 08:28 am, you wrote:
> > > Hello,
> > >
> > > I need to prevent user to close the web browser on close button or by
> > > pressing ALT+F4.
> > >
> > > Is this possible?
> > >
> > > Thanks,
> > > Mihailo.
> > >
> > >
> > > _
> > > Do You Yahoo!?
> > > Get your free @yahoo.com address at http://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 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] RE:[PHP] PHP- ABOUT CONFIGURE APACHE SERVER

2001-07-19 Thread thiagols

Well, you gotta edit the file httpd.conf 9i dont know where had you installed apache, 
but i think u can find this file at: c:\program files\apache group\apache\conf.

Open it!
Go to line where it is specified "document root"...

DocumentRoot "C:\Inetpub\wwwroot\"

after that... edit this:
#
# This should be changed to whatever you set DocumentRoot to.
#


To use PHP: use this

ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php3 .php .phtml .php3 .html .htm
Action application/x-httpd-php3 "/php/php.exe"


> MY PROBLEMS IS. THAT I DON'T KNOW HOW TO CONFIGURE MY APACHE SERVER TO USE
> MY C:\Inetpub\wwwroot\SITES I HAVE THERE
> THAT'S MY PROBLEM.
> THANKS FOR YOUR COLABORATION.
> YOIS
>  


--
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] Sessions + includes

2001-07-19 Thread dosenbrei


Hi

Sorry for my bad english ;-)

I'm writing an application using php and sessions.
In the first include file i'm writing something like this

session_start();
session_register(loggedin);

The i have another include file with the functions.
When i'm submitting the username and passwort to the function
which checks them i'd like to set loggedin to 1 how does this work?

function CheckLogin($username,$password)
{
if($username=='test' && $password=='user')
{
$loggedin=1;
header("location:secretpage.php");
}
else
{
$loggedin =0;
header("location:login.php")
}

Can i user include with sessions or doe i have to use requiere?
I also tried to set the $loggedin to 1 this way:

$HTTP_SESSION_VARS[loggedin]=1;

This doesn't work too.

Please help me


THX

-- 
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] Sessions + Variables + includes

2001-07-19 Thread dosenbrei



Hi

Sorry for my bad english ;-)

I'm writing an application using php and sessions.
In the first include file i'm writing something like this

session_start();
session_register(loggedin);

The i have another include file with the functions.
When i'm submitting the username and passwort to the function
which checks them i'd like to set loggedin to 1 how does this work?

function CheckLogin($username,$password)
{
if($username=='test' && $password=='user')
{
$loggedin=1;
header("location:secretpage.php");
}
else
{
$loggedin =0;
header("location:login.php")
}

Can i user include with sessions or doe i have to use requiere?
I also tried to set the $loggedin to 1 this way:

$HTTP_SESSION_VARS[loggedin]=1;

This doesn't work too.

Please help me


THX

-- 
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] Re: Sessions + Variables + includes

2001-07-19 Thread Steve Brett

great minds and all that 
this is some code  i use but i have a login page that takes the username and
passowrd and passes that to another page that does the verification.

so:
page 1 takes the username and password.
page 2 registers session vars and sets logged in to true if accepted.

every page from then on has this include file

';
 session_destroy();
 exit;
}

i use the meta http=equiv to direct them to the index page of the site
if they are verified.

Steve

"Dosenbrei" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
>
> Hi
>
> Sorry for my bad english ;-)
>
> I'm writing an application using php and sessions.
> In the first include file i'm writing something like this
>
> session_start();
> session_register(loggedin);
>
> The i have another include file with the functions.
> When i'm submitting the username and passwort to the function
> which checks them i'd like to set loggedin to 1 how does this work?
>
> function CheckLogin($username,$password)
> {
> if($username=='test' && $password=='user')
> {
> $loggedin=1;
> header("location:secretpage.php");
> }
> else
> {
> $loggedin =0;
> header("location:login.php")
> }
>
> Can i user include with sessions or doe i have to use requiere?
> I also tried to set the $loggedin to 1 this way:
>
> $HTTP_SESSION_VARS[loggedin]=1;
>
> This doesn't work too.
>
> Please help me
>
>
> THX



-- 
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] Sessions + Variables + includes

2001-07-19 Thread Slavomir Slizik

On the title page:

session_register("loggedin");
then:
session_start(); on every page
better to test session availability on every page:
if (!session_is_registered("loggedin")) {
// redirect user to title page where the session is registered
}

But your method of handling sessions and logins is very strange and
insecure :)

slavko


On Thu, 19 Jul 2001, dosenbrei wrote:

>
>
> Hi
>
> Sorry for my bad english ;-)
>
> I'm writing an application using php and sessions.
> In the first include file i'm writing something like this
>
> session_start();
> session_register(loggedin);
>
> The i have another include file with the functions.
> When i'm submitting the username and passwort to the function
> which checks them i'd like to set loggedin to 1 how does this work?
>
> function CheckLogin($username,$password)
> {
> if($username=='test' && $password=='user')
> {
> $loggedin=1;
> header("location:secretpage.php");
> }
> else
> {
> $loggedin =0;
> header("location:login.php")
> }
>
> Can i user include with sessions or doe i have to use requiere?
> I also tried to set the $loggedin to 1 this way:
>
> $HTTP_SESSION_VARS[loggedin]=1;
>
> This doesn't work too.
>
> Please help me
>
>
> THX
>
> --
> 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] Sessions + Variables + includes

2001-07-19 Thread ReDucTor


 
 
   Username : 
   Password : 
  


   Profile
Moo
   
- Original Message - 
From: dosenbrei <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 19, 2001 10:01 PM
Subject: [PHP] Sessions + Variables + includes


> 
> 
> Hi
> 
> Sorry for my bad english ;-)
> 
> I'm writing an application using php and sessions.
> In the first include file i'm writing something like this
> 
> session_start();
> session_register(loggedin);
> 
> The i have another include file with the functions.
> When i'm submitting the username and passwort to the function
> which checks them i'd like to set loggedin to 1 how does this work?
> 
> function CheckLogin($username,$password)
> {
> if($username=='test' && $password=='user')
> {
> $loggedin=1;
> header("location:secretpage.php");
> }
> else
> {
> $loggedin =0;
> header("location:login.php")
> }
> 
> Can i user include with sessions or doe i have to use requiere?
> I also tried to set the $loggedin to 1 this way:
> 
> $HTTP_SESSION_VARS[loggedin]=1;
> 
> This doesn't work too.
> 
> Please help me
> 
> 
> THX
> 
> -- 
> 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]




Fw: [PHP] RE:[PHP] PHP- ABOUT CONFIGURE APACHE SERVER

2001-07-19 Thread Yassel Omar Izquierdo Souchay

May  i change this ?

ScriptAlias /php/ "C:/WINNT/system32/inetsrv/php/"
   AddType application/x-httpd-php .php .php3 .phtml
Action application/x-httpd-php "/php/php.exe"

by this other?

ScriptAlias /php/ "C:/WINNT/system32/inetsrv/php/sapi"
   AddType application/x-httpd-php .php .php3 .phtml
Action application/x-httpd-php "/sapi/php4apache.dll"

toUse CGIs modules.?

I'm asking




- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 19, 2001 7:54 AM
Subject: [PHP] RE:[PHP] PHP- ABOUT CONFIGURE APACHE SERVER


Well, you gotta edit the file httpd.conf 9i dont know where had you
installed apache, but i think u can find this file at: c:\program
files\apache group\apache\conf.

Open it!
Go to line where it is specified "document root"...

DocumentRoot "C:\Inetpub\wwwroot\"

after that... edit this:
#
# This should be changed to whatever you set DocumentRoot to.
#


To use PHP: use this

ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php3 .php .phtml .php3 .html .htm
Action application/x-httpd-php3 "/php/php.exe"


> MY PROBLEMS IS. THAT I DON'T KNOW HOW TO CONFIGURE MY APACHE SERVER TO USE
> MY C:\Inetpub\wwwroot\SITES I HAVE THERE
> THAT'S MY PROBLEM.
> THANKS FOR YOUR COLABORATION.
> YOIS
>


--
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] MySQL Query - SOLVED

2001-07-19 Thread Sheridan Saint-Michel

Thanks!  That's exactly what I was looking for  = 3 )

- Original Message -
From: Morten Winkler Jørgensen <[EMAIL PROTECTED]>
To: Sheridan Saint-Michel <[EMAIL PROTECTED]>
Sent: Thursday, July 19, 2001 2:56 AM
Subject: Re: [PHP] MySQL Query


> Hi Sheridan,
>
> You wrote:
>
> SSM> I have a table that looks like
>
> SSM> Name | Type | X | Y
>
> SSM> Foo| Ship  | 9 | 29
> SSM> Bar| Base  | 9 | 29
>
> SSM> Is there any way I can write a query that selects
> SSM> everything with Type = Base, and X and Y = Foo's X and Y?
>
> SSM> ie
>
> SSM> "Select * from table where type = Base and X = {Foo:X} and Y =
{Foo:Y}";
>
> This should do the trick
>
> SELECT * FROM table WHERE type = "base" AND
>x = (SELECT x FROM table WHERE name = "foo") AND
>y  = (SELECT y FROM table WHERE name = "foo")
>
> The only drawback is that SELECT x FROM table WHERE name = "foo"
> must return a single value and alike for y. So I hope that in this
> example the field "name" is your primary key as that will guarantee
> success.
>
> --
> Kind regards,
>  Morten Winkler
>  Master Student at University of Southern Denmark
>


-- 
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] Re: More upload Problems

2001-07-19 Thread Jason Rennie

> > > Check your php.ini file to see if "file_uploads = on" - it is often
> turned
> > > off for security.
> >
> > Yep it is turned on.
> >
> > And php.ini is in /usr/local/php/lib/php.ini
> >
> > Any other ideas ?
> >
> > Jason
> >
> 
> need to see some code...

Here is the total chunk of code to date.

It does currently work, except for the file submission complaining about
the no file uploaded.

the current fragment of code to do with file submission is simply my
efforts to get the script to say that a file is being successfulyl
uploaded.

Jason


Currently Submitted Files\n";

$submit_dir = $current_assignment_directory . $subject . "/" . $assign ."/"  . 
$username;

$param = 
"submit_assign.php?username=$username&subject=$subject&assign=$assign";

if(file_exists($submit_dir) == false)
{
print "No Currently Submitted Files\n";
}
else
{
$pwd = fetch_current_files($submit_dir);

// Now to draw the table from the array.

sort($pwd); 

print "\n";

while(($file = array_pop($pwd))!=NULL)
{
// Print each line of the available file table
print "$file\n";
print "Delete\n";
print "Retreive\n";
print "View\n";

}

print "\n";
}

// now to provide an assignment submission box
print "";
print "\n";
print "\n";
print "Submit A File ";
print "\n";
print "\n";
print ""; 


end_page();

?>


-- 
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] Basic database questions.

2001-07-19 Thread Seb Frost

Hi everyone, this is my first ever post on the list so please be gentle with
me ;-)

OK I want to put a database on my website.  Up until yesterday my knowledge
of databases was having created a very simple one when I was about 15 for
GCSE IT.  Don't ask how, but I've always avoided them, learning c++ and all
the rest of it instead.  SO, I'm pretty computer literate, but know nothing
about databases.

SO I'm told I should use PHP and MySQL.  Been learning PHP for the last day
or so, seems easy enough (so far!)

But I'm confused.

1) Is MySQL just a set of instructions for querying a database or is it an
actual format for storing a database.  Somehting I read suggested that MySQL
should be used to access Acess DB's - wtf?

2) OK so I can see how the mysql instructions will get data from a database
but how do I create the little bastard in the first place?  SHOULD I be
using something like access?  It makes no sense to me!

Sorry for the dumb questions, but I need soem dumb answers!  It seems
everything about MySQL on the web is directed at people who have used
databases extensively.

thanks everyone,

- seb


-- 
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] Re: More upload Problems

2001-07-19 Thread Jason Rennie

> > > Check your php.ini file to see if "file_uploads = on" - it is often
> turned
> > > off for security.
> >
> > Yep it is turned on.
> >
> > And php.ini is in /usr/local/php/lib/php.ini
> >
> > Any other ideas ?
> >
> > Jason
> >
> 
> need to see some code...

Here is the total chunk of code to date.

It does currently work, except for the file submission complaining about
the no file uploaded.

the current fragment of code to do with file submission is simply my
efforts to get the script to say that a file is being successfulyl
uploaded.

Jason


Currently Submitted Files\n";

$submit_dir = $current_assignment_directory . $subject . "/" . $assign ."/"  . 
$username;

$param = 
"submit_assign.php?username=$username&subject=$subject&assign=$assign";

if(file_exists($submit_dir) == false)
{
print "No Currently Submitted Files\n";
}
else
{
$pwd = fetch_current_files($submit_dir);

// Now to draw the table from the array.

sort($pwd); 

print "\n";

while(($file = array_pop($pwd))!=NULL)
{
// Print each line of the available file table
print "$file\n";
print "Delete\n";
print "Retreive\n";
print "View\n";

}

print "\n";
}

// now to provide an assignment submission box
print "";
print "\n";
print "\n";
print "Submit A File ";
print "\n";
print "\n";
print ""; 


end_page();

?>



-- 
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] Re: Basic database questions.

2001-07-19 Thread Steve Brett


"Seb Frost" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi everyone, this is my first ever post on the list so please be gentle
with
> me ;-)
>
> OK I want to put a database on my website.  Up until yesterday my
knowledge
> of databases was having created a very simple one when I was about 15 for
> GCSE IT.  Don't ask how, but I've always avoided them, learning c++ and
all
> the rest of it instead.  SO, I'm pretty computer literate, but know
nothing
> about databases.
>
> SO I'm told I should use PHP and MySQL.  Been learning PHP for the last
day
> or so, seems easy enough (so far!)
>
> But I'm confused.
>
> 1) Is MySQL just a set of instructions for querying a database or is it an
> actual format for storing a database.  Somehting I read suggested that
MySQL
> should be used to access Acess DB's - wtf?
>

mysql is a database management system that is relational to a certain extent
(no flames).
php has an abstraction layer that allows php to interface directly with
mysql (and other 'better' databases such as postgresql) via a port (5432 in
the case of postgresql).
drop access from your mind altogether. you simply don't need to use it if
you use mysql.

> 2) OK so I can see how the mysql instructions will get data from a
database
> but how do I create the little bastard in the first place?  SHOULD I be
> using something like access?  It makes no sense to me!
>

get mysql and install it. then get a front end editor like mysql-front or
pg_admin for mysql.
you can either use the front end to create your database or do it via the
command line using SQL.

> Sorry for the dumb questions, but I need soem dumb answers!  It seems
> everything about MySQL on the web is directed at people who have used
> databases extensively.
>

to be hones that's true to a certain extent but i always thought of mysql
being the access of open source dbs (just to cnfuse you further!!!) but it
certainly isn't the case. not as robust as postgresql for 100's of
concurrent users but feature rich and easy to use.

time to jump off the micro$oft bandwaggon - you'll never look back !!

Steve
> thanks everyone,
>
> - seb
>



-- 
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] Prevent user to close web browser

2001-07-19 Thread Tom Malone

I am almost positive this is not possible with JavaScript or even VBScript.
It might be possible with Visual Basic, but again - why would you want to do
that?

Tom

-Original Message-
From: kath [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 19, 2001 8:39 AM
To: Mihailo Dzigurski
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Prevent user to close web browser


Not with PHP.  Maybe some Javascript could.

But why would you want this?  Planning some infinite spawning pop up
website?
=)

- k

On Thursday 19 July 2001 08:28 am, you wrote:
> Hello,
>
> I need to prevent user to close the web browser on close button or by
> pressing ALT+F4.
>
> Is this possible?
>
> Thanks,
> Mihailo.
>
>
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://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 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] REGEXP

2001-07-19 Thread Sheridan Saint-Michel

I am not sure if I am understanding you... but if you just want to return
the boundary try

preg_match("|boundary=\"([^\"].+)\"|Uis", $text, $regs );
$boundary = $regs[1];

I am guessing that you want the boundary from the lines
> to avoid regexp (too lazy) but now I want to use it.  The final result I
> would need is: B42DA66C4EC07C9B572A58FC so that I can search

If you are looking for something else let me know
Sheridan

> -Original Message-
> From: Adrian D'Costa [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, July 14, 2001 2:54 AM
> To: php general list
> Subject: [PHP] REGEXP
>
> Hi,
>
> I am trying to capture the Header from a mail for my webmail using php
> and
> pop3.  The header is something like this:
> Content-Type: multipart/mixed;
>  boundary="B42DA66C4EC07C9B572A58FC"
>
> When I use preg_split("/[\d;]*/", $buffer), I get
> Content-Type: multipart/mixed;
>
> What I want is to return the whole line split by the ";".  I usually try
> to avoid regexp (too lazy) but now I want to use it.  The final result I
> would need is: B42DA66C4EC07C9B572A58FC so that I can search
> in the body of the message for the rest of the parts.
>
> Any pointers would be helpful.
>
> Adrian
>
>
> --
> 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] XSLT module bugs (?)

2001-07-19 Thread Francis Fillion

The ® is because (well I think) of the utf-8 code, try utf8_decode() to
decode it and to get it back.

P.S. What is they command that you made for php 4.0.6 to parse your xml
file, I'm not able to parse a xml file with sablotron since 4.0.6.


Maxim Derkachev wrote:
> 
> Hi all.
> 
> Just met two bugs (?) in the xslt module.
> 1st. I replace HTML entities in the CDATA parts with their ascii
> equivalents ('<' -> '<', '>' -> '>', etc.)
> After XSLT transformation, '<' went back to '<', while any other
> remain untouched.
> 
> 2nd. After the transformation, &#; are substituted with
> their char equivalents, prepended with  character. E.g. ®
> ('registered' sign) become ® .
> 
> Could someone advise?
> 
> P.S. PHP4.0.6, Sablotron 0.6.
> 
> --
> Best regards,
> Maxim Derkachev mailto:[EMAIL PROTECTED]
> System administrator & programmer,
> Symbol-Plus Publishing Ltd.
> phone: +7 (812) 324-53-53
> www.books.ru, www.symbol.ru
> 
> --
> 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]

-- 
Francis Fillion, BAA SI
Broadcasting live from his linux box.
And the maintainer of http://www.windplanet.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] pcntl_fork()

2001-07-19 Thread Richard Heyes


Using this function, say I had two processes running, the parent
accepting connections on an inet socket, is it possible for the parent
to pass this socket connection onto the already existing child?

-- 
Richard Heyes
"I know not with what weapons World War III will be fought, but World
War IV will be fought with sticks and stones." - Albert Einstein 

--
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] Re: Basic database questions.

2001-07-19 Thread Seb Frost

Thanks Steve that's exactly the kind of 100% definate answers I needed :-)
Hadn't seen nor heard of front ends for it, will look into them!

- seb

-Original Message-
From: Steve Brett [mailto:[EMAIL PROTECTED]]
Sent: 19 July 2001 14:27
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Basic database questions.



"Seb Frost" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi everyone, this is my first ever post on the list so please be gentle
with
> me ;-)
>
> OK I want to put a database on my website.  Up until yesterday my
knowledge
> of databases was having created a very simple one when I was about 15 for
> GCSE IT.  Don't ask how, but I've always avoided them, learning c++ and
all
> the rest of it instead.  SO, I'm pretty computer literate, but know
nothing
> about databases.
>
> SO I'm told I should use PHP and MySQL.  Been learning PHP for the last
day
> or so, seems easy enough (so far!)
>
> But I'm confused.
>
> 1) Is MySQL just a set of instructions for querying a database or is it an
> actual format for storing a database.  Somehting I read suggested that
MySQL
> should be used to access Acess DB's - wtf?
>

mysql is a database management system that is relational to a certain extent
(no flames).
php has an abstraction layer that allows php to interface directly with
mysql (and other 'better' databases such as postgresql) via a port (5432 in
the case of postgresql).
drop access from your mind altogether. you simply don't need to use it if
you use mysql.

> 2) OK so I can see how the mysql instructions will get data from a
database
> but how do I create the little bastard in the first place?  SHOULD I be
> using something like access?  It makes no sense to me!
>

get mysql and install it. then get a front end editor like mysql-front or
pg_admin for mysql.
you can either use the front end to create your database or do it via the
command line using SQL.

> Sorry for the dumb questions, but I need soem dumb answers!  It seems
> everything about MySQL on the web is directed at people who have used
> databases extensively.
>

to be hones that's true to a certain extent but i always thought of mysql
being the access of open source dbs (just to cnfuse you further!!!) but it
certainly isn't the case. not as robust as postgresql for 100's of
concurrent users but feature rich and easy to use.

time to jump off the micro$oft bandwaggon - you'll never look back !!

Steve
> thanks everyone,
>
> - seb
>



--
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[2]: [PHP] XSLT module bugs (?)

2001-07-19 Thread Maxim Derkachev

Hello Francis,

Thursday, July 19, 2001, 5:43:37 PM, you wrote:

FF> The ® is because (well I think) of the utf-8 code, try utf8_decode() to
FF> decode it and to get it back.

Not bugs, as I know now.
 make the things work well.

FF> P.S. What is they command that you made for php 4.0.6 to parse your xml
FF> file, I'm not able to parse a xml file with sablotron since 4.0.6.

xslt_process(). Works well since the first try. I don't process file,
I compose xml in a string first.

-- 
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
System administrator & programmer,
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
www.books.ru, www.symbol.ru 



-- 
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] XSLT module bugs (?)

2001-07-19 Thread Francis Fillion

Here what I use xslt_process($xslString, $xmlString, $this->result);

and it give me this error 

Warning: Supplied argument is not a valid XSLT Processor resource in
/home/httpd/html/xml/include/class.transform_xsl.php on line
74

Maxim Derkachev wrote:
> 
> Hello Francis,
> 
> Thursday, July 19, 2001, 5:43:37 PM, you wrote:
> 
> FF> The ® is because (well I think) of the utf-8 code, try utf8_decode() to
> FF> decode it and to get it back.
> 
> Not bugs, as I know now.
>  make the things work well.
> 
> FF> P.S. What is they command that you made for php 4.0.6 to parse your xml
> FF> file, I'm not able to parse a xml file with sablotron since 4.0.6.
> 
> xslt_process(). Works well since the first try. I don't process file,
> I compose xml in a string first.
> 
> --
> Best regards,
> Maxim Derkachev mailto:[EMAIL PROTECTED]
> System administrator & programmer,
> Symbol-Plus Publishing Ltd.
> phone: +7 (812) 324-53-53
> www.books.ru, www.symbol.ru

-- 
Francis Fillion, BAA SI
Broadcasting live from his linux box.
And the maintainer of http://www.windplanet.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] asdasd

2001-07-19 Thread yossi

sdasd



-- 
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[2]: [PHP] XSLT module bugs (?)

2001-07-19 Thread Maxim Derkachev

Hello Francis,

Thursday, July 19, 2001, 6:05:55 PM, you wrote:

FF> Here what I use xslt_process($xslString, $xmlString, $this->result);

FF> and it give me this error 

FF> Warning: Supplied argument is not a valid XSLT Processor resource in
FF> /home/httpd/html/xml/include/class.transform_xsl.php on line
FF> 74

Haven't seen such an error yet.


-- 
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
System administrator & programmer,
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
www.books.ru, www.symbol.ru 



-- 
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] Paypal and PHP

2001-07-19 Thread ReDucTor

Hey,
does any one know a way to use paypal with php?
  - James "ReDucTor" Mitchell



Re: [PHP] XSLT module bugs (?)

2001-07-19 Thread Francis Fillion

Hi again Maxim, when this problem started I found that in the xslt php
cvs (because the manual on the php site doesn't seen to be accurate
anymore)

mixed xslt_process(resource processor,
string xml,
string xsl[,
string result[,
array  arguments[,
array  parameters]]])


so xslt_process need a resource processor, so it has to have an error,
because I don't pass any process.

Are you sure that you're using 4.0.6? If so what was your configure
option?
 
Thanks again.

Maxim Derkachev wrote:
> 
> Hello Francis,
> 
> Thursday, July 19, 2001, 6:05:55 PM, you wrote:
> 
> FF> Here what I use xslt_process($xslString, $xmlString, $this->result);
> 
> FF> and it give me this error
> 
> FF> Warning: Supplied argument is not a valid XSLT Processor resource in
> FF> /home/httpd/html/xml/include/class.transform_xsl.php on line
> FF> 74
> 
> Haven't seen such an error yet.
> 
> --
> Best regards,
> Maxim Derkachev mailto:[EMAIL PROTECTED]
> System administrator & programmer,
> Symbol-Plus Publishing Ltd.
> phone: +7 (812) 324-53-53
> www.books.ru, www.symbol.ru
> 
> --
> 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]

-- 
Francis Fillion, BAA SI
Broadcasting live from his linux box.
And the maintainer of http://www.windplanet.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] Prevent user to close web browser

2001-07-19 Thread Taylor, Stewart

Then you should be using the ignore_user_abort function which keeps a script
running even if a user shuts own their browser.

http://www.php.net/manual/en/function.ignore-user-abort.php


-Stewart

-Original Message-
From: Mihailo Dzigurski [mailto:[EMAIL PROTECTED]]
Sent: 19 July 2001 13:47
To: kath; Mihailo Dzigurski
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Prevent user to close web browser


I need it for my intranet web site, some of my users close browser on long
lasting script and I need to prevent this.

Thanks,
Mihailo.

-Original Message-
From: kath [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 19, 2001 2:39 PM
To: Mihailo Dzigurski
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Prevent user to close web browser


Not with PHP.  Maybe some Javascript could.

But why would you want this?  Planning some infinite spawning pop up
website?
=)

- k

On Thursday 19 July 2001 08:28 am, you wrote:
> Hello,
>
> I need to prevent user to close the web browser on close button or by
> pressing ALT+F4.
>
> Is this possible?
>
> Thanks,
> Mihailo.
>
>
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com


_
Do You Yahoo!?
Get your free @yahoo.com address at http://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 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] Paypal and PHP

2001-07-19 Thread chris schneck

theexchangeproject.org has a "module" built into their store that works
directly with paypal, ive set up and succesfully used it to tie into a
paypal account. Although it might be a little more powerful than what you
want, the code there shows which variables to be passed to paypal to make a
transaction. That information is also on paypal's website.
- Original Message -
From: "ReDucTor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 19, 2001 7:12 AM
Subject: [PHP] Paypal and PHP


Hey,
does any one know a way to use paypal with php?
  - James "ReDucTor" Mitchell



-- 
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] Re: Basic database questions.

2001-07-19 Thread Steve Brett

you can get mysql font from http://www.anse.de/mysqlfront/

be sure to install mysql first though.
if you're using windows 2000 then get php from http://www.php.net and
install after installing IIS5
then install mysql front.

the  nice thing about it is the installers are superb and you can get away
with installing the three progs and off you go.

let me know if you need any further help.

Steve

"Seb Frost" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Thanks Steve that's exactly the kind of 100% definate answers I needed :-)
> Hadn't seen nor heard of front ends for it, will look into them!
>
> - seb
>
> -Original Message-
> From: Steve Brett [mailto:[EMAIL PROTECTED]]
> Sent: 19 July 2001 14:27
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: Basic database questions.
>
>
>
> "Seb Frost" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hi everyone, this is my first ever post on the list so please be gentle
> with
> > me ;-)
> >
> > OK I want to put a database on my website.  Up until yesterday my
> knowledge
> > of databases was having created a very simple one when I was about 15
for
> > GCSE IT.  Don't ask how, but I've always avoided them, learning c++ and
> all
> > the rest of it instead.  SO, I'm pretty computer literate, but know
> nothing
> > about databases.
> >
> > SO I'm told I should use PHP and MySQL.  Been learning PHP for the last
> day
> > or so, seems easy enough (so far!)
> >
> > But I'm confused.
> >
> > 1) Is MySQL just a set of instructions for querying a database or is it
an
> > actual format for storing a database.  Somehting I read suggested that
> MySQL
> > should be used to access Acess DB's - wtf?
> >
>
> mysql is a database management system that is relational to a certain
extent
> (no flames).
> php has an abstraction layer that allows php to interface directly with
> mysql (and other 'better' databases such as postgresql) via a port (5432
in
> the case of postgresql).
> drop access from your mind altogether. you simply don't need to use it if
> you use mysql.
>
> > 2) OK so I can see how the mysql instructions will get data from a
> database
> > but how do I create the little bastard in the first place?  SHOULD I be
> > using something like access?  It makes no sense to me!
> >
>
> get mysql and install it. then get a front end editor like mysql-front or
> pg_admin for mysql.
> you can either use the front end to create your database or do it via the
> command line using SQL.
>
> > Sorry for the dumb questions, but I need soem dumb answers!  It seems
> > everything about MySQL on the web is directed at people who have used
> > databases extensively.
> >
>
> to be hones that's true to a certain extent but i always thought of mysql
> being the access of open source dbs (just to cnfuse you further!!!) but it
> certainly isn't the case. not as robust as postgresql for 100's of
> concurrent users but feature rich and easy to use.
>
> time to jump off the micro$oft bandwaggon - you'll never look back !!
>
> Steve
> > thanks everyone,
> >
> > - seb
> >
>
>
>
> --
> 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] I AM AT THE START POINT

2001-07-19 Thread Ali YILDIRIM

Hi;
I am just at the beginning process to php.
My question is: 
I type in notepad my php code ok allright but where
will I test this?

I know this is so simple but you know I am new to this
and ...
Please help..


__
Do You Yahoo!?
Get personalized email addresses from 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]




[PHP] limiting text output

2001-07-19 Thread chris schneck

To anyone else who had the same problem, I thought i'd share the solution
that was passed on to me. It was suggested that counting the # of characters
in a string would work, and it does, but a better way to do it as not to cut
yourself off in mid sentence is to count the # of actual words.

-- snipity snip --
function make_newsbite($body, $len){ // $body is
article $len is maxwords
 $words = Array();
 preg_match_all('/([^ ]*) */', $body, $words); // separate
string into words array
 for($n = 0; $n <= $len; $n++){ // for count words to len
 $newsbite .= $words[0][$n] . ' '; // append words
to $newsbite
 }
 return $newsbite;
}
-- snipity snip --

use it like

$lilnews = make_newsbite($bignews, 80);

Hope this solution helps others.

A big thanks to Don Read for this code.

if ( strlen($foo) > 100) {
echo substr($foo,0,100), ' More ...';
} else {
echo $foo;
}


-- 
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] Install problems

2001-07-19 Thread Michael Hall


I think that --config-file-path needs to be the path to apache, not php.

--config-file-path=/usr/local/apache

Check in the README.configure file in the Apache source directory.

Mick

On Thu, 19 Jul 2001, Chetan Ganpati wrote:
> Hello,
> 
> I am trying to install PHP4 on a redhat 6.2 box.
> I have got mysql-3.23-39 and apache-1.3.14-2.6.2
> installed.
> I did a 
> ./configure --prefix=/usr/local/php
> ---with-config-file-path=/usr/loca/php
> --with-apxs=/usr/sbin/apxs
> --with-mysql=/usr/local/mysql  --enable-track-vars
> --enable-magic-quotes --enable-debugger
> 
> and then a make and make install
> 
> when i try to restart apache i get this error:-
> Starting httpd: Syntax error on line 873 of
> /etc/httpd/conf/httpd.conf:
> Cannot load /etc/httpd/modules/libphp4.so into server:
> /etc/httpd/modules/libphp
> 4.so: undefined symbol: uncompress
> 
> line 873 is this
> LoadModule php4_modulemodules/libphp4.so and
> the next is
> AddModule mod_php4.c
> 
> Would be grateful if someone could help me
> Thanks 
> Chetan
> 
> 
> 
> __
> Do You Yahoo!?
> Get personalized email addresses from 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]
-- 
Michael Hall
mulga.com.au
[EMAIL PROTECTED]
ph/fax (+61 8) 8953 1442
ABN 94 885 174 814

-- 
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] Session problems

2001-07-19 Thread Bernie Kruger

Hi,

I use this simple session script below,  but the session variables are not
carried over from 1.php to 2.php.  What can be wrong?  I can see on the
server that the files are created.  When I open 1.php a 1K file is created
on the server and the contents (my_session_variable|s:10:"some value";).
When I open 2.php afterwards a 0K file is created on the server which is
empty.

I use IIS5, Win2k, PHP 4.0.5, IE5.5.
Session method: files

(1.php)



and

(2.php)



Tx
BK



-- 
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] Prevent user to close web browser

2001-07-19 Thread Matt Greer

on 7/19/01 8:33 AM, Tom Malone at [EMAIL PROTECTED] wrote:

> I am almost positive this is not possible with JavaScript or even VBScript.
> It might be possible with Visual Basic, but again - why would you want to do
> that?

Netscape will warn the user that the script (javascript) is trying to close
their main window.

Matt


-- 
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] Session problems

2001-07-19 Thread Adrian Ciutureanu

Default settings for sessions is to use cookies that expires when you
close (all instances of) the browser. If you are simply type 1.php and
then 2.php in Address your code must work. But, again: if you are using
the default configuration.

> -Original Message-
> From: Bernie Kruger [mailto:[EMAIL PROTECTED]]
> Sent: 19 iulie 2001 17:44
> To: [EMAIL PROTECTED]
> Subject: [PHP] Session problems
> 
> 
> Hi,
> 
> I use this simple session script below,  but the session 
> variables are not
> carried over from 1.php to 2.php.  What can be wrong?  I can 
> see on the
> server that the files are created.  When I open 1.php a 1K 
> file is created
> on the server and the contents 
> (my_session_variable|s:10:"some value";).
> When I open 2.php afterwards a 0K file is created on the 
> server which is
> empty.
> 
> I use IIS5, Win2k, PHP 4.0.5, IE5.5.
> Session method: files
> 
> (1.php)
> 
>  session_start();
> $my_session_variable = "some value";
> session_register("my_session_variable");
> ?>
> 
> and
> 
> (2.php)
> 
>  session_start();
> print "Value of 'my_session_variable': $my_session_variable";
> ?>
> 
> Tx
> BK
> 
> 
> 
> -- 
> 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] Session problems

2001-07-19 Thread Slavomir Slizik

Hello,

check out if you have cookies turned on. Or, compile php with
--enable-trans-sid, where the PHPSESSID is automatically attached to all
URLs and forms without using cookies.
try to do session_register() before session_start() in 1.php, or do not
use session_start() in 1.php (only session_register()).

slavko


On Thu, 19 Jul 2001, Bernie Kruger wrote:

> Hi,
>
> I use this simple session script below,  but the session variables are not
> carried over from 1.php to 2.php.  What can be wrong?  I can see on the
> server that the files are created.  When I open 1.php a 1K file is created
> on the server and the contents (my_session_variable|s:10:"some value";).
> When I open 2.php afterwards a 0K file is created on the server which is
> empty.
>
> I use IIS5, Win2k, PHP 4.0.5, IE5.5.
> Session method: files
>
> (1.php)
>
>  session_start();
> $my_session_variable = "some value";
> session_register("my_session_variable");
> ?>
>
> and
>
> (2.php)
>
>  session_start();
> print "Value of 'my_session_variable': $my_session_variable";
> ?>
>
> Tx
> BK
>
>
>
> --
> 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] Using GnuPG with PHP

2001-07-19 Thread Jeff Bearer

I saw examples of how to encrypt data with GnuPG in the list archives 
but I'm having problems that aren't mentioned.  I've installed the public 
key in the web server users key ring, and if I run the command as the 
web server user it works just fine.  But when the script runs it I get 
nothing returned and no errors.


$command="echo \"$plain\"|gpg -e -a --always-trust --no-secmem-warning --batch -r 
public_key";
$encrypted=`$command`;


I've tried with and without the --always-trust, --no-secmem-warning --batch 
in just about any order.  If i try to write it to a file with -o the script
does not create the file and there is still no error.

I'm assuming that STDOUT is returned to $encrypted with the backtick operator, 
how to I see what STDERR of gpg command is?  I figure there has to be something
there.  The only thing I can figure is that the environment for the web server
is different than when you su to the web server user. and that's messing things up.

Any help is appreciated, Thanks.


-- 
Jeff Bearer, RHCE
Webmaster
PittsburghLIVE.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] d

2001-07-19 Thread Jeff Bearer


-- 
Jeff Bearer, RHCE
Webmaster
PittsburghLIVE.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] Session problems

2001-07-19 Thread Bernie Kruger

1.Cookies are on
2.session.use_trans_sid = 1

Will try the rest.

Tx

"Slavomir Slizik" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello,
>
> check out if you have cookies turned on. Or, compile php with
> --enable-trans-sid, where the PHPSESSID is automatically attached to all
> URLs and forms without using cookies.
> try to do session_register() before session_start() in 1.php, or do not
> use session_start() in 1.php (only session_register()).
>
> slavko
>
>
> On Thu, 19 Jul 2001, Bernie Kruger wrote:
>
> > Hi,
> >
> > I use this simple session script below,  but the session variables are
not
> > carried over from 1.php to 2.php.  What can be wrong?  I can see on the
> > server that the files are created.  When I open 1.php a 1K file is
created
> > on the server and the contents (my_session_variable|s:10:"some value";).
> > When I open 2.php afterwards a 0K file is created on the server which is
> > empty.
> >
> > I use IIS5, Win2k, PHP 4.0.5, IE5.5.
> > Session method: files
> >
> > (1.php)
> >
> >  > session_start();
> > $my_session_variable = "some value";
> > session_register("my_session_variable");
> > ?>
> >
> > and
> >
> > (2.php)
> >
> >  > session_start();
> > print "Value of 'my_session_variable': $my_session_variable";
> > ?>
> >
> > Tx
> > BK
> >
> >
> >
> > --
> > 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] Re: Session problems

2001-07-19 Thread Steve Brett

id' resgister the session var first then change / set it.

don't actually know if it makes a diff 

Steve
"Bernie Kruger" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I use this simple session script below,  but the session variables are not
> carried over from 1.php to 2.php.  What can be wrong?  I can see on the
> server that the files are created.  When I open 1.php a 1K file is created
> on the server and the contents (my_session_variable|s:10:"some value";).
> When I open 2.php afterwards a 0K file is created on the server which is
> empty.
>
> I use IIS5, Win2k, PHP 4.0.5, IE5.5.
> Session method: files
>
> (1.php)
>
>  session_start();
> $my_session_variable = "some value";
> session_register("my_session_variable");
> ?>
>
> and
>
> (2.php)
>
>  session_start();
> print "Value of 'my_session_variable': $my_session_variable";
> ?>
>
> Tx
> BK
>
>



-- 
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] Re: Session problems

2001-07-19 Thread Bernie Kruger

Tried everything all of you suggested, still no luck :-(

BK

"Bernie Kruger" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I use this simple session script below,  but the session variables are not
> carried over from 1.php to 2.php.  What can be wrong?  I can see on the
> server that the files are created.  When I open 1.php a 1K file is created
> on the server and the contents (my_session_variable|s:10:"some value";).
> When I open 2.php afterwards a 0K file is created on the server which is
> empty.
>
> I use IIS5, Win2k, PHP 4.0.5, IE5.5.
> Session method: files
>
> (1.php)
>
>  session_start();
> $my_session_variable = "some value";
> session_register("my_session_variable");
> ?>
>
> and
>
> (2.php)
>
>  session_start();
> print "Value of 'my_session_variable': $my_session_variable";
> ?>
>
> Tx
> BK
>
>



-- 
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] Encryption and perl

2001-07-19 Thread Paul Mugabi

Hello,
I have been trying to get some stuff encrypted, sent by mail to another
machine and then decrypted on the other end by a perl script. I am using
base64 encoding to convert the encrypted data into ascii for transmission
over email. However, the perl script at the other end which does the
decrytion ends up with garbage. I'm pretty sure that my syntax is right.
I've tried using both Blowfish and TripleDES in PHP4. Here is a sample of
the code:

$enc=mcrypt_cbc(MCRYPT_TripleDES,$key,$msg,MCRYPT_ENCRYPT);
$encoded= base64_encode($enc);

$encoded is then sent by mail to the perl script.

BTW, PHP can descrypt the encrypted data but not perl. And when I encrypt
with perl, PHP can not decrypt it.

Does any one have any idea what the problem is?

Thanks in advance.
Paul


-- 
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] Re: Basic database questions.

2001-07-19 Thread Seb Frost

Im using win2k, but I have no intetntion of serving a webpage off of it, I
only have a 56k modem!  I'll be running the website off of an ISP.  Do I
still need to install IIS and stuff?  What for?

- seb

-Original Message-
From: Steve Brett [mailto:[EMAIL PROTECTED]]
Sent: 19 July 2001 15:33
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Basic database questions.


you can get mysql font from http://www.anse.de/mysqlfront/

be sure to install mysql first though.
if you're using windows 2000 then get php from http://www.php.net and
install after installing IIS5
then install mysql front.

the  nice thing about it is the installers are superb and you can get away
with installing the three progs and off you go.

let me know if you need any further help.

Steve

"Seb Frost" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Thanks Steve that's exactly the kind of 100% definate answers I needed :-)
> Hadn't seen nor heard of front ends for it, will look into them!
>
> - seb
>
> -Original Message-
> From: Steve Brett [mailto:[EMAIL PROTECTED]]
> Sent: 19 July 2001 14:27
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: Basic database questions.
>
>
>
> "Seb Frost" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hi everyone, this is my first ever post on the list so please be gentle
> with
> > me ;-)
> >
> > OK I want to put a database on my website.  Up until yesterday my
> knowledge
> > of databases was having created a very simple one when I was about 15
for
> > GCSE IT.  Don't ask how, but I've always avoided them, learning c++ and
> all
> > the rest of it instead.  SO, I'm pretty computer literate, but know
> nothing
> > about databases.
> >
> > SO I'm told I should use PHP and MySQL.  Been learning PHP for the last
> day
> > or so, seems easy enough (so far!)
> >
> > But I'm confused.
> >
> > 1) Is MySQL just a set of instructions for querying a database or is it
an
> > actual format for storing a database.  Somehting I read suggested that
> MySQL
> > should be used to access Acess DB's - wtf?
> >
>
> mysql is a database management system that is relational to a certain
extent
> (no flames).
> php has an abstraction layer that allows php to interface directly with
> mysql (and other 'better' databases such as postgresql) via a port (5432
in
> the case of postgresql).
> drop access from your mind altogether. you simply don't need to use it if
> you use mysql.
>
> > 2) OK so I can see how the mysql instructions will get data from a
> database
> > but how do I create the little bastard in the first place?  SHOULD I be
> > using something like access?  It makes no sense to me!
> >
>
> get mysql and install it. then get a front end editor like mysql-front or
> pg_admin for mysql.
> you can either use the front end to create your database or do it via the
> command line using SQL.
>
> > Sorry for the dumb questions, but I need soem dumb answers!  It seems
> > everything about MySQL on the web is directed at people who have used
> > databases extensively.
> >
>
> to be hones that's true to a certain extent but i always thought of mysql
> being the access of open source dbs (just to cnfuse you further!!!) but it
> certainly isn't the case. not as robust as postgresql for 100's of
> concurrent users but feature rich and easy to use.
>
> time to jump off the micro$oft bandwaggon - you'll never look back !!
>
> Steve
> > thanks everyone,
> >
> > - seb
> >
>
>
>
> --
> 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] I AM AT THE START POINT

2001-07-19 Thread Seb Frost

The most general way is to use FTP to upload the page you've just created to
a server that supports PHP.

This is normally done like this in windows:

ftp://username:[EMAIL PROTECTED]

Just fill in the relevant bits.

- seb

-Original Message-
From: Ali YILDIRIM [mailto:[EMAIL PROTECTED]]
Sent: 19 July 2001 15:34
To: [EMAIL PROTECTED]
Subject: [PHP] I AM AT THE START POINT


Hi;
I am just at the beginning process to php.
My question is:
I type in notepad my php code ok allright but where
will I test this?

I know this is so simple but you know I am new to this
and ...
Please help..


__
Do You Yahoo!?
Get personalized email addresses from 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]


-- 
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] I AM AT THE START POINT

2001-07-19 Thread Matt Greer

on 7/19/01 9:33 AM, Ali YILDIRIM at [EMAIL PROTECTED] wrote:

> Hi;
> I am just at the beginning process to php.
> My question is: 
> I type in notepad my php code ok allright but where
> will I test this?
> 
> I know this is so simple but you know I am new to this
> and ...
> Please help..

You can upload it to your webhost and test it that way. However that's not
very ideal. You should install a webserver, php and mysql on your own
computer. Then you can test what you're doing without needing to go online.

For windows98/ME you can get Personal Web Server, which is free and included
on Windows98/ME cds, or you can download it from microsoft.com (I don't know
where though). Then go to www.php.net and get the Windows version of php, or
go to www.php4win.de. I can't really help you on WinNT/2000.

If you're using Linux, you probably already have most, if not all, of what
you need installed. Apache and php are installed by default in the distros
I'm familiar with. If not you probably have the rpms on your linux cd, or
you can get them, or the source, off the net.

If you have linux, fire up a webbrowser and just type in "localhost" as the
URL, if it brings up a page about apache, chances are you're good to go.

I recommend grabbing "Beginning PHP4" from Wrox press. They cover getting
php installed pretty well, and of course give you a nice primer on the
language itself.

Matt


-- 
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] a goog "whatever you want" editor

2001-07-19 Thread Mauricio T?llez Jim?nez

What about Emacs?  I think this is the most powerful, configurable and extensible. Not 
only good with PHP, but also pretty good for any programming language (C, C++, Java, 
Ada, Assembly, HTML, etc). You can compile your programs from Emacs, and even debug 
them. Also have a lot of add-on like calculator, email client, news reader, calendar, 
ftp mode, etc.

In my opinion, the best choice for a serious programmer.

On Thu, Jul 19, 2001 at 12:30:24PM +0200, Aniceto Lopez wrote:
> My opinion: "UltraEdit" https://www.ultraedit.com
> 
> cheap, powerfull, totally configurable, ftp included,
> http://www.ultraedit.com/products/features.html
> free tag list (any code), word files, macros
> 
> I use it for html, xml, xsl, wml, php, javascript...
> 
> 
> 
> Ani Lopez
> http://www.lamundial.net
> visit us, download, spread our music

-- 
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] Re: Session problems

2001-07-19 Thread Steve Brett

another thing you could try is find out where the php session data is stored
and see if the session files are there - i think on win2k they are in
c:\php\sessiondata ...


Steve
"Bernie Kruger" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I use this simple session script below,  but the session variables are not
> carried over from 1.php to 2.php.  What can be wrong?  I can see on the
> server that the files are created.  When I open 1.php a 1K file is created
> on the server and the contents (my_session_variable|s:10:"some value";).
> When I open 2.php afterwards a 0K file is created on the server which is
> empty.
>
> I use IIS5, Win2k, PHP 4.0.5, IE5.5.
> Session method: files
>
> (1.php)
>
>  session_start();
> $my_session_variable = "some value";
> session_register("my_session_variable");
> ?>
>
> and
>
> (2.php)
>
>  session_start();
> print "Value of 'my_session_variable': $my_session_variable";
> ?>
>
> Tx
> BK
>
>



-- 
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] Variable dump on error

2001-07-19 Thread Randy Miller

Using mod_perl when an error is encountered, I have a customized error 
screen that is defined in http.conf that is displayed to the user.  This is 
just a customized 500 page that then emails me which page crashed and all 
of the local variables.

I can't seem to find a way to do this in PHP 4.0.6.  Mod_Perl on error 
throws a 500 to the webserver, where PHP seems to just keep on 
going.  Suppressing the errors only seems to return an empty page with a 
status of 200 as verified in my apache logs. I realize that I could have an 
error handling statement around every possible place an error could occur, 
but this doesn't seem very efficient to me.

Does anybody know of a way to generate an email on error with all the 
current variables?


Randy Miller -- Team Leader, Web Development
HighWired.com -- Your high school connection
http://www.highwired.com/
[EMAIL PROTECTED] -- 617.393.2233



-- 
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] Re: Basic database questions.

2001-07-19 Thread Steve Brett

i meant for writing your code etc and testing.

i generally write stuff on my windows machine and then ftp them to the
production server after i've tested/debugges them etc.

Steve

"Seb Frost" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Im using win2k, but I have no intetntion of serving a webpage off of it, I
> only have a 56k modem!  I'll be running the website off of an ISP.  Do I
> still need to install IIS and stuff?  What for?
>
> - seb
>
> -Original Message-
> From: Steve Brett [mailto:[EMAIL PROTECTED]]
> Sent: 19 July 2001 15:33
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Re: Basic database questions.
>
>
> you can get mysql font from http://www.anse.de/mysqlfront/
>
> be sure to install mysql first though.
> if you're using windows 2000 then get php from http://www.php.net and
> install after installing IIS5
> then install mysql front.
>
> the  nice thing about it is the installers are superb and you can get away
> with installing the three progs and off you go.
>
> let me know if you need any further help.
>
> Steve
>
> "Seb Frost" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Thanks Steve that's exactly the kind of 100% definate answers I needed
:-)
> > Hadn't seen nor heard of front ends for it, will look into them!
> >
> > - seb
> >
> > -Original Message-
> > From: Steve Brett [mailto:[EMAIL PROTECTED]]
> > Sent: 19 July 2001 14:27
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] Re: Basic database questions.
> >
> >
> >
> > "Seb Frost" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > Hi everyone, this is my first ever post on the list so please be
gentle
> > with
> > > me ;-)
> > >
> > > OK I want to put a database on my website.  Up until yesterday my
> > knowledge
> > > of databases was having created a very simple one when I was about 15
> for
> > > GCSE IT.  Don't ask how, but I've always avoided them, learning c++
and
> > all
> > > the rest of it instead.  SO, I'm pretty computer literate, but know
> > nothing
> > > about databases.
> > >
> > > SO I'm told I should use PHP and MySQL.  Been learning PHP for the
last
> > day
> > > or so, seems easy enough (so far!)
> > >
> > > But I'm confused.
> > >
> > > 1) Is MySQL just a set of instructions for querying a database or is
it
> an
> > > actual format for storing a database.  Somehting I read suggested that
> > MySQL
> > > should be used to access Acess DB's - wtf?
> > >
> >
> > mysql is a database management system that is relational to a certain
> extent
> > (no flames).
> > php has an abstraction layer that allows php to interface directly with
> > mysql (and other 'better' databases such as postgresql) via a port (5432
> in
> > the case of postgresql).
> > drop access from your mind altogether. you simply don't need to use it
if
> > you use mysql.
> >
> > > 2) OK so I can see how the mysql instructions will get data from a
> > database
> > > but how do I create the little bastard in the first place?  SHOULD I
be
> > > using something like access?  It makes no sense to me!
> > >
> >
> > get mysql and install it. then get a front end editor like mysql-front
or
> > pg_admin for mysql.
> > you can either use the front end to create your database or do it via
the
> > command line using SQL.
> >
> > > Sorry for the dumb questions, but I need soem dumb answers!  It seems
> > > everything about MySQL on the web is directed at people who have used
> > > databases extensively.
> > >
> >
> > to be hones that's true to a certain extent but i always thought of
mysql
> > being the access of open source dbs (just to cnfuse you further!!!) but
it
> > certainly isn't the case. not as robust as postgresql for 100's of
> > concurrent users but feature rich and easy to use.
> >
> > time to jump off the micro$oft bandwaggon - you'll never look back !!
> >
> > Steve
> > > thanks everyone,
> > >
> > > - seb
> > >
> >
> >
> >
> > --
> > 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[2]: [PHP] XSLT module bugs (?)

2001-07-19 Thread Maxim Derkachev

Hello Francis,

Thursday, July 19, 2001, 6:18:58 PM, you wrote:

FF> Hi again Maxim, when this problem started I found that in the xslt php
FF> cvs (because the manual on the php site doesn't seen to be accurate
FF> anymore)

FF> mixed xslt_process(resource processor,
FF> string xml,
FF> string xsl[,
FF> string result[,
FF> array  arguments[,
FF> array  parameters]]])


FF> so xslt_process need a resource processor, so it has to have an error,
FF> because I don't pass any process.

I suppose if only one resource is present, it is used by default.

FF> Are you sure that you're using 4.0.6? If so what was your configure
FF> option?

I definitely use 4.0.6. The option is  --with-sablot=.


-- 
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
System administrator & programmer,
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
www.books.ru, www.symbol.ru 



-- 
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] Re: Simple validation problem

2001-07-19 Thread py

I wonder how that can be enough, if you consider the following form,
you can enter "45-98" and it will print ok !!

Since all http is coming as a string, I beleive the only way is to test for
invalid
characters as anything except  [0-9] and the dot. (wich is my problem
because I do not really know how)
I event try with casting amount like this:
$amount = (float)($amount);
It does not work, I can still input "12r5" for exemple.

py

if( $amount >0 ){
  print "ok";
}else print "smaller than 0: error";

if( is_float( $amount )){
  print "ok";
}else print "not a float: error";
?>





- Original Message -
From: CC Zona <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 18, 2001 10:15 PM
Subject: [PHP] Re: Simple validation problem


> In article <00ef01c10fa5$fd20f2e0$e064fea9@py>, [EMAIL PROTECTED] (Py)
> wrote:
>
> > I am trying to make shure the amount is positive
>
> if($amount >0)
>{...}
>
> > and is a float
>
> if(is_float($amount))
>{...}
>
> --
> CC
>
> --
> 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] Using GnuPG with PHP

2001-07-19 Thread Maxim Derkachev

Hello Jeff,

Thursday, July 19, 2001, 6:50:18 PM, you wrote:


JB> $command="echo \"$plain\"|gpg -e -a --always-trust --no-secmem-warning --batch -r 
public_key";
JB> $encrypted=`$command`;

use popen() in read mode instead. There's a class made by me at
phpclasses.upperdesign.com that do the job.


-- 
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
System administrator & programmer,
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
www.books.ru, www.symbol.ru 



-- 
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] bcmath functions no longer there?

2001-07-19 Thread E. Peter K. Chan

Hi

I just did a rpm rebuild of PHP to 4.0.6 on RH7.1 and now the bcmath
functions are failing

Fatal error: Call to undefined function: bcsub()

Any ideas on this one?

Thanks

Peter


-- 
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] Re: Simple validation problem

2001-07-19 Thread py

Ok forget it, someone suggest to me:
if ((string)((float)$amount) == $amount && (float)$amount > 0) {
  print "ok";
}else print "error";

and it works perfectly!
py

- Original Message -
From: py <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 19, 2001 11:14 AM
Subject: Re: [PHP] Re: Simple validation problem


> I wonder how that can be enough, if you consider the following form,
> you can enter "45-98" and it will print ok !!
>
> Since all http is coming as a string, I beleive the only way is to test
for
> invalid
> characters as anything except  [0-9] and the dot. (wich is my problem
> because I do not really know how)
> I event try with casting amount like this:
> $amount = (float)($amount);
> It does not work, I can still input "12r5" for exemple.
>
> py
>
> if( $amount >0 ){
>   print "ok";
> }else print "smaller than 0: error";
>
> if( is_float( $amount )){
>   print "ok";
> }else print "not a float: error";
> ?>
> 
> 
> 
> 
>
> - Original Message -
> From: CC Zona <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, July 18, 2001 10:15 PM
> Subject: [PHP] Re: Simple validation problem
>
>
> > In article <00ef01c10fa5$fd20f2e0$e064fea9@py>, [EMAIL PROTECTED] (Py)
> > wrote:
> >
> > > I am trying to make shure the amount is positive
> >
> > if($amount >0)
> >{...}
> >
> > > and is a float
> >
> > if(is_float($amount))
> >{...}
> >
> > --
> > CC
> >
> > --
> > 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] Re: Session problems

2001-07-19 Thread Rudolf Visagie

Hi Bernie,

Do a session_register in the second script as well:
 session_start();
> session_register("my_session_variable");
> print "Value of 'my_session_variable': $my_session_variable";
> ?>

Rudolf Visagie

-Original Message-
From: Bernie Kruger [mailto:[EMAIL PROTECTED]]
Sent: 19 July 2001 04:55
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Session problems


Tried everything all of you suggested, still no luck :-(

BK

"Bernie Kruger" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I use this simple session script below,  but the session variables are not
> carried over from 1.php to 2.php.  What can be wrong?  I can see on the
> server that the files are created.  When I open 1.php a 1K file is created
> on the server and the contents (my_session_variable|s:10:"some value";).
> When I open 2.php afterwards a 0K file is created on the server which is
> empty.
>
> I use IIS5, Win2k, PHP 4.0.5, IE5.5.
> Session method: files
>
> (1.php)
>
>  session_start();
> $my_session_variable = "some value";
> session_register("my_session_variable");
> ?>
>
> and
>
> (2.php)
>
>  session_start();
> print "Value of 'my_session_variable': $my_session_variable";
> ?>
>
> Tx
> BK
>
>



-- 
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] is this right?

2001-07-19 Thread Jeremy Morano

is this right?
cause its not working.



first I connect,
then I select my db,

and then the problem


$sql = "GLOBAL $company;
DROP TABLE $company ";
$result = @mysql_query($sql,$connection) or die("Couldn't execute query.");




-- 
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[2]: [PHP] Prevent user to close web browser

2001-07-19 Thread Daniel Rezny

Hello all,

Thursday, July 19, 2001, 2:53:03 PM, you wrote:

SB> have a javascript function that is fired when you load the index page.

SB> i have a calendar system that i wrote at work that is displayed in a window
SB> with most of the features turned off like toolbars etc.

SB> have a look at 'on load' and window properties.

SB> it's a doddle.

SB> and no i didn't find it on a porn site. ;-)

SB> Steve

On what OS running your users?
If on win you can install there a small program. But I think it is not
what did you want. But I know that you cant do it with PHP. You can do
it with javascript as I know.

If you want a program I can help.

-- 
Best regards,
 Danielmailto:[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] Re: d (ignore)

2001-07-19 Thread Philip Olson

sorry, testing news with a list I also subscribe too. php rules :-)


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




  1   2   3   >