[PHP] Mail

2001-02-17 Thread Brandon Feldhahn
can somone give me a mail sending script it's like whatever i do there is always a error -- 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] Writing Regular Expressions...

2001-02-17 Thread Bojan Gajic
'So What's A $#!%% Regular Expression, Anyway?!' http://www.devshed.com/Server_Side/Administration/RegExp/ HTH, bojan gajic Dhaval Desai wrote: > Hi! > > Can somebody enlighten me with regular expressions... > like [^\-*] something like that. To me it appears as a > code language.. > > Can Any

[PHP] Writing Regular Expressions...

2001-02-17 Thread Dhaval Desai
Hi! Can somebody enlighten me with regular expressions... like [^\-*] something like that. To me it appears as a code language.. Can Anybody tell me what do the various characteers do? is there any good article on anywebsites..? besides. phpwizard .com I have checked that allready... Thanx !

RE: [PHP] UPS shipping calculation

2001-02-17 Thread Dallas Kropka
There is a great UPS calc system that we are using and while attachments are not allowed code is below. * upsProductCode = $prod; } function origin($postal, $country){ $this->originPostalCode = $postal; $t

[PHP] Macs and PHP

2001-02-17 Thread Mike Yuen
I'm got another person working for me on a site. He's a Mac user and for some reason, he can't seem to register as a new person. I know this problem isn't due to the large amount of traffic b/c it's a new site with 3 users max at any time. I haven't found any similar problems in any knowledge

[PHP] Session expiry problem

2001-02-17 Thread Mike Yuen
I'm using IE 5 to view a page i'm building for a client of mine. The problem is, on some pages when you press the "Back" button, I get an expiry message. To temporarily fix this problem, i've opened new windows everytime a link is clicked on. This is a pretty unelegant solution but I hope someo

Re: [PHP] UPS shipping calculation

2001-02-17 Thread John Monfort
There is a Perl module that is very useful for this, I'm currently in the process of implementing it. You can find a copy at http://www.seva.net/~msolomon/Business-UPS/dist/ I'm looking for something similar for FedEx, so let me know if you find one. __John Monfort

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

2001-02-17 Thread S Jha
Hi All, I saw similar error questions posted on phpbuilder etc but didn get exact answer about cause of this error. I have RedHat 6.2 with Apache 1.3.17, MySQL 3.23.33 and Php 4.0.4pl1. I am getting the above error mentioned in subject while trying to start Apache. Any idea ? Thanks, SJ

[PHP] UPS shipping calculation

2001-02-17 Thread Isaac Force
I'm looking for a better way to calculate UPS shipping costs than opening a connection to the UPS website every time a user wants to calculate their shipping (Which is what I'm finding). Anybody care to point me in the direction of where I can information on how to do this? -- PHP General Mai

Re: [PHP-CVS] cvs: php4 /ext/midgard .cvsignore ChangeLog INSTALL Makefile.in article.c attachment.c calendar.c config.m4 element.c event.c eventmember.c file.c group.c host.c image.c mail.c member.c mgd_access.h mgd_article.h mgd_attachment.h mgd_calendar.h mgd_element.h mgd_errno.pl mgd_event.h mgd_eventmember.h mgd_file.h mgd_group.h mgd_host.h mgd_image.h mgd_internal.h mgd_mail.h mgd_member.h mgd_midgard.h mgd_oop.h mgd_page.h mgd_pageelement.h mgd_pagelink.h mgd_person.h mgd_preferences.h mgd_preparser.h mgd_sitegroup.h mgd_snippet.h mgd_snippetdir.h mgd_style.h mgd_topic.h midgard.c mkall oop.c page.c pageelement.c pagelink.c parameter.c person.c php_midgard.h preferences.c preparser-parser.y preparser-scanner.l preparser.c sitegroup.c snippet.c snippetdir.c style.c topic.c

2001-02-17 Thread Jon Parise
On Sat, Feb 17, 2001 at 11:21:54PM -, Emiliano Heyns wrote: > Index: php4/ext/midgard/.cvsignore > diff -u /dev/null php4/ext/midgard/.cvsignore:1.3 > --- /dev/null Sat Feb 17 15:21:51 2001 > +++ php4/ext/midgard/.cvsignore Sat Feb 17 15:21:49 2001 > @@ -0,0 +1,122 @@ > +.deps > +.libs

Re: [PHP] Apache on Linux vs. IIS on W2K

2001-02-17 Thread php3
Addressed to: <[EMAIL PROTECTED]> [EMAIL PROTECTED] ** Reply to note from <[EMAIL PROTECTED]> Sat, 17 Feb 2001 14:22:54 - > So the question is, why is this acting like this? (When I meet "pro" they > say Apache, Linux e.g.. is the best, and curse the IIS and W2K, but at this >

Re: [PHP] PHP Code Obfuscator?

2001-02-17 Thread Michael Stearne
Joe, I think that the APC product (Alternative PHP Cache) may soon offer souce "encoding". I think I remember reading about that. Regard APC seems to be a very nice product. Check it out at http://apc.communityconnect.com/ Michael Joe Njeru wrote: > Jim, > > I also come from a third world c

Re: [PHP] Creative solution with XML,PHP,MYSQL

2001-02-17 Thread Michael Stearne
There is an example of this in Mozilla. If you go to the Debug->Viewer Demos menu and select #14 or #15 there are some nice examples there. If you don't have Mozilla, use Netscape 6 to go to: http://www.mozilla.org/newlayout/xml/debugdemos/books/books.xml and http://www.mozilla.org/newlayout/

Re: [PHP] swflib

2001-02-17 Thread Rasmus Lerdorf
> Attempting to use this in PHP causes Apache to segfault. Is there anywhere > I can download the source and make sure it's linked against my libs > properly? The source for what? PHP? Sure, click on the Downloads button on www.php.net. For libswf, nope. Use ming instead. http://www.opaque.

[PHP] swflib

2001-02-17 Thread Jon Snell
Attempting to use this in PHP causes Apache to segfault. Is there anywhere I can download the source and make sure it's linked against my libs properly? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECT

Re: [PHP] E-mail Validation Question

2001-02-17 Thread Manuel Lemos
Hello Jeff, On 17-Feb-01 21:49:42, you wrote: >Just a curiosity. I installed and tested Manuel Lemos's >PHP E-mail validation class. When I entered an address >at the @wi.rr.com domain, no matter what I put before >the domain, it would come back as valid. (That's the >Wisconsin domain for Road

Re: [PHP] Delete from cart

2001-02-17 Thread Joe Njeru
"Gary" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi All, > It is Friday afternoon here and I don't want to have to reinvent the > wheel. What would be the easiest way to delete an item from a shopping > cart? I know what is required for Mysql but I am s

Re: [PHP] PHP Code Obfuscator?

2001-02-17 Thread Joe Njeru
Jim, I also come from a third world country and the cost of buying software is also high just as Tiger mentioned. We did not have 200 years of free labour to advance ourselves as much as you did. Joe Njeru. Nairobi, Kenya -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-

[PHP] Is it possible to send a html page via mail()???

2001-02-17 Thread David Tandberg-Johansen
Hello ! I wonder if there are any class or script out there that you can give an url or file as an variable and then it sends this as html-mail to a given emailadress. david -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: [PHP] HTTP Request - First line

2001-02-17 Thread Bojan Gajic
Try with: $HTTP_SERVER_VARS['SERVER_PROTOCOL'] $HTTP_SERVER_VARS['REQUEST_METHOD'] $HTTP_SERVER_VARS['REQUEST_URI'] HTH, bojan Javier Gil wrote: > I want to obtain the first line of the header of the HTTP Request > (the request line). Is there a function to obtain this line. > Thanks > > --

[PHP] E-mail Validation Question

2001-02-17 Thread Jeff Oien
Just a curiosity. I installed and tested Manuel Lemos's PHP E-mail validation class. When I entered an address at the @wi.rr.com domain, no matter what I put before the domain, it would come back as valid. (That's the Wisconsin domain for Road Runner cable service.) But when I tried it for @earth

[PHP] HTTP Request - First line

2001-02-17 Thread Javier Gil
I want to obtain the first line of the header of the HTTP Request (the request line). Is there a function to obtain this line. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact th

Re: [PHP] .php3 in PHP4?

2001-02-17 Thread Tim Frank
Or you could just put them all on one line like AddType application/x-httpd-php .php .php3 .php4 .phtml if you prefer. Tim Frank >> Original Message << On 17/02/01, 10:48:18 AM, [EMAIL PROTECTED] ("Ifrim Sorin") wrote regarding Re: [PHP] .php3 in PHP4?: > He

Re: [PHP] Creative solution with XML,PHP,MYSQL

2001-02-17 Thread Tim Frank
Siim, You can do this with a combination of XML and XSL. I remember a demo from Microsoft's XML area that did exactly what you ask: Click a column and have it sort. I believe it was an example having to do with Stock listings. Basically XSL lets you use come programming/looping constructs whe

[PHP-CVS] cvs: php4 /ext/midgard .cvsignore ChangeLog INSTALL Makefile.in article.c attachment.c calendar.c config.m4 element.c event.c eventmember.c file.c group.c host.c image.c mail.c member.c mgd_access.h mgd_article.h mgd_attachment.h mgd_calendar.h mgd_element.h mgd_errno.pl mgd_event.h mgd_eventmember.h mgd_file.h mgd_group.h mgd_host.h mgd_image.h mgd_internal.h mgd_mail.h mgd_member.h mgd_midgard.h mgd_oop.h mgd_page.h mgd_pageelement.h mgd_pagelink.h mgd_person.h mgd_preferences.h mgd_preparser.h mgd_sitegroup.h mgd_snippet.h mgd_snippetdir.h mgd_style.h mgd_topic.h midgard.c mkall oop.c page.c pageelement.c pagelink.c parameter.c person.c php_midgard.h preferences.c preparser-parser.y preparser-scanner.l preparser.c sitegroup.c snippet.c snippetdir.c style.c topic.c

2001-02-17 Thread Emiliano Heyns
emile Sat Feb 17 15:21:54 2001 EDT Modified files: /php4/ext/midgard .cvsignore ChangeLog INSTALL Makefile.in article.c attachment.c calendar.c config.m4 element.c event.c eventmember.c file.c group.c

[PHP-CVS] cvs: php4 /ext/midgard ChangeLog INSTALL LICENSE Makefile.in access.c article.c attachment.c calendar.c config.m4 element.c event.c eventmember.c file.c fudge genentry.pl group.c host.c image.c mail.c member.c mgd_access.h mgd_article.h mgd_attachment.h mgd_calendar.h mgd_element.h mgd_errno.c mgd_errno.h mgd_errno.pl mgd_event.h mgd_eventmember.h mgd_file.h mgd_group.h mgd_host.h mgd_image.h mgd_internal.h mgd_mail.h mgd_member.h mgd_midgard.h mgd_oop.h mgd_page.h mgd_pageelement.h mgd_pagelink.h mgd_person.h mgd_preferences.h mgd_preparser.h mgd_sitegroup.h mgd_snippet.h mgd_snippetdir.h mgd_style.h mgd_topic.h midgard-root.php midgard.c mkall oop.c page.c pageelement.c pagelink.c parameter.c person.c php4_porting.txt php_midgard.h preferences.c preparser-parser.y preparser-scanner.l preparser.c sitegroup.c snippet.c snippetdir.c style.c topic.c /ext/midgard/logo mklogo.c

2001-02-17 Thread Emiliano Heyns
emile Sat Feb 17 15:01:51 2001 EDT Added files: /php4/ext/midgard LICENSE Removed files: /php4/ext/midgard ChangeLog INSTALL Makefile.in access.c article.c attachment.c calendar.c config.m4 element.c

[PHP-CVS] cvs: php4 /ext/midgard .cvsignore

2001-02-17 Thread Emiliano Heyns
emile Sat Feb 17 14:45:37 2001 EDT Removed files: /php4/ext/midgard .cvsignore Log: Added generated files -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To c

php-general Digest 17 Feb 2001 22:45:27 -0000 Issue 518

2001-02-17 Thread php-general-digest-help
php-general Digest 17 Feb 2001 22:45:27 - Issue 518 Topics (messages 40312 through 40380): How to get new row on top? 40312 by: Jan Grafström 40313 by: Mukul Sabharwal 40317 by: Mukul Sabharwal 40320 by: Jan Grafström Stylesheets 40314 by: Michael Ha

[PHP] compare arrays problem

2001-02-17 Thread Onaje Johnston
I am hoping that someone really understands arrays reads this and can tell me why the following isn't working as I expect it to. I've been trying for days to get it to work. $pages=mysql_query("SELECT CP.page_id, pagename FROM cluster_pagetbl as CP, pagetbl WHERE CP.cluster_id = '$id' AND CP.pa

[PHP] domains

2001-02-17 Thread Brandon Feldhahn
is there a way to sell domains? like have a php domain search and have permission to sell it, how would i do that? -- 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

[PHP] Bug? - pg_pconnect failing with pgsql and pg_connect is ok.

2001-02-17 Thread Matt Friedman
I've recently been banging my head against the wall because I was getting a number of selects that would occasionally return zero rows, even though 1 or more rows should have been returned. I cannot reproduce the problem with pg_connect. The problem only occurs when I am using pg_pconnect. Ha

[PHP] php flash and textfile in chatapp.

2001-02-17 Thread Jan Grafström
Hi! I am trying to build a flashchat and got problems with browser cache. Every 2 sec flash send these variables to server loadVariablesNum ("http://www.myserver.com/eget9.php3?name=" add name add "...) and gets the answer from server. All files are cached by IE5.5 and looks like this: http://www.

Re: [PHP] php

2001-02-17 Thread John Vanderbeck
from: http://www.php.net/manual/en/function.header.php "Remember that the header() function must be called before any actual output is sent, either by normal HTML tags blank lines in a file, or from PHP. It is a very common error to read code with include(), or require(), functions, or another fil

[PHP] Text box

2001-02-17 Thread Todd Cary
If I have the source of a indented, the spaces are added to the left side. Can this be avoided or do I have to make sure that me source is on the left side of the script? This will have spaces for the two lines: This is line 1. This is line 2. This will not: This is line 1

[PHP] php

2001-02-17 Thread Brandon Feldhahn
im trying to make somthing that takes the user to the members page if the authentecation is right, but i keep getting this error: Warning: Cannot add header information - headers already sent by (output started at C:\www\login2.PHP:7) in C:\www\login2.PHP on line 30 and this is my code: My L

[PHP] Simple REGEX?

2001-02-17 Thread James, Yz
Hi guys, I'd like to restrict the characters a client is inputting to a database. I already have a system that'll exclude certain characters. Alpha Numerics are permitted, together with the underscore and spaces. Is there a collective expression for the following characters? : !",.?@() Becau

RE: [PHP] PHP Book Recommendations

2001-02-17 Thread Boaz Yahav
And I remind you all to buy them at WeberDev.com and help us pay the hosting :) Sincerely berber Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow. -Original Message- From: Brian V Bonini [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001

[PHP] PHP Session question

2001-02-17 Thread Yev
Hi, I enabled sessions via session.auto_start feature, and attempting to simulate sessions when a user has disabled cookies. I remember it used to automatically append SESSIONID= to every href, etc.. (I compiled with --enable-trans-sid), but now it doesn't append it. What am I missing? Thanks

[PHP] Apache config

2001-02-17 Thread Sitkei es Tarsa Bt
Hi, I would like to use Apache and PHP4 on W2K. If you have any good Httpd.conf file for the Apache, please send me. Thank you. Paul. [mailto:[EMAIL PROTECTED]] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PR

RE: [PHP] Dir? Can I get a dir listing of the current dir my php file is in?

2001-02-17 Thread Joe Sheble (Wizaerd)
Another solutions is: $script_name = getenv("PATH_TRANSLATED"); $dir_name = dirname($script_name); // $arFiles will be an array of filenames exec( "ls -1 $dirname", $arFiles ) foreach( $arFiles as $cFile ) { print( $cFile ); } Jo

Re: [PHP] Count of multi-dimensional array

2001-02-17 Thread Rasmus Lerdorf
count($myarray) will give you 3 On Sat, 17 Feb 2001, bill wrote: > How can i get the count of a multi-dimensional array? > > if I have > > $myarray[0][chicken] > $myarray[0][fish] > $myarray[0][meat] > $myarray[1][fries] > $myarray[1][chips] > $myarray[2][coke] > $myarray[2][pepsi] > $myarray[2]

[PHP] Count of multi-dimensional array

2001-02-17 Thread bill
How can i get the count of a multi-dimensional array? if I have $myarray[0][chicken] $myarray[0][fish] $myarray[0][meat] $myarray[1][fries] $myarray[1][chips] $myarray[2][coke] $myarray[2][pepsi] $myarray[2][rootbeer] How can I get the number of first elements (which would be 3 above)? thanks,

RE: [PHP] MySQL: Add Autoincrement Field?

2001-02-17 Thread Jeff Oien
Thank you. That was too easy. Jeff Oien > alter table $TableName add column $ColumnName NOT NULL AUTO_INCREMENT > PRIMARY KEY; > > Have a nice day! > > Brian Drexler > Precision Web Design > > > Could you tell me how to add a field to an existing > > database? I'm having trouble finding out ho

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

2001-02-17 Thread Andi Gutmans
At 05:31 PM 2/17/2001 +, Sascha Schumann wrote: >sas Sat Feb 17 09:31:36 2001 EDT > > Modified files: > /php4/ext/ircg ircg.c > Log: > Add initial CTCP handling and fix a possible segfault in ircg_msg() > > >Index: php4/ext/ircg/ircg.c >diff -u php4/ext/ircg/ircg.c:1

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

2001-02-17 Thread Sascha Schumann
sas Sat Feb 17 09:36:44 2001 EDT Modified files: /php4/ext/ircg ircg.c Log: Also format CTCP correctly when sending it to the server. This is still quite ugly but works already quite well. Index: php4/ext/ircg/ircg.c diff -u php4/ext/ircg/ircg.

Re: [PHP] Strip HTML codes from a string?

2001-02-17 Thread John Vanderbeck
Ok, ignore me. I'm an idiot.. I just found the striptags() fucntion. - John Vanderbeck - Admin, GameDesign - Original Message - From: "John Vanderbeck" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, February 17, 2001 12:33 PM Subject: [PHP] Strip HTML codes from a string?

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

2001-02-17 Thread Sascha Schumann
sas Sat Feb 17 09:31:36 2001 EDT Modified files: /php4/ext/ircg ircg.c Log: Add initial CTCP handling and fix a possible segfault in ircg_msg() Index: php4/ext/ircg/ircg.c diff -u php4/ext/ircg/ircg.c:1.25 php4/ext/ircg/ircg.c:1.26 --- php4/ext/ircg

[PHP] Strip HTML codes from a string?

2001-02-17 Thread John Vanderbeck
I'm really crappy with regex's, and I can't find a good tutorial on using them , and all the syntaxes. What I need to do is strip all HTML tags from a string. This is from a form, where a user can submit comments on things, but I need to strip the HTML out, in case anyone tries to abuse it :) -

Re: [PHP] PHP Editors

2001-02-17 Thread andrew
I spoke to the BBEdit folks at MacWorld. A MacOS X port is forthcoming. regards, andrew On 2/16/01 7:46 PM, "Alexander Wagner" <[EMAIL PROTECTED]> wrote: > Dave Goodrich wrote: >> The only reason I have a Mac on my desk is for Bbedit. Hoping they >> port to OSX and allow it to run on my FBSD

Re: [PHP] Database Code Portability

2001-02-17 Thread Andrew Hill
Dave, The ODBC functions in PHP mostly address this. A good ODBC driver will also translate full SQL92 functionality into the underlying dialect that the database supports. Let me know if you have any questions. Best regards, Andrew --- Andrew Hill - OpenL

Re: [PHP] REGEX prob

2001-02-17 Thread Christian Reiniger
On Saturday 17 February 2001 21:49, n e t b r a i n wrote: > function change_sess(&$html_code){ > if(eregi("&flag=[0-9]{9}&PHPSESSID=[[:alnum:]]{32}",$html_code)){ > > str_replace("&flag=[0-9]{9}&PHPSESSID=[[:alnum:]]{32}",";?>", $html_code); str_replace doesn't know about regular expressio

Re: [PHP] Removing Whitespace

2001-02-17 Thread Christian Reiniger
On Saturday 17 February 2001 14:52, [EMAIL PROTECTED] wrote: > I found it on DevShed, if anyone else is interested the code is > > $your_string = str_replace(" ","",$your_string); That only eliminates "space" characters and leaves tabs, newline etc untouched. Try $your_string = preg_replace('/\

[PHP] dbase function howtos/faq

2001-02-17 Thread Robert L. Yelvington
i am having some issues with dbf files...some fields are being displayed correctly, some are not. can someone direct me to a howto or faq that might address these and other dbf issues? thanx, -robt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP-CVS] cvs: php4 /pear/DB mysql.php pgsql.php

2001-02-17 Thread Chuck Hagenbuch
chagenbuSat Feb 17 08:45:01 2001 EDT Modified files: /php4/pear/DB mysql.php pgsql.php Log: consistently supress error messages from $connect_function in mysql and pgsql. Index: php4/pear/DB/mysql.php diff -u php4/pear/DB/mysql.php:1.47 php4/pea

Re: [PHP] Determingin if cookies are useable?

2001-02-17 Thread John Vanderbeck
Well, since cookies are set in the header, I would say you would have to at least refresh the same page. I'm just putting a cookie into my home page for now. and it will be checked in just afew areas of the site that REQUIRE the cookies to work right. - John Vanderbeck - Admin, GameDesign -

[PHP] Multiple Selection.

2001-02-17 Thread BeeBoo
If i'm going to let users select multiple choices from a list in a form, let say the part in the form is like this: Fruit Vegetables Fish what code should i put in the submit part of the php to collect the multiple inputs? I tried array, but it seems not working. Please

RE: [PHP] [S.O.S.] round() problem

2001-02-17 Thread Robert Covell
Sumarlidi, I have come across this same problem with earlier versions of PHP3. There are versions of PHP3 that do not have the extra parameter. I have 3.0.12 on one of my machines and it doesn't work. You will have to manually calculate your precision using something like: round(100*number)/10

Re: [PHP] Determingin if cookies are useable?

2001-02-17 Thread Jeff Gannaway
At 08:35 AM 2/17/01 -0800, Chris Lee wrote: >I test for cookies support in the same manner you mentioned, set it, see if >its still there. Can this be done on one page? Or does one page have to set it, then when the visitor goes to the next page, have that page check to see if it was set? Thank

Re: [PHP] Determingin if cookies are useable?

2001-02-17 Thread Chris Lee
if your server does not have --trans-sid enabled the SID will not automatically be appended to the URL, I think this is what your looking for, to NOT have the SID appended right? then your server is set. I test for cookies support in the same manner you mentioned, set it, see if its still there.

Re: [PHP] checking image extensions

2001-02-17 Thread John Vanderbeck
> Hi, Newbie question here. I'm trying to write a function to check an image > extension, part of the code is: > > if (substr($imgName, -4) != ".jpg") if ((substr($imgName, -4) != ".jpg") || (substr($imgName, -4) != ".gif")) { echo "I'm sorry, but the ikmage format you submitted is not a support

[PHP] checking image extensions

2001-02-17 Thread Alvin Tan
Hi, Newbie question here. I'm trying to write a function to check an image extension, part of the code is: if (substr($imgName, -4) != ".jpg") my question is what's the syntax for adding (or) ".gif" to this? TIA @lvin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-m

Re: [PHP] PHP Manuals - Was -> [PHP] Apache on Linux vs. IIS on W2K

2001-02-17 Thread Alexander Wagner
SED wrote: > That figures :) > > I was using Off-Line manual I downloaded from PHP.net homepage and > that note is not in it, but it's well documented in the On-Line > Manual :) I also used an offline-Manual, but a more recent one, obviously. Just grab a new one. regards Wagner -- Three may k

[PHP] PHP Manuals - Was -> [PHP] Apache on Linux vs. IIS on W2K

2001-02-17 Thread SED
That figures :) I was using Off-Line manual I downloaded from PHP.net homepage and that note is not in it, but it's well documented in the On-Line Manual :) Thanks! SED -Original Message- From: Alexander Wagner [mailto:[EMAIL PROTECTED]] Sent: 17. febrúar 2001 15:07 To: SED; [EMAIL PRO

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

2001-02-17 Thread Thies C. Arntzen
thies Sat Feb 17 07:54:41 2001 EDT Modified files: /php4/ext/oci8 oci8.c Log: make oci work again. Index: php4/ext/oci8/oci8.c diff -u php4/ext/oci8/oci8.c:1.108 php4/ext/oci8/oci8.c:1.109 --- php4/ext/oci8/oci8.c:1.108 Thu Feb 15 06:48:57 2001 +++ p

[PHP] Determingin if cookies are useable?

2001-02-17 Thread John Vanderbeck
I'm trying to find an enviroment variable, or something, that will let me know if the client's browser has cookies enabled or not. I'm doing this, because I don't want to pass the SID in the URL if I don't have to, and the PHP I am working with is not compiled with --trans-sid I'm guessing I cou

Re: [PHP] .php3 in PHP4?

2001-02-17 Thread Ifrim Sorin
Hello, I think this is rather a Web server issue. In Apache, just add in your conf file a line for each extension : AddType application/x-httpd-php .php3 AddType application/x-httpd-php .php AddType application/x-httpd-php .php4 AddType application/x-httpd

Re: [PHP] Quick hellp, How do I stip new lines?

2001-02-17 Thread Toby Butzon
Trim should do exactly what you're looking for without needing ereg_replace, etc. Trim trims all whitespace before the first non-whitespace character and after the last non-whitespace character. I've included an example and its output below. File: test.php Output: test.php ' This is my te

[PHP] .php3 in PHP4?

2001-02-17 Thread Jeff Gannaway
Can I configure PHP4 for to process .php .php4 .php3 and .phtml ?? I'm a first timer to configuring the PHP engine, so a few detials on how to would be appreciated as well. Thanks, Jeff Gannaway ___ 2001 Wall Calendars * Art, Jazz, Blu

Re: [PHP] Apache on Linux vs. IIS on W2K

2001-02-17 Thread Alexander Wagner
SED wrote: > $foo = round (1.95583, 0); > > When I saved the code on a different server, Apache on Linux, I got > this error up: > > Warning: Wrong parameter count for round() ... bla, bla A look into the manual reveals: "Note: The precision parameter is only available in PHP 4." Loo

Re: [PHP] quick file question

2001-02-17 Thread Alexander Wagner
[EMAIL PROTECTED] wrote: > I have $File, and I want the context of hello.txt to be stored in > $file, > > Is there a function for this or do I use fopen? $file = implode("",file($File)); RTM for explainations. regards Wagner -- Three may keep a secret, if two of them are dead. -- PHP Genera

[PHP] quick file question

2001-02-17 Thread PeterOblivion
I have $File, and I want the context of hello.txt to be stored in $file, Is there a function for this or do I use fopen? - 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 a

RE: [PHP] Re: Creative solution with XML,PHP,MYSQL

2001-02-17 Thread Siim Einfeldt aka Itpunk
> Maybe Flash is an option? Well, I know I could probably do it some way in flash (if I had experiences with it), but this is just a bit out 'of the box'. But still, thanks for offering. Siim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For add

Re: [PHP] Re: Creative solution with XML,PHP,MYSQL

2001-02-17 Thread Artem Koutchine
Aha, java is even better :) - Original Message - From: "Brian V Bonini" <[EMAIL PROTECTED]> To: "Peter Skipworth" <[EMAIL PROTECTED]>; "Siim Einfeldt aka Itpunk" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>

[PHP] Re: Creative solution with XML,PHP,MYSQL

2001-02-17 Thread Artem Koutchine
Relax, XML has N.O.T.H.I.N.G. to do with what you want to do. You want dynamically update (rebuild) HTML page, well, the only way to do it currently in more or less compatible way is to use javascript+DHTML. And the result will SUCK, i know, i've done it. So, go the way the elders did. Refresh th

RE: [PHP] Sessions again :(

2001-02-17 Thread PHPBeginner.com
try it. (yes you need to register it as a global variable) Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: John Vanderbeck [mailto:[EMAIL PROTECTED]] Sent: Saturday, Febru

[PHP] REGEX prob

2001-02-17 Thread n e t b r a i n
Hi all, I'm trying to match a particular piece of string in a big string using a regex in order to change it whith another value ... I mean: eg: $html="Lnk "; function change_sess(&$html_code){ if(eregi("&flag=[0-9]{9}&PHPSESSID=[[:alnum:]]{32}",$html_code)){ str_replace("&flag=[0-9]{

[PHP] Sessions again :(

2001-02-17 Thread John Vanderbeck
Sorry about all these questions. Just a quickie. Does a session registered variable take on global scope, or do I still need to do a "global $my_session_var" to make my function see it? - John Vanderbeck - Admin, GameDesign -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-m

RE: [PHP] Re: Creative solution with XML,PHP,MYSQL

2001-02-17 Thread Brian V Bonini
Maybe Flash is an option? > -Original Message- > From: Peter Skipworth [mailto:[EMAIL PROTECTED]] > Sent: Saturday, February 17, 2001 9:29 AM > To: Siim Einfeldt aka Itpunk > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; > [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; > [EMAIL PROT

[PHP] Re: Creative solution with XML,PHP,MYSQL

2001-02-17 Thread Siim Einfeldt aka Itpunk
But I`m pretty sure it is possible with XML, in theory at least, I get the data from the database, I write it into array, put into xml and then deal with it - that`s how I imagine it. DHTML doesn`t seem the best way to do it...but then maybe it`s just me. cheers Siim Einfeldt > I'm afra

[PHP] Re: Creative solution with XML,PHP,MYSQL

2001-02-17 Thread Peter Skipworth
I'm afraid XML isn't going to help you - you need to investigate DHTML options, although you'll be lucky to find a solution which is compatible across both Netscape and IE. regards, P On Sat, 17 Feb 2001, Siim Einfeldt aka Itpunk wrote: > Hi everybody, > > I want to implement ordering somethi

[PHP] Creative solution with XML,PHP,MYSQL

2001-02-17 Thread Siim Einfeldt aka Itpunk
Hi everybody, I want to implement ordering something on a website without refreshing the page. Lets say i have four columns in the html table - name,age,skill and phone. All these are links - under these are the information, eg: Name Age Skill Phone Siim 23 php 051... Tony 18 html 132... N

[PHP] Apache on Linux vs. IIS on W2K

2001-02-17 Thread SED
Hi, I ran into strange problem yesterday witch I was able to work around (on a deadline ;). I was writing the code and testing it on IIS web server (W2K) and I used the round function couple times. $foo = round (1.95583, 0); When I saved the code on a different server, Apache on Linux,

Re: [PHP] Stylesheets

2001-02-17 Thread Christian Reiniger
On Saturday 17 February 2001 10:26, Michael Hall wrote: > I'm building a PHP application which uses stylesheets. Stylesheets seem > to be broken in a big way on my system - using Netscape 4 something on > Red Hat 6.1. > Is this Netscape or somehow something to do with PHP? Things work as Do you h

Re: [PHP] more on trimming

2001-02-17 Thread Christian Reiniger
On Saturday 17 February 2001 09:16, jaskirat wrote: > $var = "This is a variable "; > > Now I want to strip off white spaces on the end without losing them in > the middle of the sentence .. > > > I had figured that there is a no direct way of doing it and some thing > like this > works

Re: [PHP] search

2001-02-17 Thread Christian Reiniger
On Saturday 17 February 2001 08:07, Brandon Feldhahn wrote: > How do i make a php and MySQL search engine? If you want it to be good *and* if you want to write it youself, I'd start by doing several years of intensive research. If you only want it to be good, use one of the existing ones (http:

Re: [PHP] Can I select only the newest record?

2001-02-17 Thread Christian Reiniger
On Saturday 17 February 2001 12:12, PHPBeginner.com wrote: > I wonder, if LAST_INSERT_ID will work in here... > > I know it works when on the same file was an insertion.. but will it > return you the last ever inserted id, say a week ago? It will you return the id that was used on the last INSERT

Re: [PHP] Finding the? in $REQUEST_URI?page=blah

2001-02-17 Thread Christian Reiniger
On Friday 16 February 2001 23:57, James, Yz wrote: > OK, I've an error handling page. Basically, I want to split (that > might even be one of the functions I'll have to use) this sort of url: > > error.php?/pages/login.php?username=name That will only cause trouble. URLs with parameters have th

Re: [PHP] Removing Whitespace

2001-02-17 Thread Website4S
Hi, I found it on DevShed, if anyone else is interested the code is $your_string = str_replace(" ","",$your_string); Regards Ade << Hi, Does anyone know of the code to remove all whitespace from a string. E.G if input is 'Hello I was here' I want it to come out as 'HelloIwashere'

[PHP] Removing Whitespace

2001-02-17 Thread Website4S
Hi, Does anyone know of the code to remove all whitespace from a string. E.G if input is 'Hello I was here' I want it to come out as 'HelloIwashere' I`m searching the manual as I type this but can`t find anything. TIA Ade -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-m

[PHP] Sessions

2001-02-17 Thread kaab kaoutar
Hi! Do u think i have to create my own chart cart ?! or use an already existant soft or library ?i've sezen the phplib-7.2 but the cart can contain only simple things :( do u have any urls to point me to beside the devshed ? Thanks !

Re: [PHP] Dir? Can I get a dir listing of the current dir my php file is in?

2001-02-17 Thread Ifrim Sorin
Hi, You could try this: $script_name = getenv("PATH_TRANSLATED"); $dir_name = dirname($script_name); $d = dir($dir_name); $i = 0; while ($file = $d->read()) $file_array[i] = $file ; } HTH Sorin Ifrim - Original Message - From: Brandon Or

[PHP] PHPLIB-7.2 & sessions

2001-02-17 Thread kaab kaoutar
Hi! i'm trying to use sessions in my shopping cart! i hadno idea about from where to start till one of u'r kind members send me url that points to devshed! while sacnning titles and articles that had confused me cause i found no help in implementation! but i discovered this phplib-7-2 library !

[PHP] hmm

2001-02-17 Thread Brandon Feldhahn
hmm -- GIF89aÔ< -- 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] How to get new row on top?

2001-02-17 Thread Jan Grafström
Hi Mukul! Thanks for the answers. My server has php4.04 and there is no difference after I put in fseek. The output in the .comment-file i still sorted with latest message at the end. Regards Jan Mukul Sabharwal wrote: > if ($message) > { > /* uncomment the next two lines to strip out htm

[PHP] Measuring php on old and new server

2001-02-17 Thread Cybercandy Ltd
I've recently swapped over from a virtual server to a dedicated server. I've been told that I will get much better performace from my new server and I want to verify this, particular with regard to handling PHP Does any have or know of a PHP script I can download and use to do a general benchmark

RE: [PHP] Stylesheets

2001-02-17 Thread PHPBeginner.com
here, I loked it up for you, This is a CSS file for PHPBeginner.com - DON'T LOSE IT!!! : CSS file: css.php --- BODY, TH, CENTER, TD, OL, UL, LI, H1, H2, H3, H4 { font-family: verdana, arial, helvetica, sans-serif; } PRE, TT, CODE { font-family: courier, sans-serif; } H1

Re: [PHP] How to get new row on top?

2001-02-17 Thread Mukul Sabharwal
if ($message) { /* uncomment the next two lines to strip out html from input */ /* $name = strip_tags($name); */ /* $message = strip_tags($message); */ $message = ereg_replace("\r\n\r\n", "\n", $message); $date = date("l, F j Y, h:i a"); $message = "$name -- $da

RE: [PHP] Stylesheets

2001-02-17 Thread PHPBeginner.com
YES! YES! IT'S PHP!!! Michael, PHP just writes for you some text based on certain conditions and the data from db or whatever ... That text can be used for anything like HTML, JavaScript, sending emails or even write a whole C software (with an fopen of course... is that possible? I think it co

RE: [PHP] Can I select only the newest record?

2001-02-17 Thread PHPBeginner.com
I wonder, if LAST_INSERT_ID will work in here... I know it works when on the same file was an insertion.. but will it return you the last ever inserted id, say a week ago? I feel like it won't, but don't know for sure... try it... Sincerely, Maxim Maletsky Founder, Chief Developer PHPBegi

[PHP] Stylesheets

2001-02-17 Thread Michael Hall
I'm building a PHP application which uses stylesheets. Stylesheets seem to be broken in a big way on my system - using Netscape 4 something on Red Hat 6.1. Is this Netscape or somehow something to do with PHP? Things work as they're supposed to viewing the pages on a Windows/IE box. Mick -- PH

  1   2   >