RE: [PHP] last modified

2001-04-24 Thread Maxim Maletsky
my own 2c: fopen: fwrite into a file of yours, when doing a check: fopen compare the buffer size to the file size you have saved. or the whole HTML code as a string. But, I guess it is very unreliable since there are such things as banner rotations etc... Maybe there's another way to do it I

RE: [PHP] New uses please help mysql query problem

2001-04-24 Thread Maxim Maletsky
try the query like this: mysql_query("INSERT INTO members (email, uname, fname, lname, city, state, phone, address)VALUES('$email','$uname','$fname','$lname','$city','$state',' $phone','$address'") or DIE("ERROR : ".mysql_errno() ." ".mysql_error().""); But, honestly I think you're missing few

RE: [PHP] hello

2001-04-24 Thread Maxim Maletsky
what about Webmin? it's wuite cool, it has it all. (don't remember the URL, it comes with Linux Mandrake 7.2 for sure) try searching on google Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Mess

Re: [PHP] unable to parse php

2001-04-24 Thread elias
you're trying to include test.php w/o specifiying it's correct location in your other PHP script. that's how it looks from here... -elias http://eassoft.cjb.net <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Anyone able to shed some light on this error? > > W

Re: [PHP] Precedence question- cookie value over form value?

2001-04-24 Thread Rasmus Lerdorf
> If I have a script that checks to see if a variaable is defined. The > variaable is from a form and is sent to the script. There is also a > cookie that may be set with a name as the same name as from the form. > When the script checks and assuming the cookie is set and a value sent > from the f

[PHP-CVS] cvs: php4 /sapi/thttpd thttpd.c

2001-04-24 Thread Sascha Schumann
sas Tue Apr 24 23:42:24 2001 EDT Modified files: /php4/sapi/thttpd thttpd.c Log: Fix optimization -- we did not send out custom Response Status Lines. Index: php4/sapi/thttpd/thttpd.c diff -u php4/sapi/thttpd/thttpd.c:1.40 php4/sapi/thttpd/thttpd.c:1.4

[PHP-CVS] cvs: php4 /ext/standard filestat.c

2001-04-24 Thread Andi Gutmans
andiTue Apr 24 23:30:24 2001 EDT Modified files: /php4/ext/standard filestat.c Log: - Fix filetype() and lstat() too. Index: php4/ext/standard/filestat.c diff -u php4/ext/standard/filestat.c:1.60 php4/ext/standard/filestat.c:1.61 --- php4/ext/standard/f

Re: [PHP] Can I install Lihnux on My Windows 95 machine ?

2001-04-24 Thread B. van Ouwerkerk
>Current my Hard disk space for drive F:\ is 2.92 GB which is just fine >for the time being. Do you mean to say that I can increase from 2.9 GB to >let us say 4GB by taking it from some other drive may be D:\ ? > >Can you explain some more ? Partitionmagic is the SW you need to do this. It mi

[PHP-CVS] cvs: php4 /ext/standard filestat.c

2001-04-24 Thread Andi Gutmans
andiTue Apr 24 22:53:45 2001 EDT Modified files: /php4/ext/standard filestat.c Log: - Another fix Index: php4/ext/standard/filestat.c diff -u php4/ext/standard/filestat.c:1.59 php4/ext/standard/filestat.c:1.60 --- php4/ext/standard/filestat.c:1.59 Tue

Re: [PHP] Can I install Lihnux on My Windows 95 machine ?

2001-04-24 Thread Brian Clark
Hi Manisha, @ 1:48:35 AM on 4/25/2001, Manisha wrote: ... > Can any body comment ? This isn't the list for that. You need to start here: http://www.linux.org/dist/index.html Pick a distribution, visit its site, join their user discussion list, and ask those questions there. Or at the very le

Re: [PHP] Can I install Lihnux on My Windows 95 machine ?

2001-04-24 Thread Yasuo Ohgaki
Obviously, not all file systems cannot be resized w/o loosing contents. You can use GNU parted, FIPS, etc to resize partitions w/o loosing contents. GNU parted supports resizing FAT16, FAT32, ext2 and Linux-swap. You should have unused spaces to shrunk partition size obviously. Tools like Norton

Re: [PHP] Can I install Lihnux on My Windows 95 machine ?

2001-04-24 Thread Manisha
Hi all, Again I am here asking the same question as I got confused because of my colleague's comment. I asked my colleague (who is in charge of all network administrator - setups - hardware configurations etc etc etc)). I asked the same question that I am having 4 drives, I want one drive to

[PHP-CVS] cvs: php4 /ext/standard filestat.c

2001-04-24 Thread Andi Gutmans
andiTue Apr 24 22:43:31 2001 EDT Modified files: /php4/ext/standard filestat.c Log: - Nuke warning. This signed/unsigned stuff gets really annoying sometimes. Index: php4/ext/standard/filestat.c diff -u php4/ext/standard/filestat.c:1.58 php4/ext/standar

Re: [PHP] checking if e-mail address and syntax are valid

2001-04-24 Thread Felix Kronlage
On Tue, Apr 24, 2001 at 02:33:18PM -0700, Szii wrote: > Checking to see if it's "syntactically correct" is trivial. Validating the > domain is rather simple as well (check the retcode on a whois lookup.) Which is not as trivial as it sounds, since whois does not really have "return-codes". Yo

[PHP] unable to parse php

2001-04-24 Thread Brendan_Caulfield
Anyone able to shed some light on this error? Warning: Failed opening '/usr/local/apache/htdocs/php/test/test.php' for inclusion (include_path='') in Unknown on line 0 thanks, brendan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional co

Re: [PHP] .inc location security

2001-04-24 Thread Avetis Avagyan
You can consider also Order allow,deny Deny from all sections are processed in the order they appear in the configuration file, after the sections and .htaccess files are read, but before sections. Note that can be nested inside sections to restrict the portion of the filesystem t

[PHP] hello

2001-04-24 Thread SuiteNet Operations Manager
Im looking to set-up a customer based control panel for my servers. Running linux/apache. I was wondering if you had any advice on ware to look for programs or scripts that might help me to do this. I tried looking. And I have not found anything any help would be highly appreciated thank y

[PHP] Directory Alias Problems with Apache1.3/PHP4

2001-04-24 Thread Vivre Draco
Recently, I decided to convert my personal homepage to PHP. For simplicity, I do development on my home Windows 2000 box running Apache 1.3 and PHP 4, then FTP the code to the actual Linux-based web server (also running Apache/PHP 4). Since dealing with relative paths and included files in

Re: [PHP] Can I install Lihnux on My Windows 95 machine ?

2001-04-24 Thread Manisha
Is it ? Current my Hard disk space for drive F:\ is 2.92 GB which is just fine for the time being. Do you mean to say that I can increase from 2.9 GB to let us say 4GB by taking it from some other drive may be D:\ ? Can you explain some more ? At 12:54 PM 4/25/01 +0900, Yasuo Ohgaki wrote:

[PHP-CVS] cvs: php4 /ext/standard filestat.c

2001-04-24 Thread Andi Gutmans
andiTue Apr 24 21:22:30 2001 EDT Modified files: /php4/ext/standard filestat.c Log: - Fix problem with is_link(), there seem to be at least another couple of - bugs lurking around though. - Cleaned up code a bit and optimized it a bit too. Index: ph

Re: [PHP] Can I install Lihnux on My Windows 95 machine ?

2001-04-24 Thread Yasuo Ohgaki
Although, this is nothing to do with PHP. You have several options to use Win and Linux - Multi-boot with separate partitions - Multi-boot with umsdos (You can install Linux in windows partition with this) - Virtual machine - use VMWare for example. You can use windows and Linux at the same ti

Re: [PHP] getting rows from separate tables stacked in a single array ? (newbie, mysql)

2001-04-24 Thread Steve Lawson
Doh, I shoulda thought of that, a temp table is the best way to do it. Altho, I don't see why you have a spot_id as a key for that table. Your are probably never going to access that table via that arbitrary number. If anything, you should make item_id the key. The id on your other tables shoul

Re: [PHP] random letters and numbers

2001-04-24 Thread J. Jones
On Mon, Apr 23, 2001 at 11:10:48PM -0700, Randy Johnson wrote: > Is there a way to generate a random set of characters ranging from 8 to 12 > characters and numbers where it is crucial that the letters and numbers are > truly random because I need to create temporary files for people to download >

Re: [PHP] random letters and numbers

2001-04-24 Thread Steve Lawson
Sup, I made this and have been using it for about 6 months without problem. mt_rand() is 4 times faster than normal rand(), remember to use mt_srand() to seed. The 8 in the while controls how long the $password will be... $count = 0; mt_srand( (double) microtime() * 100); while( $coun

[PHP] random letters and numbers

2001-04-24 Thread Randy Johnson
Is there a way to generate a random set of characters ranging from 8 to 12 characters and numbers where it is crucial that the letters and numbers are truly random because I need to create temporary files for people to download information. Any links/suggestions would be greatly appreciated Than

Re: [PHP] Can I install Lihnux on My Windows 95 machine ?

2001-04-24 Thread Manisha
Thanks a lot to all of you for your info. Now I will try to do it. manisha -- 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] getting rows from separate tables stacked in a single array ? (newbie, mysql)

2001-04-24 Thread Nicolas Mermet
Thanks a bunch, SL. I was expecting some heavy manipulation of that sort. Wouldnt have been able to write that code. (yet ! ;-). I will try that tomorow. This afternoon In despair I ended tweaking the db and creating an extra table to link all the desired tables with a time indice, temporarily s

Re: [PHP] Can I install Lihnux on My Windows 95 machine ?

2001-04-24 Thread Manisha
I have Pentium II Processor with 64 MB RAM. The drive which I am thinking of converting into Lihnux (F:) has 2.92 GB hard disk space. Current file system is FAT 32. I am thinking of loading Red Hat Linux (may be latest version) and Appache web server by formating that drive. I know I can have

Re: [PHP] Can I install Lihnux on My Windows 95 machine ?

2001-04-24 Thread Kath
This isn't really the list for this. Read the docs here: http://www.linuxdoc.org/HOWTO/Linux+Windows-HOWTO/index.html http://www.linuxdoc.org/HOWTO/mini/Linux+Win95/index.html You also might want to read the NHFs here: http://www.linuxnewbie.org/nhf/intel/index.html - Kath - Original Mes

Re: [PHP] Can I install Lihnux on My Windows 95 machine ?

2001-04-24 Thread Wade DeWerff
its much more than that however, I have Linux, 98, win2k and NT server on my box..which has 2 physical hard drives and 5-6 partitions. However I strongly suggest you read up on this subject of multi-boot. You have to take into consideration that most operating systems require up to the first 4-8

Re: [PHP] Can I install Lihnux on My Windows 95 machine ?

2001-04-24 Thread Jack Dempsey
Yes, that's the idea behind having multiple drives ( or partitions ). If you format F and load Linux on it, then that won't affect any other partition... -jack Manisha wrote: > > Hi all, > > I am having my own personal computer running on windows 95. I have C / D / > E / F / G drives with FAT

[PHP] Can I install Lihnux on My Windows 95 machine ?

2001-04-24 Thread Manisha
Hi all, I am having my own personal computer running on windows 95. I have C / D / E / F / G drives with FAT 32 file system with lot of information on it. I can format one drive out of these. Can I install Linux on it ? (i.e. format F:\ and load Linux). Later on I want to load Apache also on

[PHP] Help php ICQ function

2001-04-24 Thread Greg Kelly
I am a newuser to php , I am setting up a site with user authenication and I would like to setup a ICQ function some my users will know if other users are online can someone please guide me in the right direction.. Thank You -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-

[PHP] New uses please help mysql query problem

2001-04-24 Thread Greg Kelly
I am having a problem inserting users info info into the mysql database. When I check mysql log it shows the query I tried to run. But when I go check the mysql database the info doesn't appear, I checked the permissions on the user I have setup and he has all the proper rights. If anyone have any

Re: Re[3]: [PHP-CVS] cvs: php4 /main config.w32.h php_ini.c

2001-04-24 Thread Stig Sæther Bakken
[Marc Boeren <[EMAIL PROTECTED]>] > >If there are we are better off finding them and fixing them instead of > >defaulting to c:\php4. I think we should follow the Windows standard on > >Windows. I know that I hate when programs want to install themselves in c:\ > > >on Windows. > > Just statin

Re: [PHP-CVS] cvs: php4 /main config.w32.h php_ini.c

2001-04-24 Thread Stig Sæther Bakken
["James Moore" <[EMAIL PROTECTED]>] > how about defaulting to SystemDrive\\php4 but also allowing a envromental > variable to be set so > > #define PHP_BINDIR (getenv("PHP_BinDir"))?getenv("PHP_BinDir"):c:\\php4 > > or somthing like that which works in C Using environment variables would be use

Re: [PHP-CVS] cvs: php4 /main config.w32.h php_ini.c

2001-04-24 Thread Stig Sæther Bakken
["Frank M. Kromann" <[EMAIL PROTECTED]>] > fmk Mon Apr 23 10:33:22 2001 EDT > > Modified files: > /php4/mainconfig.w32.h php_ini.c > Log: > Fix build on WIn32 > Should the new directorys be static? For now that's ok, but I guess the installer should l

[PHP] user login names/values

2001-04-24 Thread Dennis Gearon
I've been on many sites, like most of us. Which do the members of this list like better, email address for an identifier, or some combination of their input/some routine's output? %like% as in: A/ for security, programming, our jobs/hobby usage, -or- B/ as a user/member our/your-self? -- PHP Ge

Re: [PHP] DOCUMENT_ROOT

2001-04-24 Thread Yasuo Ohgaki
If you are using Apache virtual host, it will set virtual host's document root. Is this what you want? Regards, -- Yasuo Ohgaki "Jordan Elver" <[EMAIL PROTECTED]> wrote in message 01042417535900.00987@localhost">news:01042417535900.00987@localhost... > Hi, > Has any got any idea why $DOCUMENT_R

Re: [PHP] Parse Error for a weirdo!

2001-04-24 Thread Yasuo Ohgaki
Are you using short tag? or asp tag? What happen if you use ""? Regards, -- Yasuo Ohgaki ""ouarz.net"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hiya, > > I am not a weirdo (at least I think so) ;) > > Considere this (Notice the line number): >

[PHP] last modified

2001-04-24 Thread Kasten, Holger
Hello, how can I check the last modified date of a website. I mean not my own site, I mean other sites. Thanx, Holger -- 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 administr

[PHP-CVS] cvs: php4 / TODO-4.1.txt

2001-04-24 Thread Stig Bakken
ssb Tue Apr 24 16:18:37 2001 EDT Modified files: /php4 TODO-4.1.txt Log: whoops, two less items for 4.1 Index: php4/TODO-4.1.txt diff -u php4/TODO-4.1.txt:1.4 php4/TODO-4.1.txt:1.5 --- php4/TODO-4.1.txt:1.4 Mon Apr 16 06:54:10 2001 +++ php4/T

[PHP] MSIE on Windows can't open PDF via SSL

2001-04-24 Thread DAve Goodrich
First off I'm aware of the service pack, installed it, no fix. Currently we build a PDF for download to represent a hardcopy of our customers data. It works very well so far and will likely become a standard feature. We experienced no problems with cross-platform use until we moved into a mod_ssl

Re: [PHP] Newline in a guestbook

2001-04-24 Thread Plutarck
You can also use the strlen() function. -- Plutarck Should be working on something... ...but forgot what it was. "Jimmy Bäckström" <[EMAIL PROTECTED]> wrote in message 000a01c0cd06$351f1060$[EMAIL PROTECTED]">news:000a01c0cd06$351f1060$[EMAIL PROTECTED]... Hey guys! I'm writing a guestbook wit

Re: [PHP] checking url

2001-04-24 Thread Plutarck
How do you mean, "check"? Do you want to use a regular expression to see if it's a valid URL, or do you want to open a connection to it and see if the site actually exists? -- Plutarck Should be working on something... ...but forgot what it was. "Dmitry" <[EMAIL PROTECTED]> wrote in message [E

Re: [PHP] checking if e-mail address and syntax are valid

2001-04-24 Thread Plutarck
I'll save everyone the trouble and skip ahead to the anti-climactic end to the email validation problem: you can't. You can filter blatantly invalid email addresses (but do not go strictly from the RFC, because some very weird emails end up being valid regardless). You can resolve hosts. You can

Re: [PHP] getting rows from separate tables stacked in a single array ? (newbie, mysql)

2001-04-24 Thread Steve Lawson
Sup, It can be done...but it will be complicated. First off. You should check out the extract() php command. http://php.net/extract This function makes entries in an array into local variables. Let's say your row array has 2 columns, title and duration. You can do: while( $row = mysql_f

Re: [PHP] Very important.

2001-04-24 Thread Plutarck
I responded to the message which included the attachment, and here it is for those who missed it: Goody, a virus. LOL Note: According to the Virus scanner used on php.net (or on the mailing list. whichever) Emanuel.exe is a virus. Here is the URL for information on it: http://vil.mcafee.com/dis

Re: [PHP] ereg_replace

2001-04-24 Thread J. Jones
On Tue, Apr 24, 2001 at 06:21:20PM -0400, Wade wrote: > I am attempting to do an ereg_replace(), but the charachter I want to > replace is a \. Any Ideas how I make the following work? > > $F_name = ereg_replace ("\", "", $acc_fname); > echo $F_name; > > Thanks, > Wade > use \\ -- PHP Ge

[PHP] ereg_replace

2001-04-24 Thread Wade
I am attempting to do an ereg_replace(), but the charachter I want to replace is a \. Any Ideas how I make the following work? $F_name = ereg_replace ("\", "", $acc_fname); echo $F_name; Thanks, Wade -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTE

RE: [PHP] File Transfer over HTTPS

2001-04-24 Thread Rasmus Lerdorf
> If I wanted to use this utility to copy a file from a users (Windows) > workstation to my (Linux) webserver, how would I do this? The program on > the users workstation will create a file called "info.txt" and place it in > c:\wow. I want it to go to my server upload.mydomain.com. How do I ge

php-general Digest 24 Apr 2001 22:13:44 -0000 Issue 647

2001-04-24 Thread php-general-digest-help
php-general Digest 24 Apr 2001 22:13:44 - Issue 647 Topics (messages 50041 through 50200): how to install Win2K over Linux machine 50041 by: howe 50042 by: Dominick Vansevenant Re: Fatal Errors and Error Handling 50043 by: Geir Eivind Mork 50054 by: Christia

RE: [PHP] File Transfer over HTTPS

2001-04-24 Thread Michael Conley
If I wanted to use this utility to copy a file from a users (Windows) workstation to my (Linux) webserver, how would I do this? The program on the users workstation will create a file called "info.txt" and place it in c:\wow. I want it to go to my server upload.mydomain.com. How do I get the fi

Re: [PHP] Globalness of variables? Functions & subs

2001-04-24 Thread Rasmus Lerdorf
> I noticed that you have to use keyword "global" in front of globla > var.- (one declared at the top of a script outside any functions ) in > order to access it inside a function. So merely designating a var. > global is a little more involved than say Perl or other languages. You > actually have

[PHP-CVS] cvs: php4 /ext/curl curl.c

2001-04-24 Thread Sterling Hughes
sterlingTue Apr 24 15:10:41 2001 EDT Modified files: /php4/ext/curl curl.c Log: Fixed a crash bug. Return the proper amount. Index: php4/ext/curl/curl.c diff -u php4/ext/curl/curl.c:1.41 php4/ext/curl/curl.c:1.42 --- php4/ext/curl/curl.c

[PHP] Globalness of variables? Functions & subs

2001-04-24 Thread Dexter
Hi PHPers, I noticed that you have to use keyword "global" in front of globla var.- (one declared at the top of a script outside any functions ) in order to access it inside a function. So merely designating a var. global is a little more involved than say Perl or other languages. You actual

Re: [PHP] getting values from apache_lookup_uri()

2001-04-24 Thread Rasmus Lerdorf
> $var apache_lookup_uri("file"); What is your exact line? It obviously isn't that. Something like: $var = apache_lookup_uri("/path/file.html"); should work just fine. You need to pass this function a URI. A URI being the part of a URL after the hostname but including the leading / -Rasm

[PHP] problem with storing & displaying image in db

2001-04-24 Thread Keyur Kalaria
Hello everybody, I am facing a strange problem while uploading and displaying images in a database table. I have taken blob field to store the images. Images which are less then around 100kb are stored & displayed properly but images which are greater than 100kb are giving problems while displa

[PHP] getting values from apache_lookup_uri()

2001-04-24 Thread windeath
I do $var apache_lookup_uri("file"); echo $var['uri'] ; or anything else, I get nothing, so I do var_dump($var['uri']);//is Null but... var_dump($var);//everything is there? help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional co

Re: [PHP] IRC CHAT

2001-04-24 Thread Henrik Hansen
Rafael Faria <[EMAIL PROTECTED]> wrote: > Hi again, > have somewhere that i can find a chat that connect with irc server? http://phpwizard.net/projects/phpIRC/ -- Henrik Hansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

Re: [PHP] Newline in a guestbook

2001-04-24 Thread Henrik Hansen
Jimmy Bäckström <[EMAIL PROTECTED]> wrote: > I thought about reading the whole message into an array, and then loop through it >and for each word check whether it is larger than x chars, and if so, change it. But >couldn't that be a very memory consuming script if it should do that for every

Re: [PHP] include file by .htaccess

2001-04-24 Thread Rasmus Lerdorf
> How can I include any html or php file via .htaccess . > > I want to include an html file in a site contaning around 1000 pages. I want > to add header & footer dynamically on these pages . > Is there any way to include header & footer on these pages using .htaccess > file. php_value auto_prep

RE: [PHP] File Transfer over HTTPS

2001-04-24 Thread Rasmus Lerdorf
> My goal is to have someone on a Windows machine running a program be able to > transfer a file from the client workstation to my web server over HTTPS (but > without a browser). With CURL, does the client need to run this app on > their system? Of course, I would like this to be as simple and

Re: [PHP] Escaping Characters - URL Encoding.

2001-04-24 Thread Sterling
H- Thank you very much! I feel kinda dumb. I think I'll take a break. 6 hours in front of a monitor is too much. 8^) Thanks for the assist. rawurlencode worked great. -Sterling Alexander Wagner wrote: > > Sterling wrote: > > $topic = "Aerospace & Commercial Space"; > > > > $link_value = st

RE: [PHP] File Transfer over HTTPS

2001-04-24 Thread Michael Conley
I have gone through this documentation, but I don't see how to do what I want to do. My goal is to have someone on a Windows machine running a program be able to transfer a file from the client workstation to my web server over HTTPS (but without a browser). With CURL, does the client need to ru

[PHP] include file by .htaccess

2001-04-24 Thread Keyur Kalaria
Hello, How can I include any html or php file via .htaccess . I want to include an html file in a site contaning around 1000 pages. I want to add header & footer dynamically on these pages . Is there any way to include header & footer on these pages using .htaccess file. thanks in advance ke

Re: [PHP] Escaping Characters - URL Encoding.

2001-04-24 Thread Rasmus Lerdorf
> I've been able to escape the 'space' character in a variable so it can > be safely passed through a URL but I'm having trouble finding anything > that works for escaping the '&' ampsand. php.net/urlencode as for your code: > $topic = "Aerospace & Commercial Space"; > > $link_value = str_repla

Re: [PHP] checking if e-mail address and syntax are valid

2001-04-24 Thread Szii
Actually, you can check the validity of the SMTP port to semi-validate the domain. The name of the recipient would be harder, but again, through your standard "user does not exist" error messages/codes, you could tell if the domain is valid, but the user is not. Checking to see if it's "syntacti

Re: [PHP] Escaping Characters - URL Encoding.

2001-04-24 Thread Alexander Wagner
Sterling wrote: > $topic = "Aerospace & Commercial Space"; > > $link_value = str_replace("&", '%26', $topic); > $link_value = str_replace(' ', '%20', $topic); This should be $link_value = str_replace("&", '%26', $topic); $link_value = str_replace(' ', '%20', $link_value); Anyway, this is this wr

Re: [PHP] checking if e-mail address and syntax are valid

2001-04-24 Thread Sterling
H- If you're wanting to do it *before* the user sends the form than javascript is the way to go. http://developer.irt.org/script/email.htm It's the very first FAQ. #122. -Sterling Carlos Fernando Scheidecker Antunes wrote: > > Hello all! > > I would like to know if anyone has or know any

[PHP] IRC CHAT

2001-04-24 Thread Rafael Faria
Hi again, have somewhere that i can find a chat that connect with irc server? --- [ r a f a e l f a r i a] _ [EMAIL PROTECTED] WebMaster Universo Online - http://www.uol.com.br Phone # +55 11 3038-8665 -- PHP General Mailing List (http://www.php.net/) To unsub

[PHP] include file by .htaccess

2001-04-24 Thread Keyur Kalaria
Hello, How can I include any html or php file via .htaccess . I want to include an html file in a site contaning around 1000 pages. I want to add header & footer dynamically on these pages . Is there any way to include header & footer on these pages using .htaccess file. thanks in advance ke

[PHP] Very important.

2001-04-24 Thread Padraic Tynan
Hi. Yesterday an email-virus entitled Emanuel was sent out over this list, and I am not sure by who. It came in the form of Emanuel.exe, and had an icon resembling that of a standalone flash projector file (pink diamond with a white multi-pointed asterisk-type thing in the middle). This virus

Re: [PHP] OK, a little more specific migration issues.

2001-04-24 Thread Henrik Hansen
"S.J. Black" <[EMAIL PROTECTED]> wrote: > Hi, All - > > Have altered extension of all relevant php3 files to php. Now I have a > case of "code bleed" when the php pages are called. The actual page > doesn't come up, but its source does. > Ideas? clues? suggestions? Your webserver probabl

[PHP] problem with storing & displaying image in db

2001-04-24 Thread Keyur Kalaria
Hello everybody, I am facing a strange problem while uploading and displaying images in a database table. I have taken blob field to store the images. Images which are less then around 100kb are stored & displayed properly but images which are greater than 100kb are giving problems while displa

[PHP] Escaping Characters - URL Encoding.

2001-04-24 Thread Sterling
H- I've been able to escape the 'space' character in a variable so it can be safely passed through a URL but I'm having trouble finding anything that works for escaping the '&' ampsand. Here is a snippet of code. $topic = "Aerospace & Commercial Space"; $link_value = str_replace("&", '%26',

[PHP] Newline in a guestbook

2001-04-24 Thread Jimmy Bäckström
Hey guys! I'm writing a guestbook with mysql. My probblem is that when user enter at long word like blablablablablablablablablablablabla my html-tables gets screwed up. If someone is just fooling around the whole page design can be destroyed. I want to know how I can make sure that no word is l

Re: [PHP] Mail function

2001-04-24 Thread Henrik Hansen
Krupiński Marcin <[EMAIL PROTECTED]> wrote: > Hi everbody ! > > When I use mail() function it seems not to work > what I can find in logs is : > Apr 24 16:51:01 xxx sendmail[10688]: f3OEp1U10688: SYSERR(nobody): Cannot > create ./dff3OEp1U10688: Permission denied > > Why it doesn't work

Re: [PHP] File Transfer over HTTPS

2001-04-24 Thread Rasmus Lerdorf
> Bottom line- Is there a way that an application (not browser-based) can > transfer a file to my web server over HTTPS without going through the > browser? Can they just open a connection on port 443 and transfer? Where > does the encryption happen? I have this happening easily through a brows

[PHP] File Transfer over HTTPS

2001-04-24 Thread Michael Conley
I have an Apache Web server running on a Linux server with OpenSSL and all that good stuff. The HTTPS works just fine. Now, many software companies would like to add new features into their software so that their application (written in VB, C and who knows what other languages) can create a tex

Re: [PHP] .inc location security

2001-04-24 Thread Rasmus Lerdorf
> I tried to do the deny *.inc but doing so just made it so the browser can't > even include them. So that won't do the trick. Uh, what? Aren't these .inc files included by PHP scripts? PHP has no way of knowing whether you are denying access to them from the httpd.conf level with a proper deny

Re: [PHP] Want to send email in html format

2001-04-24 Thread Henrik Hansen
"George Alexander" <[EMAIL PROTECTED]> wrote: > Hi, > > I am working on a newsletter module. What I want > to know is that how can we send a newsletter via > email to all the subscribers in html format > with images in the htm too??? read http://www.php.net/mail -- Henrik Hansen --

[PHP] .inc location security

2001-04-24 Thread Jason Dulberg
I have about 20 virtual hosts on my server and all of them have shtml and some php files that look to a directory /includes/ which is aliased (in the srm.conf file) over to a main includes directory under the root dir. Alias /includes/ /usr/local/etc/httpd/htdocs/includes/ If I change this alias

Re: [PHP] checkbox validation

2001-04-24 Thread Keyur Kalaria
Hi jacky, put an empty square bracket after the variable name as follows: assuming that your above statement is in a loop we will have following structure: * etc... now when you submit the form, an array named id[ ] wi

Re: [PHP] About sessions !!

2001-04-24 Thread Meir kriheli
On Tuesday 24 April 2001 17:00, Hassan Arteaga wrote: > Hi !! > > I just begin with PHP( but is the same as ASP ) and testing some > examples... > > loock at the code: > > Page 1- Session.php > > session_start(); > $myvar = 1; > session_register("myvar"); > ?> > > > > > > New Page 1 > > >

Re: [PHP] Newbie question about Classes

2001-04-24 Thread Phillip Bow
and VB is a POOP language :) (pseudo-Object oriented programming) -- phill > PHP isn't Java; it's not an OO language. > PHP isn't...um...FORTAN; it's not a purely PP language. > > > The world if formed from the void, > like utensils from a block of wood. > The Master knows the utensils, > yet

[PHP] checking url

2001-04-24 Thread Dmitry
Hello all. Can you tell me, how can I check url address? Also I want to know error, which return. Dmitry -- 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-mai

[PHP] getting rows from separate tables stacked in a single array ? (newbie, mysql)

2001-04-24 Thread Nicolas Mermet
Hi. This will probably sound simple to all of you but I am hitting my head on a brick wall so far :-). I need to generate a list (sorted by descending time) of different objects referenced in multiple tables. All those objects share a key related to a project. This works splendidly from a sin

RE: [PHP] checking if e-mail address and syntax are valid

2001-04-24 Thread christopher hamilton
I'd like to add to that, before someone spends a lifetime searching for an answer ... "Solution: There isn't one. You cannot do real-time validation of mail addresses. You must pick from a number of compromises." The section goes on describing how many RFC-valid addresses are undeliverable and

Re: [PHP] OK, a little more specific migration issues.

2001-04-24 Thread Chris Anderson
That means the server isnt set to parse files with a .php extension. You'll have to fix the associations in your server settings - Original Message - From: "S.J. Black" <[EMAIL PROTECTED]> To: "PHP mail list" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, Apri

Re: [PHP] checking if e-mail address and syntax are valid

2001-04-24 Thread Martin Skjöldebrand
Carlos Fernando Scheidecker Antunes wrote: > Hello all! > > I would like to know if anyone has or know any PHP code to verify if a > form entered e-mail address is valid? > > I would like that things like 4$%^%$@@.com.br could not be sent. I only > has to verify the syntax of it, the existance

[PHP] OK, a little more specific migration issues.

2001-04-24 Thread S.J. Black
Hi, All - Have altered extension of all relevant php3 files to php. Now I have a case of "code bleed" when the php pages are called. The actual page doesn't come up, but its source does. Ideas? clues? suggestions? Thanks in advance, Alpha -- PHP General Mailing List (http://www.php.net/) To

[PHP] checking if e-mail address and syntax are valid

2001-04-24 Thread Carlos Fernando Scheidecker Antunes
Hello all! I would like to know if anyone has or know any PHP code to verify if a form entered e-mail address is valid? I would like that things like 4$%^%$@@.com.br could not be sent. I only has to verify the syntax of it, the existance I believe should be harder to verify but if it is possi

Re: [PHP] Newbie question about Classes

2001-04-24 Thread Chris Anderson
Good definition. Another thing to note is that variables defined in a class's body can be accessed by all the other class functions without needing arguements to use them. Thats a nice feature - Original Message - From: "SED" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April

Re: [PHP] Autoupdate of page

2001-04-24 Thread Chris Anderson
Hitting refresh would do it, you cant do anything client wise because the box is being filled by the server code - Original Message - From: "Martin Skjöldebrand" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 24, 2001 3:53 PM Subject: [PHP] Autoupdate of page > IS there

Re: [PHP] Lines

2001-04-24 Thread Chris Anderson
$Data = file("data.dat"); $Total = count($data); That would get the lines from the file and give $total the number of lines. - Original Message - From: "Rafael Faria" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 24, 2001 4:03 PM Subject: Re: [PHP] Lines > But how can

RE: [PHP] Lines

2001-04-24 Thread Boget, Chris
> > If you use the file() function to open up the file, it will > > put each line of the file into an array. At that point you > > can say: > But how can i put into a var $total the total lines that i > have into the file? After you've used the file() function as suggestion above, the total n

Re: [PHP] Lines

2001-04-24 Thread Rafael Faria
But how can i put into a var $total the total lines that i have into the file? Rafael >f you use the file() function to open up the file, it will put each line >of the file into an array. At that point you can say: > >for($i=5;$i<11;$i++){ > >print $myFile[$i]; > >} > > >Michael > > >Rafael Fa

Re: [PHP] Lines

2001-04-24 Thread Michael Stearne
If you use the file() function to open up the file, it will put each line of the file into an array. At that point you can say: for($i=5;$i<11;$i++){ print $myFile[$i]; } Michael Rafael Faria wrote: > > > Hey Guys, > it's my first post on this list, and my doubt is... > > how can i take

[PHP] Lines

2001-04-24 Thread Rafael Faria
Hey Guys, it's my first post on this list, and my doubt is... how can i take a file.txt and 1 - know how many lines i have in this text 2 - print line 5 until 10 ? can someone help me? --- [ r a f a e l f a r i a] _ [EMAIL PROTECTED] WebMaster Universo Online - ht

  1   2   3   >