[PHP] Re: Session ID

2001-10-04 Thread Rosen
Sorry, I can't access php.ini. It's on server, outside !!! Thanks, Rosen "Richard Lynch" <[EMAIL PROTECTED]> wrote in message 046301c14d62$865a8ea0$c801a8c0@Lynchux100">news:046301c14d62$865a8ea0$c801a8c0@Lynchux100... > Read php.ini > > Not sure you can set it on a site-by-site basis or within

Re: [PHP] ereg checking if its only numbers

2001-10-04 Thread _lallous
That's not regexps Rasmus! :) I always see you referring us the the manual! sometimes you refer to a function i never say in my life! ;) "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > http://php.net/is_numeric > > On Fri, 5 Oct 2001, Chris Ait

Re: [PHP] Downloading Images

2001-10-04 Thread _lallous
I suggest you call: readfile() instead of include() at the end of your script! "David Otton" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Thu, 4 Oct 2001 07:32:17 -0700 (PDT), you wrote: > > >I have added a download button to a web-site that > >enables us

[PHP] Re: How can I simulate the login process?

2001-10-04 Thread _lallous
what if they were session variables...how can i fake that out? can you plz give me an example on how to make a header with cookies before requesting a page? "Richard Lynch" <[EMAIL PROTECTED]> wrote in message 046401c14d62$917ce620$c801a8c0@Lynchux100">news:046401c14d62$917ce620$c801a8c0@Lynchux

Re: [PHP] ereg checking if its only numbers

2001-10-04 Thread Rasmus Lerdorf
http://php.net/is_numeric On Fri, 5 Oct 2001, Chris Aitken wrote: > > Ive been playing around with ereg for about half an hour and having no joy > because I dont really understand the medhod behind it and how it all works. > But what im trying to do is check to see if a 9 digit string is all num

[PHP] Re: php, files, ownership....(was file manipulation)

2001-10-04 Thread Gerard Samuel
I just sent an email just before reading this, to the developers I report to. I suggested that we take out the nice little feature I worked so hard on. I dont think it would be benificial to people Im writing it for, if it doesn't work for a great number of people who have their websites on

Re: [PHP] Change linux password using php

2001-10-04 Thread Evan Nemerson
Hmmm mandrake 8 uses a different algorithm... not md5... outputs 34 characters, $ and / included (i think DES outputs alpha-numeric only. not sure though). I sent an e-mail to a mandrake mailing list, until then here's what I wrote before I actually looked at my /etc/shadow file. Should work fo

[PHP] Re: stupid newbie question

2001-10-04 Thread Richard Lynch
http://php.net/exec You'll need to use & in the command to be executed. That command may or may not need to be wrapped up in a shell script to muck with stdin/stderr/stdout so that PHP isn't waiting for those to be freed up... Or something like that. I don't really understand it, I just know t

[PHP] Re: php, files, ownership....(was file manipulation)

2001-10-04 Thread Richard Lynch
You *CAN* do that with PHP as CGI wrapped with suexec... But you lose performance, and you'll have to convince the ISP to install that as a second mime-type with a different extension... They'll need to read the suexec docs at http://apache.org first and foremost. (Doing suexec incorrectly is q

[PHP] Re: Upgrade Issue

2001-10-04 Thread Richard Lynch
Require is not a function. It's a language construct. As such, it has never had a defined return value. You can try include instead, just for fun, but you'd be better off to code it cleaner and check something that virt_cust.inc does or sets and erroring out if that didn't happen. require 'tem

[PHP] Re: read file twice or read into array once?

2001-10-04 Thread Richard Lynch
100 lines of 200 chars each is 2 which is 20K which is chump change for RAM... Unless you are on a super busy page on a super high-volume server, just file() it. If you're on a super busy page on a super high-volume server, file() it anyway, and then ap benchmark it to see if it's "slim enou

[PHP] Re: PHP Warning: Unable to load dynamic library

2001-10-04 Thread Richard Lynch
Your php_ming.so has to go in the directory specified in php.ini as "extension_dir" It ain't gonna get found anywhere else. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a

[PHP] Re: Problem with sem_get and semaphores

2001-10-04 Thread Richard Lynch
It *should* be able to... That's the whole point of the darn things. :-) Is 0x576a the correct key?... Sure PHP isn't treating that as a string or something? -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://

[PHP] Re: Apache + PHP + libswf problems

2001-10-04 Thread Richard Lynch
Try following the instructions for core dumps at http://bugs.php.net -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Ori

[PHP] Re: installation prob.

2001-10-04 Thread Richard Lynch
Did you spell apx like that or apxs like you should?... You should have ended up with a libphp.so to throw into Apache's modules directory, not a binary for /usr/local/bin... You needed that binary for cron scripts anyway, though :-) -- WARNING [EMAIL PROTECTED] address is an endangered species

[PHP] Re: Session ID

2001-10-04 Thread Richard Lynch
Read php.ini Not sure you can set it on a site-by-site basis or within Directory in httpd.conf or not though. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: ht

[PHP] Re: How can I simulate the login process?

2001-10-04 Thread Richard Lynch
You have to http://php.net/fopen (or http://php.net/curl for SSL page) the login page, get the headers, snarf out the cookies or whatever, generate the appropriate cookie headers to send back on the next page (and every page thereafter). Your goal is to "fake out" the web server into thinking you

[PHP] Re: printf scientific notation?

2001-10-04 Thread Richard Lynch
You could roll your own... % and (int) / and round() are all you need. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -

[PHP] Re: Really need HELP on PHP install > Error in "make"

2001-10-04 Thread Richard Lynch
I'm no expert install guy, but... I believe errno.h should be in one or more of these places where PHP can find it: /usr/include /usr/src/linux-blah-blah-blah Or, try this: updatedb < might take a while locate errno.h Figure out why errno.h isn't where PHP expects it to be, and make it

[PHP] Re: help! linux 7 problems

2001-10-04 Thread Richard Lynch
Did you uncomment the LoadModule/AddModule for PHP? Or add an Action line?... AddType is only half the puzzle piece... It sets up a mime-type (application/x-httpd-php) for an extension (.php) but doesn't say what to *DO* with that mime-type. -- WARNING [EMAIL PROTECTED] address is an endangere

[PHP] cgi bug workaround

2001-10-04 Thread James Peter Gregory
hi all, I've been asked to do some work on some servers where php can only run as cgi. Unfortunately it seems that php has a bug which means that #!/usr/local/bin/php gets printed out at the top of each page if I do this. Are there any workarounds for this? Is it fixed in the cvs versions?

Re: [PHP] Re: images no appearing

2001-10-04 Thread Joel Ricker
To see exactly what image functions that are or aren't available to you, try running this script. Have: --"; } } ?>Don't Have: "; } } ?> - Original Message - From: "Richard Lynch" <[EMAIL PROTECTED]> To: "Adrian D'Costa" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent:

Re: [PHP] Namo Web Editor

2001-10-04 Thread Joel Ricker
> I always depreciated WYSIWYG software, especially when they mention > those things about HTML. HTML is the alphabet of the internet and as > such should be well known by any webmaster and whoever else is > interested in this kind of software. > > Still, it feels like it is better than Dreamveaw

Re: [PHP] popup window under php

2001-10-04 Thread Naintara Jain
You have the same requirement Put this wherever you want in your script. alert('Message!') "; } ?> - Original Message - From: "Eduardo Kokubo" <[EMAIL PROTECTED]> To: "Naintara Jain" <[EMAIL PROTECTED]> Sent: Thursday, October 04, 2001 4:56 PM Subject: Re: [PHP] something li

RE: [PHP] php in css not working with IF's

2001-10-04 Thread Jason Dulberg
I just want to thank everyone who helped me get the css stuff to work. All of the IF statements are now working properly --- I've certainly learned a lot from all the messages. thanks again... Maxim Maletsky Rasmus Lerdorf and all others who responded to my message! __ Jason Dul

Re: [PHP] Change linux password using php

2001-10-04 Thread Evan Nemerson
First off, if you don't already know, the linux passwords are stored in the /etc/passwd file (unless you have a shadow suite installed, in which case /etc/shadow would be a good bet.) Basing this on a shadow file, the file is a text document with one user per line. The entries are stored in the

Re: [PHP] System(), exec(), Passthru(), etc

2001-10-04 Thread ReDucTor
echo System("crontab -l", $var).""; echo $var; - Original Message - From: "David Robley" <[EMAIL PROTECTED]> To: "ReDucTor" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, October 05, 2001 2:21 PM Subject: Re: [PHP] System(), exec(), Passthru(), etc > On Fri, 5 Oct 2001 13:19, R

[PHP] Email Processors Wanted Immediately!!!

2001-10-04 Thread terrycrowe_webdirect2001
Dear [EMAIL PROTECTED], WE are looking for serious inquires from individuals who want to make a difference!!! Our company is offering an opportunity for individuals who want to become an E-Mail PROCESSOR. Work from home and be apart of this tremendous opportunity to sustain an income of your c

Re: [PHP] System(), exec(), Passthru(), etc

2001-10-04 Thread David Robley
On Fri, 5 Oct 2001 13:19, ReDucTor wrote: > I can't seem to get a return value, while using the functions, it just > puts a 0 on the page, i try putting a after i do the system call, > still all that is on the page, 0, something is wrong, anyone know > why?!? > > I got no telnet access, and i wa

[PHP] System(), exec(), Passthru(), etc

2001-10-04 Thread ReDucTor
I can't seem to get a return value, while using the functions, it just puts a 0 on the page, i try putting a after i do the system call, still all that is on the page, 0, something is wrong, anyone know why?!? I got no telnet access, and i want to do some cron jobs :D - James "ReDucTor" M

Re: [PHP] ereg checking if its only numbers

2001-10-04 Thread Evan
try: There is a great book on regular expressions by o'reily. Evan *** REPLY SEPARATOR *** On 10/5/01 at 11:33 AM Chris Aitken wrote: >Ive been playing around with ereg for about half an hour and having no >joy >because I dont really understand the medhod behind it and how

[PHP] Re: Restrict where PHP is Usable?

2001-10-04 Thread Sigurd Magnusson
Richard Lynch wrote: > httpd.conf > php_value Engine Off or somesuch... > > -- > WARNING [EMAIL PROTECTED] address is an endangered species -- Use > [EMAIL PROTECTED] > Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm > Volunteer a little time: http://chatmusic.com/volunte

[PHP] Change linux password using php

2001-10-04 Thread Sigurd Magnusson
What is the best way to change linux passwords using a web .PHP interface? I currently allow FTP access to php enabled webhosting sites; which use safe mode, thus use real linux accounts. Thus far I thought I would: Write a real short C program which would call allow to go setpasswd

RE: [PHP] ereg checking if its only numbers

2001-10-04 Thread Maxim Maletsky \(PHPBeginner.com\)
With ereg it could be: if(ereg(^[^[:digit:]]+$)) echo 'something else came through'; Untested though ... Maxim Maletsky www.PHPBeginner.com > -Original Message- > From: Jack Dempsey [mailto:[EMAIL PROTECTED]] > Sent: venerdì 5 ottobre 2001 3.42 > To: Chris Aitken; PHP Gene

RE: [PHP] PHP is a Bloated Kludge, discuss!

2001-10-04 Thread Maxim Maletsky \(PHPBeginner.com\)
"conditionally load the function/files that you want then you should use include(). " Was the implication of the poster I replied to. To the original I replied commenting each of his arguments, therefore I knew his points. Maxim Maletsky www.PHPBeginner.com -- PHP General Mailing List (ht

RE: [PHP] PHP is a Bloated Kludge, discuss!

2001-10-04 Thread php
I think the implication of the oringal poster was not the include/requires stuff, but more a build of PHP with --enable-100 options vs php-sharedetc -Original Message- From: Maxim Maletsky (PHPBeginner.com) [mailto:[EMAIL PROTECTED]] Sent: Friday, 5 October 2001 11:33 AM To: 'O

RE: [PHP] PHP is a Bloated Kludge, discuss!

2001-10-04 Thread Maxim Maletsky \(PHPBeginner.com\)
Of cource changing the require with include would explain everything :-) Sorry, forgot to mention that :-) Maxim Maletsky www.PHPBeginner.com > -Original Message- > From: Maxim Maletsky (PHPBeginner.com) > [mailto:[EMAIL PROTECTED]] > Sent: venerdì 5 ottobre 2001 3.33 > To: 'Opec Kem

RE: [PHP] ereg checking if its only numbers

2001-10-04 Thread Jack Dempsey
if(!preg_match("/^\d+$/",$string){ echo "$string has something other than a number"; } -Original Message- From: Chris Aitken [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 04, 2001 9:34 PM To: PHP General Mailing List Subject: [PHP] ereg checking if its only numbers Ive bee

RE: [PHP] PHP is a Bloated Kludge, discuss!

2001-10-04 Thread Maxim Maletsky \(PHPBeginner.com\)
> > PHP on the other hand seems to load in ALL the code that > MAY be run. > > i.e. an include brings things in which are inside an if, > even if the > > if equates to false. > > A quick check in the manual, it states that: > > "Unlike include(), require() will always read in the target >

[PHP] ereg checking if its only numbers

2001-10-04 Thread Chris Aitken
Ive been playing around with ereg for about half an hour and having no joy because I dont really understand the medhod behind it and how it all works. But what im trying to do is check to see if a 9 digit string is all numbers and nothing else $string1 = "123456789" $string2 = "123456abc" h

[PHP] Proposal

2001-10-04 Thread Ralph Guzman
I currently thinking on doing some freelance PHP programming and web design for somebody. I have a pretty good idea on how much I will be chargin, however I am looking at putting this in writing. I was wondering if anybody had any example proposals/bids or web liks to where I can find such informa

RE: [PHP] PHP is a Bloated Kludge, discuss!

2001-10-04 Thread Maxim Maletsky \(PHPBeginner.com\)
> (From behind filing cabinet where I am ducking preparing for flames). > > Is it just me or is there anyone else that thinks PHP suffers > from not being modular. It is just you and some other people similar to you. Thought this question was up for a while :-) > PHP on the other hand seem

RE: [PHP] ad rotation program

2001-10-04 Thread Maxim Maletsky \(PHPBeginner.com\)
Have you looked into phpAdsNew? www.sf.net And search for it there Maxim Maletsky www.PHPBeginner.com > -Original Message- > From: Michael Geier, CDM Systems Admin [mailto:[EMAIL PROTECTED]] > Sent: giovedi 4 ottobre 2001 23.39 > To: Wandrer; Joseph Bannon > Cc: [EMAIL PROTECTED] > S

Re: [PHP] Getting an Email into a PHP/pl script

2001-10-04 Thread ReDucTor
Most mail servers use qmail, so i will explain how to do it with qmail For your qmail accounts, you will have .qmail files(e.g. .qmail-default .qmail-webmaster and so on), open one of these files, now add the bottom of it |preline /path/to/php /path/to/script.php or you can do it with perl the sa

Re: [PHP] Getting an Email into a PHP/pl script

2001-10-04 Thread David Robley
On Fri, 5 Oct 2001 07:24, Chris Aitken wrote: > Hi all, > > I have looked into the archives but im not sure what im searching for > so I decided to ask here. > > What I want to do is, on my FreeBSD box running PHP and MySQL, to have > a system which will take any email sent to a specific address,

[PHP] php, files, ownership....(was file manipulation)

2001-10-04 Thread Gerard Samuel
Ok, I found out what was causing some of the people who were using my script and have it fail. They are on a shared server and apache is being run as user nobody, so therefore the script is being run as nobody. But the the files has to have user ownership foo foo. Is it at all possible to have

[PHP] stupid newbie question

2001-10-04 Thread Paul Procacci
How do u fork? Thanks ahead of time : ) -- 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: OT page load speed [was: howw do I programm a PREV & Next mechanism in PHP? Help Please!!]

2001-10-04 Thread Steve Werby
"Lasse" <[EMAIL PROTECTED]> wrote: > Is it just me or is this site blazingly fast? Are you using some > cache-tricks or something? Or du you just have an over-powered under-loaded > server? > > I could use a bit of speed at my own site.. :-) You'll probably be surprised to know that the server is

[PHP] Upgrade Issue

2001-10-04 Thread Php Questions
Today, I upgraded our development web server from PHP 4.02 to 4.06. the exact configure string was: ./configure --with-apxs=/usr/sbin/apxs --with-mysql=/usr --with-mcrypt=/usr/local/lib --enable-versioning --with-ldap=/usr/local None of the support files (apache, mysql, mcrypt, openldap) were

Re: [PHP] check if file is already in use before fopen

2001-10-04 Thread Brian White
Check out the "flock" fucntion At 16:20 4/10/2001 -0400, Jason Stechschulte wrote: >On Thu, Oct 04, 2001 at 11:10:56AM -0400, Matthew Luchak wrote: > > Is there a way to verify if a file is in use by another user before > > fopening it? > >As far as I know this is something you have to program in

[PHP] read file twice or read into array once?

2001-10-04 Thread John A. Grant
I have a file containing ~100 lines of text, each perhaps 100-200 characters in length. I need to retrieve line $n from the file, where: $n = $julianday % $nlines; $julianday = today's date (from localtime[7]) $nlines = no. of lines in the file Method A 0. fopen() the file 1. read the file

RE: [PHP] Getting an Email into a PHP/pl script

2001-10-04 Thread Richard Heyes
> There's a good php POP3 class available here: > http://www.thewebmasters.net/php/POP3.phtml > > That will enable you to log into your mail server and retrieve a mail > message from it. There's also a good mime decoder here: http://www.phpguru.org -- Richard Heyes "I know not with what weapons

RE: [PHP] Getting an Email into a PHP/pl script

2001-10-04 Thread rick fletcher
There's a good php POP3 class available here: http://www.thewebmasters.net/php/POP3.phtml That will enable you to log into your mail server and retrieve a mail message from it. > -Original Message- > From: Chris Aitken [mailto:[EMAIL PROTECTED]] > Sent: Thursday, October 04, 2001 2:54 PM

RE: [PHP] Getting an Email into a PHP/pl script

2001-10-04 Thread Kurt Lieber
Check out hotscripts.com -- there's a bunch of PHP scripts that do various things. One in particular that at least may point you in the right direction is PHPEmailArchiver: http://www.hotscripts.com/Detailed/12104.html hth --kurt > -Original Message- > From: Chris Aitken [mailto:[EMAI

Re: [PHP] newbie - some simple questions

2001-10-04 Thread John A. Grant
"Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... [...] Thanks for the help & tips. I guess I'll use ".inc" for files that are included (as opposed to being run directly) and block access to them at the server level. Hmm, since the

[PHP] Getting an Email into a PHP/pl script

2001-10-04 Thread Chris Aitken
Hi all, I have looked into the archives but im not sure what im searching for so I decided to ask here. What I want to do is, on my FreeBSD box running PHP and MySQL, to have a system which will take any email sent to a specific address, and pipe the body of the email to PHP (or even to a per

RE: [PHP] ad rotation program

2001-10-04 Thread Michael Geier, CDM Systems Admin
check out Oasis on Freshmeat...I haven't used it, but I did notice it on there. also, as already posted, PHPads. -Original Message- From: Wandrer [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 04, 2001 2:12 PM To: Joseph Bannon Cc: [EMAIL PROTECTED] Subject: Re: [PHP] ad rotation prog

Re: [PHP] howw do I programm a PREV & Next mechanism in PHP? Help Please!!

2001-10-04 Thread Lasse
"Steve Werby" <[EMAIL PROTECTED]> wrote in message news:0c3701c14d18$3505c910$6401a8c0@workstation7... [SNIPs] > http://www.tysonchandler.com/news_3.html (that's an underscore, not a > space). Is it just me or is this site blazingly fast? Are you using some cache-tricks or something? Or du you j

Re: [PHP] RE: This is SOOOO FREAKY!!! Laughed like HELL !!! :-)

2001-10-04 Thread Chris Hayes
> > According to him, if you add > > '?=PHPE9568F36-D428-11d2-A769-00AA001ACF42' http://www.phpbuilder.com/mail/php4-beta/24/0796.php --- - -- C.Hayes Droevendaal 35 6708 PB Wageningen the Netherlands --

[PHP] PHP Warning: Unable to load dynamic library

2001-10-04 Thread Edson Toshiya
Hi, I'm trying to load ming as a module of PHP, but I get an error when loading apache: PHP Warning: Unable to load dynamic library './php_ming.so' - ./php_ming.so: cannot open shared object file: No such file or directory in Unknown on line 0 Can someone help me ? Thanks, ET -- PHP Gene

Re: [PHP] check if file is already in use before fopen

2001-10-04 Thread Jason Stechschulte
On Thu, Oct 04, 2001 at 11:10:56AM -0400, Matthew Luchak wrote: > Is there a way to verify if a file is in use by another user before > fopening it? As far as I know this is something you have to program in yourself. If you are only worried about your programs accessing the file, then it is a

[PHP] session.cookie_lifetime

2001-10-04 Thread Ben-Nes Michael
Hi All I configured apache + php on debian system The problem is that session is not destroyed when the browser closed. the php.ini is /usr/local/lib and working ( i tried to see if its affecting by putting engine = On to Off ) in php.ini this is set to 0 => session.cookie_lifetime = 0 /tmp i

Re: [PHP] Re: popup window under php

2001-10-04 Thread Thomas Deliduka
You could also wait for the page to load and then invoke the JS by putting an onLoad="function_name()" in the 'BODY' tag of the document. On 10/4/2001 3:58 PM this was written: > [EMAIL PROTECTED] (Tim Sawyer) wrote: > >> I want to open a popup window under php control. So lets say I have an >>

[PHP] Problem with sem_get and semaphores

2001-10-04 Thread Rick Turbeville
Hi, I am trying to do a sem_get on a semaphore that has already been created by a c program. Instead of getting back the semaphore id, I get: Warning: semget() failed for key 0x576a: Invalid argument in /usr/local/apache/htdocs/bioace/testshmop.php on line 5 I can see the semaphores by using "

[PHP] Re: popup window under php

2001-10-04 Thread Henrik Hansen
[EMAIL PROTECTED] (Tim Sawyer) wrote: > I want to open a popup window under php control. So lets say I have an > if statement which if true opens the window. > > if ($something) { > JavaScript:window.open("test.php",blah...); >} > > Guess I'm saying that I want to call a Javascript f

Re: [PHP] ad rotation program

2001-10-04 Thread Matt \"TrollBoy\" Wiseman
I use phpAds.. it works well enough despite its lack of features.. Matt "TrollBoy" Wiseman Webmaster: Shoggoth.net Site Designer: phpslash.org The oldest and strongest emotion of mankind is fear, and the oldest and strongest kind of fear is fear of the unknown. -H.P. Lovecraft ---

[PHP] popup window under php

2001-10-04 Thread Tim Sawyer
I want to open a popup window under php control. So lets say I have an if statement which if true opens the window. if ($something) { JavaScript:window.open("test.php",blah...); } Guess I'm saying that I want to call a Javascript function without the user clicking on anything. -- PHP Ge

Re: [PHP] ad rotation program

2001-10-04 Thread Wandrer
At 01:37 PM 10/4/01 -0500, you wrote: >Has anyone on this list developed an ad rotation program in PHP? >Joseph >PHP General Mailing List (http://www.php.net/) Joseph, dotBanner ( http://www.dot-banner.com ) is the one that I work on. "We have your script pushing well over 6 million impressions

[PHP] Re: [PHP-DEV] Bug #13545: oci8 compile problem

2001-10-04 Thread Markus Fischer
Please ask on [EMAIL PROTECTED] or php-install@ Is this patch against the glibc 2.2x problem? - Markus On Thu, Oct 04, 2001 at 06:26:10PM -, [EMAIL PROTECTED] wrote : > From: [EMAIL PROTECTED] > Operating system: LINUX RH 7.1 > PHP version: 4.0.6 > PHP Bug Type: Oracle

[PHP] ad rotation program

2001-10-04 Thread Joseph Bannon
Has anyone on this list developed an ad rotation program in PHP? Joseph -- 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] Flexible, "Component-based" and Large Application Systemsin PHP

2001-10-04 Thread Tim
On Thu, 2001-10-04 at 13:51, Lucas Persona wrote: > I'd like to know if anyone has any material regarding the use of > PHP on large projects that needs to be flexible and kind of 'component > based' (like multiples modules) and what were the benefits and problems > found during development/depl

Re: [PHP] PHP is a Bloated Kludge, discuss!

2001-10-04 Thread Rasmus Lerdorf
> Exelent, as I said I was playing devels advicate, I like PHP a lot, I am > trying to get someone else to use it to and they came up with this stuff. > > > if(condition) include 'file'; > > Is exactly what I was looking for. As 'if () {}' loaded, or at least > parsed things I did'nt think anothe

RE: [PHP] Flexible, "Component-based" and Large Application Systems in PHP

2001-10-04 Thread Chris Bailey
I'd be interested in seeing this too. The typical statement I see when comparing PHP to Java is that PHP is faster. But, factoring that out for a moment (I have yet to see a real benchmark proving this in a large system, but that's probably not an easy thing to compare/do)... How about just com

Re: [PHP] PHP is a Bloated Kludge, discuss!

2001-10-04 Thread Ben . Edwards
Exelent, as I said I was playing devels advicate, I like PHP a lot, I am trying to get someone else to use it to and they came up with this stuff. > if(condition) include 'file'; Is exactly what I was looking for. As 'if () {}' loaded, or at least parsed things I did'nt think another form of i

[PHP] Flexible, "Component-based" and Large Application Systems in PHP

2001-10-04 Thread Lucas Persona
Greetings, I'd like to know if anyone has any material regarding the use of PHP on large projects that needs to be flexible and kind of 'component based' (like multiples modules) and what were the benefits and problems found during development/deployment/runtime. I think something like JavaB

[PHP] Apache + PHP + libswf problems

2001-10-04 Thread Edson Toshiya
Hi, I've compiled PHP with swf support, the installation was normal but when I try to test the swf I got this on Apache error log: [Thu Oct 4 13:15:58 2001] [notice] child pid 27998 exit signal Segmentation fault (11) Any idea ? Regards, Edson T. -- PHP General Mailing List (http://www.

Re: [PHP] PHP is a Bloated Kludge, discuss!

2001-10-04 Thread Rasmus Lerdorf
> PHP on the other hand seems to load in ALL the code that MAY be run. i.e. > an include brings things in which are inside an if, even if the if equates > to false. That's not true. if(condition) include 'file'; That will only include the file if the condition is true. Very easy to verify f

RE: [PHP] Re: PHP is a Bloated Kludge, discuss!

2001-10-04 Thread Chris Bailey
Ben, I think you hit on one of the key points of PHP in the latter part of your email. My take is that PHP is designed to be quick to learn, quick to use, and somewhat simple (not in a bad way). I agree that as compared to most languages, more than usual is packed into the base system. But, giv

Re: [PHP] file maniputation??

2001-10-04 Thread Gerard Samuel
The code is being written for both Unix and windows boxes, so I had to include the 'b' option Maxim Maletsky (PHPBeginner.com) wrote: > Not sure, but this 'wb' looks suspicious to me. > >>From the manual: > > "The mode may contain the letter 'b'. This is useful only on systems > which dif

Re: [PHP] preg_replace

2001-10-04 Thread Oliver Ruf
It worked !! Thank you very much for your help! - Yours, Oliver [EMAIL PROTECTED] (Papp Gyozo) wrote in news:003701c14cf0$d7363300$01fdfea9@jaguar: > $text = "[LINK image.png]MyImage[/LINK]"; > $out = preg_replace ("|\[LINK(.*)\](.*)\[/LINK\]|iU", ' href="\1">\2',$text); > > I hope, I don't

[PHP] installation prob.

2001-10-04 Thread max
hi, I've done my first php installation on a *nix box ... after unzipping the tar, I've done: /configure --with-mysql --with-apx make make install (and I've put the php.ini in the right location) Now I have a binary php interpreter (and it works fine) in /usr/local/bin and so I've tried to conf

Re: [PHP] Using Array of classes as a class member variable?

2001-10-04 Thread Papp Gyozo
> First some basic questions: > (1) Can you create an unitialised array ? do you mean: $array = array(); // creates an empty array; > (2) Can an unitinialised array be a class member variable ? for( $i = 0 ; $i < 5; $i++) $array[] =& new User(); I think it should work. > > I have a class

Re: [PHP] Should I convert special characters before writing them to a table?

2001-10-04 Thread Steve Werby
"Arpad Tamas" <[EMAIL PROTECTED]> wrote: > I think stripslashes() isn't needed when retrieving data from the db, > it is needed only in the query string to protect special chars from > interpretting them as sql. I want to say this isn't true, but maybe that depends on the configuration of PHP (I'

[PHP] Using Array of classes as a class member variable?

2001-10-04 Thread Martin Stephenson
Howdy, First some basic questions: (1) Can you create an unitialised array ? (2) Can an unitinialised array be a class member variable ? My problem is this: I have a class called "user" - which represents one row in a mySQL table (also called user) I want to create a class called "userBag" -

Re: [PHP] PHP is a Bloated Kludge, discuss!

2001-10-04 Thread Steve Edberg
At 4:48 PM +0200 10/4/01, [EMAIL PROTECTED] wrote: >(From behind filing cabinet where I am ducking preparing for flames). > >Is it just me or is there anyone else that thinks PHP suffers from not >being modular. Let me explain myself. If you write a module for a lot of >procedural languages it s

RE: [PHP] php in css not working with IF's

2001-10-04 Thread Jason Dulberg
$site_style ranges from 1 - 11 $site_style 1 - 7,11 use the same css style. $site_style 8,9 use the same css $site_stylye 10 uses different css from them all. Thanks for your time. Jason > -Original Message- > From: David Robley [mailto:[EMAIL PROTECTED]] > Sent: October 4, 2001 2:48

RE: [PHP] PHP is a Bloated Kludge, discuss!

2001-10-04 Thread php
On a conceptual level, I for one am a great fan of the kludge. Every piece of software is a trade off between performance and speed of development. You can have the fastest app in the world for $1,000,000 in development time OR you can write up a in-elegant solution in 5minutes ($50) and if its

[PHP] RE: check if file is already in use before fopen

2001-10-04 Thread Matthew Luchak
Title: Blank damn... RTFM.  I just now discovered flock.  Sorry 'bout that.   ps.  Don't flame me for being rude to the original poster.  I am the original poster   Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] -Original Message-From: M

[PHP] check if file is already in use before fopen

2001-10-04 Thread Matthew Luchak
Title: Blank Is there a way to verify if a file is in use by another user before fopening it?  Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED]  

Re: [PHP] Downloading Images

2001-10-04 Thread David Otton
On Thu, 4 Oct 2001 07:51:59 -0700 (PDT), you wrote: >different length, (3k as opposed to the original 9k) I >originally did have an error message appended to the >downloaded image but that no longer appears to be the >case. However the image is definitely truncated. Any All the JPEGs I have here

[PHP] Re: PHP is a Bloated Kludge, discuss!

2001-10-04 Thread Oliver Ruf
Well about beeing modular... Have you ever programmed java ?? Java is very modular and everyting in java is programmed with classes. So... PHP also suports classes. Now you should be able to build your own modularity as you like it... Enough said... -Oliver [EMAIL PROTECTED] (Ben Edwards) wr

Re: [PHP] stripslashes

2001-10-04 Thread Caleb Carvalho
Steve, Thank you very much, i will try it now.. Caleb Carvalho Application Engineer LoadRunner/APM - Enterprise Testing and Performance Management Solutions ---

[PHP] PHP is a Bloated Kludge, discuss!

2001-10-04 Thread Ben . Edwards
(From behind filing cabinet where I am ducking preparing for flames). Is it just me or is there anyone else that thinks PHP suffers from not being modular. Let me explain myself. If you write a module for a lot of procedural languages it sits on the filling system and is called up when it is ne

Re: [PHP] Should I convert special characters before writing them to a table?

2001-10-04 Thread Arpad Tamas
> Try addslashes() before executing the query and stripslashes() when > retrieving data from the db. See the online manual for more > details. I think stripslashes() isn't needed when retrieving data from the db, it is needed only in the query string to protect special chars from interpretting

Re: [PHP] MySQL tables are read-only

2001-10-04 Thread Steve Werby
"Alfredeen, Johan" <[EMAIL PROTECTED]> wrote: > My webhost recently migrated my site over to a new server and IP. Everything > looks ok, except that all my MySQL tables now are read-only (at least that's > the error I get when trying to delete or insert records). How do I change > the tables back

Re: [PHP] Downloading Images

2001-10-04 Thread Roger Bryant
Hi Dave, Thanks for you prompt response. The Image is indeed a different length, (3k as opposed to the original 9k) I originally did have an error message appended to the downloaded image but that no longer appears to be the case. However the image is definitely truncated. Any ideas why this may

Re: [PHP] need phpmyAdmin but no so good

2001-10-04 Thread Steve Werby
<[EMAIL PROTECTED]> wrote: > Webmin is a web-based administration interface for > Unix systems but I need something like phpmyAdmin > just for managing the info in databasesj ust listing dbs, > tables, insert, delete, edit options; no create or alter > tables and dbs. You could pretty easily remo

[PHP] MySQL tables are read-only

2001-10-04 Thread Alfredeen, Johan
My webhost recently migrated my site over to a new server and IP. Everything looks ok, except that all my MySQL tables now are read-only (at least that's the error I get when trying to delete or insert records). How do I change the tables back to write? Can I switch individual tables to write or i

Re: [PHP] stripslashes

2001-10-04 Thread Steve Werby
"Caleb Carvalho" <[EMAIL PROTECTED]> wrote: > if i have an array that is fetching the result to be display > example, > for ($i =1; $i<=sybase_num_rows($result); $i++){ > $row =sybase_fetch_array($result); > > $row[product] > $row[prob_title] > $row[description]$row[solution] > > where would

[PHP] need phpmyAdmin but no so good

2001-10-04 Thread ani
Michael: Webmin is a web-based administration interface for Unix systems but I need something like phpmyAdmin just for managing the info in databasesj ust listing dbs, tables, insert, delete, edit options; no create or alter tables and dbs. Thanks anyway, this webmin is interesting also Anicet

  1   2   >