[PHP] Re: Sessions Variables and refresh pages

2001-10-03 Thread Philippe Saladin
is your web server a Microsoft one (IIS, PWS, ...) ? I'm not sure, but I think there is a known problem with them if you set a session variable and do a redirect in the same page. Can anyone confirm this ? Philippe Karina Gómez Salgado [EMAIL PROTECTED] a écrit dans le message news: [EMAIL

RE: [PHP] named anchors and query strings

2001-10-03 Thread Ralph Guzman
Never had to do this, however I would think the correct way to be: a href=page.php#bottom?location=01 try it. -Original Message- From: Scott Mebberson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 02, 2001 4:53 PM To: [EMAIL PROTECTED] Subject: [PHP] named anchors and query strings

[PHP] retrieving info from a berkley db 3.0.11 ldbm databse..

2001-10-03 Thread Sovan_Shatpathy
Hi all ... I am an absolute newbie to php ... Here i am looking at wririting a script in php which can do a search in my berkley db 3.0.11 database and retrieve the required information ... In order to do the same which set of functions are supported .. is it that the

RE: [PHP] named anchors and query strings

2001-10-03 Thread Philip Olson
Here's an example : http://www.php.net/manual/en/configuration.php?foo=bar#ini.include-path It works. Regards, Philip Olson On Tue, 2 Oct 2001, Ralph Guzman wrote: Never had to do this, however I would think the correct way to be: a href=page.php#bottom?location=01 try it.

Re: [PHP] Re: Detecting user logout.

2001-10-03 Thread nayco
Well, I personnally use a SQL db into which I insert some information about the connected users (IP,LOGIN if member or visitor if not, MD5 session id -'cause I cannot use PHP4 sessions, my provider's got php3 - and unix epoch DATE). Each time a user sees a page, this user's DATE field is updated

Re: [PHP] Re: Free hosts, or Temp account...some thing

2001-10-03 Thread Philip Olson
sounds like it's time to repartition your HD, or get a new HD, or linux box ... install a flavor of linux and try it out locally. in the long run, this will be the most fun anyways :-) Regards, Philip Olson On Wed, 3 Oct 2001, ReDucTor wrote: But that doesn't have an option to search for

RE: [PHP] Creating mailaccounts

2001-10-03 Thread Ralph Guzman
This is somewhat dependant on the email server (MTA) you are running and how it is set to authenticate users. If using linux/unix, sometimes all that is required is for you to create an account is to add the entry in the /etc/passwd, and create a home directory. This you can easily do with a PHP

[PHP] php not reading php.ini

2001-10-03 Thread Caleb Carvalho
Hi all, I have enable sybase magic quotes=on in php.ini, and with the test file in my phpinfo(); says configuration path /www/conf i have placed the file there, but the sybase magic quote=off!! am i suppose to change all files ie php.ini -dist php.ini -optimized aswell? pls help Caleb

[PHP] Creating POP3 account

2001-10-03 Thread Rosen
Hi, Can I create POP3 account with PHP on Linux mail server ? Thanks, Rosen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] php not reading php.ini

2001-10-03 Thread David Robley
On Wed, 3 Oct 2001 17:16, Caleb Carvalho wrote: Hi all, I have enable sybase magic quotes=on in php.ini, and with the test file in my phpinfo(); says configuration path /www/conf i have placed the file there, but the sybase magic quote=off!! am i suppose to change all files ie php.ini

Re: [PHP] Mirroring Website

2001-10-03 Thread Phil Driscoll
On Wednesday 03 October 2001 5:21 am, Jon Shoberg wrote: Nope, teh pages are actually hosted on a (gasp ...) NT machine. I need something that will suck down and write out a pure static .html mirror of an ASP/PHP driven website. WGET will surely mirror everything but not re-structure the

RE: [PHP] Simple Question, I think

2001-10-03 Thread Ralph Guzman
I would suggest you implement this at the web server level. If using Apache, use virtual hosting or perhaps a rewrite condition if needed. If you must do this in PHP, and you want to do is redirect the user to a particular directory depending on the URL they type, then something like this should

RE: [PHP] php not reading php.ini

2001-10-03 Thread Ralph Guzman
Unless you modified the default path to the configuration file when compiling, your Configuration Path setting should be set to something like this: /usr/local/lib/php.ini in this case, you say it is set to /www/conf. I'm assuming by this that it looking for a configuration file called 'conf'

[PHP] REPLACE problem

2001-10-03 Thread Daniel Alsén
Hi, i need help with a, seemingly, simple problem... I have a form that is supposed to update a MySql table with only two fields (id and show_id). I use show_id to determine what is showing on my first page and never store more than one value in the table. Now - i cant seem to get the REPLACE

RE: [PHP] Creating POP3 account

2001-10-03 Thread Ralph Guzman
This is related to the email I responded to a few minutes ago. See below: -Original Message- From: Ralph Guzman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 03, 2001 12:25 AM To: Bjornie; [EMAIL PROTECTED] Subject: RE: [PHP] Creating mailaccounts This is somewhat dependant on

Re: [PHP] Re: image upload problems (diff. file size after upload)

2001-10-03 Thread AJDIN BRANDIC
I posted the same question and I have found an answer in the archive. I guess you are using php on RedHat. The problem is (as Richard sugested) extra lines that need to be triped off. NOTE: I am not sure if this is the problem with image files only or this applies to .txt, .doc, etc. this

Re: [PHP] REPLACE problem

2001-10-03 Thread David Robley
On Wed, 3 Oct 2001 17:35, Daniel Alsén wrote: Hi, i need help with a, seemingly, simple problem... I have a form that is supposed to update a MySql table with only two fields (id and show_id). I use show_id to determine what is showing on my first page and never store more than one value

[PHP] RE: PHP attempting to parse non-existent files

2001-10-03 Thread Tim Ward
these are all the php and error related lines in the httpd.conf ScriptAlias /php/ E:/PHP40/ AddType application/x-httpd-php .php AddType application/x-httpd-php .html Action application/x-httpd-php /php/php.exe ... ErrorDocument 404 http://www.stivesdirect.com/error.html Tim Ward

[PHP] Calling Function Identity

2001-10-03 Thread Ray Hilton
Is it possible to discover any sort of details about the function/script that is calling a piece of code? Ie, Passively If not, does anyone have a good design pattern of how a debugger for php should work? At the moment I am using a class which formats the data and dumps it to a log file, then

RE: [PHP] REPLACE problem

2001-10-03 Thread Daniel Alsén
A quick look at the REPLACE syntax tells me that REPLACE works exactly like INSERT, except that if an old record in the table has the same value as a new record on a unique index, the old record is deleted before the new record is inserted. So if id isn't a unique index, you could expect

RE: [PHP] php not reading php.ini

2001-10-03 Thread Caleb Carvalho
Hi, you're right, i did without knowledge enable --with -conf /www/conf when running the ./configure :(.. ok, thanks for point that out, do i need to go to square 0 i mean by running configure then make make install? thanks Caleb Carvalho Application Engineer LoadRunner/APM

Re: [PHP] php not reading php.ini

2001-10-03 Thread Caleb Carvalho
Hi, yeah i did httpd restart, and i also tried to place the file in /etc/httpd/conf /usr/local/lib /www/conf but not luck... I am using php-4.0.6, Caleb Carvalho Application Engineer LoadRunner/APM -

Re: [PHP] Sessions Variables and refresh pages

2001-10-03 Thread Derek Mailer
I'm not sure I fully understand the problem, but I think I can have a guess at it based on my past experiences... if you have a php page that starts a session with session_start() and, say for example, you then try and echo the session id with session_id() it will not be displayed on screen

[PHP] Re: images no appearing

2001-10-03 Thread Adrian D'Costa
My local gd version is 1.6.2 or higher, online check the link vvmm.net/phpinfo.php Adrian On Tue, 2 Oct 2001, Richard Lynch wrote: Older versions of GD will do GIF, but not JPEG, and vice versa... What versions of GD are on the two servers? -- WARNING [EMAIL PROTECTED] address is an

RE: [PHP] Mirroring Website

2001-10-03 Thread Lawrence . Sheed
Webzip is ok too for downloading an entire site onto a local machine, restructuring links, although the non registered version inserts javascript html code into every page header. Its nothing that a quick regex replaces can't fix though ;) www.webzip.com -Original Message- From: Phil

[PHP] php javascript

2001-10-03 Thread nate
Hey all! I'm including some javascript that enables a button in a form input type=button name=CheckAll value=Check All onClick=checkAll(document.myform.email)to check all the check boxes at once. (I have an array of check boxes from a mysql db) I use: SCRIPT

Re: [PHP] need help with safe mode and Restrict where PHP is Usable?

2001-10-03 Thread Tamas Arpad
Hi, Both problems can be solved with php directives in httpd.conf or in .htaccess. You can just put php_value safe_mode off or php_value engine off into Directory definitions in httpd.conf to restrict only for some directories or into Virtual for virtual servers. (Of course in htaccsess you

Re: [PHP] php javascript

2001-10-03 Thread Matthew Armsby
Leave the input name as email. If you really want to call it email[], you should be able to reference this in JavaScript as the object document.myform[email[]] If you leave it as email, you can then convert the email variable into an array using explode() or split() as so: ?php // on the

Re: [PHP] php javascript

2001-10-03 Thread nate
First off thanks for the reply. When I click the test button I get Error: 'length' is null or not an object. I used script language=javascript function func( field ) { for ( i = 0; i field.length; i++ ) field[i].checked = true ; } /script input type=checkbox name=email[]

[PHP] open_basedir and Apache virtual hosts

2001-10-03 Thread Daniel Lacroix
I use php4 in apache as a module. It seams that I can only setup php with php.ini. I want to use the open_basedir option to limit php to a web site files. But my apache use virtual host. It means that depending on the host (fun.test.org or www.test.org) I start in /home/httpd/fun or

Re: [PHP] php javascript

2001-10-03 Thread nate
Thanks... Leave the input name as email. If you really want to call it email[], you should be able to reference this in JavaScript as the object document.myform[email[]] document.myform[email[]] seems to give me a syntax error. If you leave it as email, you can then convert the email

RE: [PHP] bulk e-mails

2001-10-03 Thread Maxim Maletsky \(PHPBeginner.com\)
You've already had a nice answer. Look for ezmlm. It is a very powerful open source mailing manager. You could store the data in mySQL database and administer it in your favorite way via PHP or whatever. Then, loop your PHP code and (if you need this of course) copy all the emails of users you

[PHP] exec() system() passthru() problems. (S.u.S.E 7.2)

2001-10-03 Thread Edward Woodstarf
Hi, I was wondering if someone could HELP I'm very new to php and I am trying to get the application functions to start an instance of a program. However no matter what I do the functions return -1. Even if I add the absoulte path it still returns -1. nothing happens. I'm running S.u.S.E

RE: [PHP] Simple Question, I think

2001-10-03 Thread Maxim Maletsky \(PHPBeginner.com\)
Try also mod_rewrite of apache. It is great for doing such things. Visit apache.org and search docs for mod_rewrite or simply look into archives of this list. Maxim Maletsky www.PHPBeginner.com -Original Message- From: Ralph Guzman [mailto:[EMAIL PROTECTED]] Sent: mercoledi 3

[PHP] querying a berkley db3 database with a php script..

2001-10-03 Thread Sovan_Shatpathy
Hi, Can any one tell me as to which are the set of functions which can be used to query a berkley db 3.0.11 ldbm database ? I am a bit confused here ,, are the function mentioned for dbm going to work here like dbmopen, dbmclose etc...If not then what is the way out ? Any help is

[PHP] New York Remembrance

2001-10-03 Thread Irmingard Anna Kotelev
Dear friends, the madness incarnate of September 11th, 2001 is one which will never be forgotten. How could it be? This shook the entire world, and my heart was broken along with all of yours. I have created a slide show in respectful tribute to all who passed, as well as the heroics of the

Re: [PHP] php javascript

2001-10-03 Thread Matthew Armsby
document.myform[email[]] seems to give me a syntax error. Check if your already using you'll need to use single quotes as so: input type=button name=CheckAll value=Check All onClick=checkAll(document.myform['email[]']) (tested on IE 5.5 and NS 4.08, works) If you leave it as email, you can

[PHP] Parsing a CSV file

2001-10-03 Thread Sharat Hegde
Hello, I am trying to parse a CSV (comma separated file) file to get the separate elements. The format of each line of the file is as follows: R001,23,2,5 Note that the 3rd field 2,5 is enclosed within quotes as it has commas within the field itself. This is a standard file created when an

[PHP] sophisticated debugging idea. suggestions?

2001-10-03 Thread alvarez
I want to alternate between different operation modes without having to introduce additional control structures into a piece of software. This could be archieved by setting an optional parameter to a function that does not affect the programs state. It should accept an arbitrary number of

RE: [PHP] Simple Question, I think

2001-10-03 Thread Ralph Guzman
I would suggest you implement this at the web server level. If using Apache, use virtual hosting or perhaps a rewrite condition if needed. If you must do this in PHP, and you want to do is redirect the user to a particular directory depending on the URL they type, then something like this should

Re: [PHP] Parsing a CSV file

2001-10-03 Thread alvarez
sure. explode (',', $yourdata) is what you are looking for. use file () to read in the file and use foreach () to iterate over the lines. D. Alvarez Arribas [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[PHP] File extension inc?

2001-10-03 Thread Jan Grafström
Hi! How does server handle the .inc extension and for what do I use it ? Where can I read about it? Thanks in advace Jan Grafström -- 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

[PHP] only c if u r an indian...

2001-10-03 Thread sagar N Chand
hi, any body out there from hyderabad. if u r a hyderabadi plese mail me. v have got a lot of things to do. thanks, /sagar

Re: [PHP] File extension inc?

2001-10-03 Thread alvarez
Use the '.inc' extension only for files that are not directly accessible to the client. For example, database configuration files do not need to be php and you can mark them as '.inc' for increased code legibility. AFAIK a client's request to one of these files won't be served at all. D. Alvarez

Re: [PHP] New York Remembrance

2001-10-03 Thread AJDIN BRANDIC
It is very nice of you to have done so. Thousands of children are being killed in the world by different groups and no one gives a s***. They are mainly killed by USA guns sold by USA guvernment who also deosn't give a s*** where those guns go or who uses them. All it is important is that

RE: [PHP] Parsing a CSV file

2001-10-03 Thread Niklas Lampén
That won't do if the list is 'R001,23,2,5'. I'd break that to parts with preg_match_all(). Niklas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 3. lokakuuta 2001 15:08 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] Parsing a CSV file

[PHP] PHP in Novell Web Server?

2001-10-03 Thread Marc
I was wondering if it is possible to create a configuration with Novell Netware, Novell Web Server, PHP and Oracle. Does anybody have experience with such a configuration? Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] Parsing a CSV file

2001-10-03 Thread Matthew Armsby
Example ?php exampleLine = R001,23,\2,5\; preg_match_all (/(\[^\]+\|[^,]+)/, exampleLine, $matches); for ($i=0; $i count($matches[0]); $i++) { echo matched: .$matches[0][$i].br; } ? Please note, empty elements will not be handled btw Any Australian employers want a programmer for

Re: [PHP] Creating mailaccounts

2001-10-03 Thread sagar N Chand
work out with squrrelmail or basilix. If u want to set up won mail server then you must have your head and fingers into linux. /sagar - Original Message - From: Bjornie To: [EMAIL PROTECTED] Sent: Wednesday, October 03, 2001 12:25 AM Subject: [PHP] Creating mailaccounts

Re: [PHP] A powerful editor!

2001-10-03 Thread sagar N Chand
coool man, i've been using it since 2yrs. /sagar - Original Message - From: Dean Householder To: Alex Shi ; [EMAIL PROTECTED] Sent: Wednesday, October 03, 2001 2:27 AM Subject: Re: [PHP] A powerful editor! I used to use TextPad until I found EditPlus. I'm also amazed

Re: [PHP] A powerful editor!

2001-10-03 Thread Sheridan Saint-Michel
I wasn't saying anything about the quality of Editplus. I was just wondering what justification there was for the statement It has more than I could even use including everything TextPad has and nicer colors for the different styles since Textpad lets you set all of your colors from a 16.7M

Re: [PHP] New York Remembrance

2001-10-03 Thread Chris Allen
umm ya forward this on to the czechs and the french etc... -- 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: MySql still not working...

2001-10-03 Thread The Doctor
On Wed, Oct 03, 2001 at 07:56:12AM -0600, System Administrator a.k.a. The Root of the Problem wrote: I will be forward this to [EMAIL PROTECTED] and hope that an answer could be there. On Wed, Oct 03, 2001 at 09:24:37AM -0400, Justin Hall wrote: Dave: We are getting closer to a

[PHP] Thanks Jason

2001-10-03 Thread Jan Grafström
Regards Jan Jason Stechschulte wrote: On Wed, Oct 03, 2001 at 02:13:54PM +0200, Jan Grafström wrote: How does server handle the .inc extension and for what do I use it ? Where can I read about it? This depends on the setup of the web server. On some servers, it is set up to be parsed

Re: [PHP] Parsing a CSV file

2001-10-03 Thread alvarez
Re: [PHP] Parsing a CSV file there is no need to special-case here, for empty statements would also be handled by repeated calls to explode (). quoted expressions can be joined by preg_matches then. D. Alvarez Arribas [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To

[PHP] something like alert (javascript)

2001-10-03 Thread Eduardo Kokubo
Is there any function in PHP that is similar to alert() or confirm() of javascript ? I tried die() but that's not what I need.

RE: [PHP] something like alert (javascript)

2001-10-03 Thread Boget, Chris
Is there any function in PHP that is similar to alert() or confirm() of javascript ? I tried die() but that's not what I need. What do you want it to do? Remember, though, that PHP = server side while Javascript = client side. If you want alert() or confirm() functionality on the client

RE: [PHP] something like alert (javascript)

2001-10-03 Thread Maxim Maletsky \(PHPBeginner.com\)
Then what do you need? We are not any sure on what your question is ... Maxim Maletsky www.PHPBeginner.com -Original Message- From: Eduardo Kokubo [mailto:[EMAIL PROTECTED]] Sent: mercoledì 3 ottobre 2001 16.31 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: [PHP] something like

[PHP] How to get a list of classes that have been loaded from out the jars in lib?

2001-10-03 Thread Jan
Is there a way to get an array of all the classes that have been loaded from out the library directory of cocoon2? In particlular I need all loaded subclasses of a specific interface foo.bar.Module that are in the .jar files (or where ever). The modules can be anywhere and in multiple .jar

Re: [PHP] something like alert (javascript)

2001-10-03 Thread Alexander Deruwe
On Wednesday 03 October 2001 14:30, Eduardo Kokubo wrote: Is there any function in PHP that is similar to alert() or confirm() of javascript ? I tried die() but that's not what I need. PHP is server side, so you cannot have it pop windows up, or ask the user questions in an inputbox (unless

Re: [PHP] File extension inc?

2001-10-03 Thread Alexander Deruwe
On Wednesday 03 October 2001 12:13, Jan Grafström wrote: Hi! How does server handle the .inc extension and for what do I use it ? You should be aware that if the webserver is not set up to handle .inc files as PHP code, that it might output them as text to the user. Thus possibly showing

Re: [PHP] querying a berkley db3 database with a php script..

2001-10-03 Thread Mukul Sabharwal
Hi Sovan, try this link : http://p2p.wrox.com/archive/pro_php/2001-05/46.asp = * Know more about me: http://www.geocities.com/mimodit * __ Do You Yahoo!? Listen to your Yahoo!

[PHP] printf scientific notation?

2001-10-03 Thread Bill Rausch
I'll try this again, with a new topic and a better description. Can PHP print floating point numbers using scientific notation? (like 1.32e+5) sscanf reads them ok using %f, but I'd like to print them with %e or %g and the printf documentation doesn't mention them. I've tried %e anyway and it

[PHP] How to simulate any browser

2001-10-03 Thread Kamil Nowicki
Hello everyone! I have a problem. My webpage (say webpage_1) needs to get some data presented on other webpage (wepage_2). I tried to use fopen("http://webpage_2?params","r") and got connection and stuff, but I suppose that webpage_2 uses some script checking what type of browser sent

[PHP] Re: Sockets on FreeBSD Mac OS X

2001-10-03 Thread Devon Weller
Thanks for your help. Here is some more information: I am running the process from the command line as root. I also tried several different ports, all with the same result. I don't think you need any special permission to bind to a port above 1024. If so, I couldn't find anything out about

[PHP] addslashes q's

2001-10-03 Thread Caleb Carvalho
after enabling magic quotes with sybase, now, i don't even need to addslashes.. the only problem is that is adding quote when i say won't it adds won''t does any one know why? thanks a lot Caleb Carvalho Application Engineer LoadRunner/APM

Re: [PHP] addslashes q's

2001-10-03 Thread Rasmus Lerdorf
after enabling magic quotes with sybase, now, i don't even need to addslashes.. the only problem is that is adding quote when i say won't it adds won''t does any one know why? Because that is how a ' is supposed to be escaped in Sybase. -Rasmus -- PHP General Mailing List

Re: [PHP] How to simulate any browser

2001-10-03 Thread ReDucTor
with HTTP 1.1, you just need the normal url, for the GET, but if you want to use POST or something, you do strlen() and get the length, set the contentlength, then you send it...make sure to do urlencode before sending stuff via get, or doing stuff with POST...i wrote a perl POST Client, because

Re: [PHP] Sessions Variables and refresh pages

2001-10-03 Thread Karina
Yes, it is. This is exactly the problem. Do you know a way to solution this ? Thks, Karina --- I'm not sure I fully understand the problem, but I think I can have a guess at it based on my past experiences... if you have a php page that starts a session with session_start()

Re: [PHP] addslashes q's

2001-10-03 Thread Caleb Carvalho
thanks, how do i get the right output? Caleb Carvalho Application Engineer LoadRunner/APM - Enterprise Testing and Performance Management Solutions

Re: [PHP] addslashes q's

2001-10-03 Thread Rasmus Lerdorf
stripslashes() On Wed, 3 Oct 2001, Caleb Carvalho wrote: thanks, how do i get the right output? Caleb Carvalho Application Engineer LoadRunner/APM - Enterprise Testing and Performance Management

Re: Re: [PHP] How to simulate any browser

2001-10-03 Thread Kamil Nowicki
Hello again I suppose I was not precise enough. with HTTP 1.1, you just need the normal url, for the GET, And what do I do with it? How to send it as a request? but if you want to use POST or something, you do strlen() and get the length, set the contentlength, then you send it...

Re: [PHP] Sessions Variables and refresh pages

2001-10-03 Thread Rasmus Lerdorf
Both of SID and session_id() should return the current session id after session_start() has been called. -Rasmus On Wed, 3 Oct 2001, Karina wrote: Yes, it is. This is exactly the problem. Do you know a way to solution this ? Thks, Karina --- I'm not sure I fully

[PHP] Re: Having trouble using get_browser() function

2001-10-03 Thread Iván Milanez Castellanos
Yeap I did download a browscap.ini from a web site, and yes I am aware of the functionality of the $HTTP_USER_AGENT variable, and yes I am aware of the fact that the browscap.ini file tells you what a browser is capable of hence the name BrowsCap (Browser Capabilities). The question was how do I

[PHP] Newlines in files

2001-10-03 Thread Big5ive
My Code: $PW_LIST=../config/pw.txt; $fp=fopen($PW_LIST,a); fputs($fp,$username=$pw\n); fclose($fp); This should make a newline after printing $username=$pw, shouldn't it!? But it doesn't!!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: [PHP] php not reading php.ini

2001-10-03 Thread Ralph Guzman
Yes, it best if you just recompile PHP and let it set the path to it's default location, or specify a different location if you still desire: --with-conf /www/conf/php.ini good luck. -Original Message- From: Caleb Carvalho [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 03, 2001

[PHP] Re: MySQL - Selecting Unique Entries

2001-10-03 Thread Iván Milanez Castellanos
Tom: if you need to weed out duplicates you may try knowing which entries duplicate themselves and how many times they are duplicated, why don't you try. SELECT seminar_name COUNT(*) FROM student_table GROUP BY seminar_name This will return the seminar_name field plus a COUNT field that will

Re: [PHP] A powerful editor!

2001-10-03 Thread Mark
On Wed, 3 Oct 2001 08:52:47 -0500, Sheridan Saint-Michel wrote: I wasn't saying anything about the quality of Editplus. I was just wondering what justification there was for the statement It has more than I could even use including everything TextPad has and nicer colors for the different

[PHP] Re: something like alert (javascript)

2001-10-03 Thread John Lim
Try LensDebug. Generates messages in a second window from PHP. http://phplens.com/lens/free_code/lensdebug.php Eduardo Kokubo [EMAIL PROTECTED] wrote in message 001801c14c18$07d4d7c0$a102a8c0@cttmar">news:001801c14c18$07d4d7c0$a102a8c0@cttmar... Is there any function in PHP that is similar to

[PHP] Pesky quotes

2001-10-03 Thread René Fournier
A little problem with single quotes messing up an SQL SET statement... I can type single quotes, double quotes--it seems, any 'special' character--into a form, and so long as my PHP script tries to INSERT, UPDATE or DELETE said row into the table, no problem. But when I try to DUPLICATE a row

[PHP] Re: Newlines in files

2001-10-03 Thread Henrik Hansen
[EMAIL PROTECTED] (Big5ive) wrote: My Code: $PW_LIST=../config/pw.txt; $fp=fopen($PW_LIST,a); fputs($fp,$username=$pw\n); fclose($fp); This should make a newline after printing $username=$pw, shouldn't it!? But it doesn't!!! after printing where? in a browser \n does NOT mean

Re: [PHP] Sessions Variables and refresh pages

2001-10-03 Thread Karina
Yes, the result is returned... the problem is that i have to refresh the page to see it or use it in a query. Karina -- 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

[PHP] passing object variable from page to page. Please disregard the previous!

2001-10-03 Thread Ming-Chieh Lee
Hello, I have a question on how to pass object variable from page to page. Here is something that I found, but it doesn't work. I would greatly appreciate if someone can help: 1. does it matter if I include first, then so session_start()? file1.php ? include

Re: [PHP] How to simulate any browser

2001-10-03 Thread Mark
On Wed, 3 Oct 2001 17:46:50 +0200, Kamil Nowicki wrote: Hello everyone! I have a problem. My webpage (say webpage_1) needs to get some data presented on other webpage (wepage_2). I tried to use fopen(http://webpage_2?params,r;) and got connection and stuff, but I suppose that webpage_2 uses

RE: [PHP] Re: something like alert (javascript)

2001-10-03 Thread Brian Paulson
Here is something that I finished the other day that does what you need script language=JavaScript function MyForm_onsubmit() { bSuccess = true; if(MyForm.action[0].checked) { var x=window.confirm(Message to be displayed here) if (x)

[PHP] Problem when displaying the $ character

2001-10-03 Thread Dominik
Through php, I run a function that creates a list of items in a select menu as follows: select name=menu option value=? echo $item1; ?Item 1/option option value=? echo $item2; ?Item 2/option /select but here is how the source code looks: select name=menu option value= item1Item 1/option option

Re: [PHP] Re: MySQL - Selecting Unique Entries

2001-10-03 Thread Sheridan Saint-Michel
Distinct is just a group by on all columns, so either of the queries you showed should be pretty much the same. The difference between the two shows up when you have multiple columns in your select. ie Select distinct id,name from table1; and Select id,name from table1 group by name; do two

Re: [PHP] File extension inc?

2001-10-03 Thread Rasmus Lerdorf
On Wednesday 03 October 2001 12:13, Jan Grafström wrote: Hi! How does server handle the .inc extension and for what do I use it ? You should be aware that if the webserver is not set up to handle .inc files as PHP code, that it might output them as text to the user. Thus possibly showing

Re: [PHP] New York Remembrance

2001-10-03 Thread Hugh Danaher
Thank you. - Original Message - From: Irmingard Anna Kotelev [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 03, 2001 1:15 PM Subject: [PHP] New York Remembrance Dear friends, the madness incarnate of September 11th, 2001 is one which will never be forgotten. How

[PHP] Error: Unable to open *\index.php in Unknown on line 0

2001-10-03 Thread Scott Fletcher
Hi ya all! I'm having some trouble with PHP on IIS. Yes, I know IIS suck! When I have one website, I have no problem. But when I have more than one website on IIS. This is when I have problem with PHP. I looked up on php.ini to make sure the line, doc root = is left blank and the other

Re: [PHP] Problem when displaying the $ character

2001-10-03 Thread Philip Olson
This assumption is incorrect, these are just variables that most likely contain unwanted whitespace, such as a \n. Consider using trim() beforehand. ?php echo trim($item1) ? Maybe I misunderstand your question. Also, no need for when printing variables directly like that. echo $foo;

Re: [PHP] Problem when displaying the $ character

2001-10-03 Thread EDUMEXICO
Hi, try this: ? echo select name=\menu\ option value=\$item1\Item 1/option option value=\$item2\Item 2/option /select; ? I hope this can help you. Cheers On Wed, Oct 03, 2001 at 11:08:27AM -0700, Dominik wrote: Through php, I run a function that creates a list of items in a select menu as

RE: [PHP] File extension inc?

2001-10-03 Thread jallen01
Even better use mod_rewrite so that .inc files are never displayed :-) Jeremy Allen elliptIQ Inc. -- 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

Re: [PHP] Pesky quotes

2001-10-03 Thread Philip Olson
I don't understand this question, maybe you're looking for : http://www.php.net/addslashes http://www.php.net/stripslashes http://www.php.net/manual/en/configuration.php#ini.magic-quotes-gpc Looks like you have magic_quotes_gpc enabled. Adjust accordingly. Using addslashes() on a string

RE: [PHP] File extension inc?

2001-10-03 Thread Rasmus Lerdorf
Even better use mod_rewrite so that .inc files are never displayed :-) mod_rewrite is severe overkill for this. Just use: Files ~ \.inc$ Order allow,deny Deny from all /Files -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] Sorry! The $ character is still making problems

2001-10-03 Thread Dominik
Ok, let me explain exactly what is happening. On a page, try printing out this code: foreach($imgs as $copy) { echo option$copy/option; } $imgs is of course an array. The code though goes through all the $imgs and displays as so option image1/option option image2/option option

Re: [PHP] Sorry! The $ character is still making problems

2001-10-03 Thread Rasmus Lerdorf
Well, PHP is not adding the line-feed. It must be in your $copy values. Run trim() on it before displaying: echo 'option'.trim($copy).'/option'; -Rasmus On Wed, 3 Oct 2001, Dominik wrote: Ok, let me explain exactly what is happening. On a page, try printing out this code:

Re: [PHP] File extension inc?

2001-10-03 Thread Sheridan Saint-Michel
Remembering, of course, to check and make sure your include statements are of the form include(/path/file.inc) rather than include(http://mysite.com/path/file.inc;) BEFORE adding the below directive (one mistake I won't ever make again =P ) Sheridan Saint-Michel Website Administrator FoxJet, an

Re: Re: [PHP] How to simulate any browser

2001-10-03 Thread ReDucTor
What does the error page have? - Original Message - From: "Kamil Nowicki" [EMAIL PROTECTED] To: "PHP-list" [EMAIL PROTECTED] Sent: Thursday, October 04, 2001 2:55 AM Subject: Re: Re: [PHP] How to simulate any browser Hello again I suppose I was not precise enough. with

Re: [PHP] Best way to duplicate tables to another DB using PHP

2001-10-03 Thread David Yee
mysqldump would work pretty well if the source DB is mysql, but it's a DB I have to access via ODBC on a windows box instead. And this particular DB doesn't seem to have a command line interface to export a table that I can call from PHP. David - Original Message - From: sagar

  1   2   >