[PHP] RE: setting member variables out of class

2001-11-01 Thread Tim Ward
1. $telefono is an array (as has already been pointed out) so you need to reference an element 2. you're never actually setting the property in the constructor, your constructor lines should be: $this-telefono = array(Teléfono,Phone); etc. Tim

[PHP] Comparing strings

2001-11-01 Thread phantom
Bear with me, new to PHP and got a beginner's questions How do I run an if statement and the if statement compares a String? IN ASP (yes I Know, ASP is evil) I would have wrote if (String(Request(Action))==Submit) do this In PHP I have tried if ($Action == Submit) but I get a parse

[PHP] regular expression

2001-11-01 Thread Galkov Vladimir
Need to remove all ../ /.. from user inputing string to prevent him walking and creating filesdirectories where I don't whant see them/him... The string: $path = eregi_replace('([..]{2,})|([./]{2})|([../]{3,})|([/.]{2})|([/..]{3})', '', $path); works good with any combinations (

Re: [PHP] Week of month

2001-11-01 Thread Jon Farmer
Is there any way to find out the week of the month. Today is in the first week of month. That is, a function like weekofmonth() which displays 1 today 2 next week. No builtin function in PHP. You will need to search to see if some kind and generous soul has published their code for this

[PHP] Can you AUTO Post/Submit on a mixed HTML/PHP form

2001-11-01 Thread Arf
I have a little problem that I just can't get to work. I want to send a URL line from VB6 in an application that I have written to populate a three field form on one of my www sites (http://arthurbard.com/testarea/AutoPost.php) AND post it i.e. populate the three fields and then simulate

[PHP] fto_connect() failed??

2001-11-01 Thread JIM
hi all, i was developing in redhat 7.2. with php/4.0.4pl1. iwas able to use ftp_connect(). but, in a freebsd with php/4.0.6, it returns error that call to undefined function... anyone can help? thanks. im -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

RE: [PHP] Week of month

2001-11-01 Thread Andrew Braund
How about; echo It is week .((int)(date(j)/7)+1). of the month.br; -Original Message- From: Jon Farmer [mailto:[EMAIL PROTECTED]] Sent: Thursday, 1 November 2001 20:14 To: PHP Masters; Sheni R. Meledath Subject: Re: [PHP] Week of month Is there any way to find out the week of

Re: [PHP] Comparing strings

2001-11-01 Thread Michael Egan
I feel fairly new to this as well but I think that, whilst your logic is right, the syntax may be a little off. if ($action == textstring) { echo true; } else { echo false; } Above should show how the syntax will rok. Good luck Michael phantom wrote: Bear with me, new to PHP and got a

[PHP] Re: Comparing strings

2001-11-01 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Phantom) wrote: In PHP I have tried if ($Action == Submit) but I get a parse error in that statement. What am I doing wrong? Thank you. I did an echo $Action to confirm that it's value is Submit. If the variable is set as you've

[PHP] destroying sessions

2001-11-01 Thread Richard Baskett
Ok why does this not work? session_name(adminid); session_start(); unset($sess); session_unset(); session_destroy(); session_write_close(); $sess = 0; etc etc etc etc etc etc.. After all that is executed I take a look at the session file and what do I see? All the session variables still

[PHP] Re: Can you AUTO Post/Submit on a mixed HTML/PHP form

2001-11-01 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Arf) wrote: $form_block = FORM METHOD=\post\ ACTION=\$PHP_SELF\ PstrongUser Name:/strongbr INPUT type=\text\ NAME=\sender_name\ VALUE=\$sender_name\ SIZE=30/p PstrongYour E-Mail Address:/strongbr INPUT type=\text\

[PHP] Re: Comparing strings

2001-11-01 Thread phantom
Must have been a missing semi-colon it works now. Thanks. % echo $Action; if ($Action == Submit) { echo Process form; } else { echo Do Nothing; } % html form method=Post action=self.php input type=text name=Var1 maxlength=20 input type=submit name=Action value=Submit /form /html Cc

RE: [PHP] Week of month

2001-11-01 Thread Matt Williams
Please find attached a very good date class. I can't remeber where I got it from and who wrote it but it's pretty good. M: -- Is there any way to find out the week of the month. Today is in the first week of month. That is, a function like weekofmonth() which displays 1 today 2 next

[PHP] Best PHP package for this kind of www site?

2001-11-01 Thread web_fm
Hello, I would like suggestions about the best PHP solution, and possibly some code examples, to set up a web site which: allows to its managers to add articles through the web supports threaded discussions on such articles includes User forum on any topic has internal

Re: [PHP] Week of month

2001-11-01 Thread Jon Farmer
Well seeing as Monday of this week was the 29th of October is this week the first of November or the last of October? I think the United Nations set out a specification for determining the week number of the year but not sure if they have a spec for the week of the month. Regards Jon -- Jon

[PHP] Re: Can you AUTO Post/Submit on a mixed HTML/PHP form

2001-11-01 Thread Arf
Like the heredoc thanx for that... The way that I am using VB will not support the VBscript option unfortunately but a good suggestion. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

[PHP] Yes you can........ but....

2001-11-01 Thread Galkov Vladimir
Yes you can... Ifif I rightly understand you only well... you whant submit information without clicking submit button? .. well then you have to imagine any suported event or use meta tag.. One problrm I don't use VB script Way one... ( this is example of 100% stupid code ...

[PHP] Re: Yes you can........ but....

2001-11-01 Thread Arf
Ummm... Like that where's me PHP editor. will let you know how it goes after I have had breakfast. Thanks -- 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,

[PHP] Re: regular expression

2001-11-01 Thread liljim
Hello, Galkov Vladimir [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Need to remove all ../ /.. from user inputing string to prevent him walking and creating filesdirectories where I don't whant see them/him... The string: $path =

[PHP] Problem with date_format() in indirect MySQL query...

2001-11-01 Thread Ryan Fischer
Hello! :) First off, please respond to me directly as I am not subscribed to the list. Thanks! :) Now then, I have a quick question I'm hoping someone can help me with. I have this class method: function query($sql, $type = 'obj') { if(!$result = @mysql_query($this-masl($sql))){

[PHP] Re: regular expression

2001-11-01 Thread liljim
Whooops, Pasted wrong line. This should do it: $string = preg_replace(/(\.*\/)+(.*?\.*\/)?/s, , $string); James -- 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] Re: regular expression

2001-11-01 Thread liljim
Whooops, Pasted wrong line. This should do it: $string = preg_replace(/(\.*\/)+(.*?\.*\/)?/s, , $string); Gah... Not.. enough... caffeine: Modification: $string = preg_replace(/(\.*\/)+(.*?\.*\/)?(\.*)?/s, , $string); -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] regular expression

2001-11-01 Thread Christian Reiniger
On Thursday 01 November 2001 10:39, Galkov Vladimir wrote: Need to remove all ../ /.. from user inputing string to prevent him walking and creating filesdirectories where I don't whant see them/him... The string: $path =

[PHP] Re: Detecting Languages...

2001-11-01 Thread Tommy Gildseth
Arcadius A. [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... HEllo ! I have a website designed in several languages (En , Fr , Cz) My question is : How to detect the language setting of the the visitor's PC in order to redirect him to a specified content

[PHP] Re: Detecting Languages...

2001-11-01 Thread Tommy Gildseth
Tommy Gildseth [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Arcadius A. [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... How to detect the language setting of the the visitor's PC in order to redirect him to a specified

[PHP] Problem writing to file, can't find the error

2001-11-01 Thread Jeff Lewis
I have this code in my program but I fail to find the error, does anyone see it after a quick glance? ?php if ($action == save_filter) { $fh = fopen (./filters.data.php, r+b) or die (couldnt open); $file = fread($fh, filesize(./filters.data.php)); $file = stripslashes($file); $array =

[PHP] Uncertainties about MySQL commands

2001-11-01 Thread TD - Sales International Holland B.V.
Hey list, i'm new to php so bare with me... got some questions on mysql commands. I'd like to know how the mysql_insert_id() function works exactly. First of all how reliable is it? What happens this happens: Table: (ID int unsigned primary key auto_increment, Stuff text, MoreStuff text) (my

php-general Digest 1 Nov 2001 13:28:22 -0000 Issue 969

2001-11-01 Thread php-general-digest-help
php-general Digest 1 Nov 2001 13:28:22 - Issue 969 Topics (messages 73103 through 73150): Re: Text DB's bbs lists 73103 by: Jack Dempsey paypal instant notification 73104 by: Sondra Russell 73110 by: CC Zona text into web db interface 73105 by: AAustin

Re: [PHP] how do I use and lt with eval()?

2001-11-01 Thread John A. Grant
Stefan Rusterholz [EMAIL PROTECTED] wrote in message 001001c162af$1fd842f0$3c01a8c0@quasimodo">news:001001c162af$1fd842f0$3c01a8c0@quasimodo... [...] As you see, for PHP is some HTML-Code in the php-code-zone. To avoid this, do it that way: ?php function somefunc($text,$n) {

[PHP] MySQL Questions

2001-11-01 Thread TD - Sales International Holland B.V.
Hey there, part of my old question can be ignored since I just found out (stupid.) there can be only 1 auto_increment column in a table and by testing with PHP I also found out the position of the column doesn't matter nor it's name. I'd still like an answer on the rest tho' regards --

[PHP] Text Editor with Highlighting

2001-11-01 Thread TD - Sales International Holland B.V.
Hey there, I looked on the site for this but couldn't find anything about it. I'd like a list of your favorite text editors (preferable for Linux/XFree) with highlighting. I'm using beaver now, I tried cooledit but it's not me... too much functions and looks like it came from an old 386 :-).

[PHP] Re: Text Editor with Highlighting

2001-11-01 Thread Anthony
For Windows, hands down Homesite is the best Td - Sales International Holland B.V. wrote: Hey there, I looked on the site for this but couldn't find anything about it. I'd like a list of your favorite text editors (preferable for Linux/XFree) with highlighting. I'm using beaver now, I

RE: [PHP] Problem with date_format() in indirect MySQL query...

2001-11-01 Thread Mark Roedel
-Original Message- From: Ryan Fischer [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 01, 2001 5:37 AM To: [EMAIL PROTECTED] Subject: [PHP] Problem with date_format() in indirect MySQL query... $res = $this-query(select *, date_format(thedate, 'M d, Y') as dt,

RE: [PHP] Problem writing to file, can't find the error

2001-11-01 Thread Mark Roedel
-Original Message- From: Jeff Lewis [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 01, 2001 7:21 AM To: [EMAIL PROTECTED] Subject: [PHP] Problem writing to file, can't find the error I have this code in my program but I fail to find the error, does anyone see it after a

Re: [PHP] Text Editor with Highlighting

2001-11-01 Thread Eugene Mah
At 10:02 PM 11/01/2001 +0100, TD - Sales International Holland B.V. wrote: Hey there, I looked on the site for this but couldn't find anything about it. I'd like a list of your favorite text editors (preferable for Linux/XFree) with highlighting. emacs! :) Eugene -- To put my contact info

Re: [PHP] regular expression

2001-11-01 Thread DL Neil
Wow, there are some long and curly ways to use RegExp-s aren't there? I'm not very good at them (and I hear that they can be expensively inefficient) so I tend to look elsewhere. Check out pathinfo -- Returns information about a file path array pathinfo (string path) pathinfo() returns an

Re: [PHP] Text Editor with Highlighting

2001-11-01 Thread Papp Gyozo
EditPlus (http://www.editplus.com) on windows HTML-Kit (http://www.chami.com/html-kit/) - Original Message - From: Eugene Mah [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 01, 2001 3:32 PM Subject: Re: [PHP] Text Editor with Highlighting At 10:02 PM 11/01/2001

[PHP] PHP4, NT Workstation, Xitami issue...

2001-11-01 Thread Erik H. Mathy
Hey All! I hit a snag yesterday on something I've done a million times before. Perhaps one of you might be able to lend a hand. Situation: I use a Dell Latitude laptop for development. It's got pretty much everything I need for my day to day needs. NT Workstation, mysql, mssql,

RE: [PHP] Re: Where are lists of PHP's predefined constants and keywords?

2001-11-01 Thread Johnson, Kirk
Thank you Jim, Mike, CC and Philip. Geez! I thought I did a search, but maybe I imagined that... LOL Kirk -- 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:

[PHP] Problem with fopen() when php is in safe_mode

2001-11-01 Thread Daniel Bergqvist
Hi! I'm having trouble with a script who should attach files to a mail. The script looks like this: ? include inc/mime_mail.inc; $mail = new mime_mail; $mail - from = $email; $mail - to = $to_email; $mail - subject = Testing; $mail - body = Testing;

RE: [PHP] Problem with fopen() when php is in safe_mode

2001-11-01 Thread Mark Roedel
-Original Message- From: Daniel Bergqvist [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 01, 2001 9:57 AM To: [EMAIL PROTECTED] Subject: [PHP] Problem with fopen() when php is in safe_mode if($dir = @opendir(/home/d5051/public_html/test)){ You're getting filenames

RE: [PHP] Text Editor with Highlighting

2001-11-01 Thread Chris Bailey
Check the list archives, this topic gets covered almost weekly. But, for Linux (and various others): - Visual SlickEdit is awesome, but commercial (the cost is absolutely worth it, I'm extremely satisfied). It has function name completion, parameter completion (for PHP and many other langs),

[PHP] Re: [PHP-WIN] 4.0.6 mssql.dll Extension load failure

2001-11-01 Thread DL Neil
Mike, We have PHP installed as an ISAP module on our W2K IIS5 server and its operational with no problems - phpinfo() runs just fine. But - When I uncomment the php_mssql.dll extension in php.ini I get an error when PHP starts up saying it cannot find the .dll file. The extension

[PHP] Is there a way not to pop up the default login window?

2001-11-01 Thread Zhu George-CZZ010
If we are using the default Apache/PHP authentication, it will always pop up the default login window for login user ID /password. Is there a method to redirect to a customized PHP login page instead of the default pop up window? Thanks ahead. -- PHP General Mailing List

[PHP] Some facts about MsSQL/ODBC

2001-11-01 Thread Valentin V. Petruchek
Hello everyone! Here i'm not going to ask community about smth. I would like to present results of one test speed. i perform the same query to MsSQL directly (using mssql_...) and through ODBC (odbc_...) In first case (direct connection) php works SLOWER than through ODBC. My server is on NT

RE: [PHP] Is there a way not to pop up the default login window?

2001-11-01 Thread Jon Haworth
Yep. Design your own form, and feed the data from that to $PHP_AUTH_USER and $PHP_AUTH_PW. Don't send the header() for the 403. Cheers Jon -Original Message- From: Zhu George-CZZ010 [mailto:[EMAIL PROTECTED]] Sent: 01 November 2001 17:18 To: [EMAIL PROTECTED] Subject: [PHP] Is there a

RE: [PHP] Is there a way not to pop up the default login window?

2001-11-01 Thread Zhu George-CZZ010
Thanks for the suggestion. I think I didn't explain it clearly, what I really want to do is: whenever someone types any of the secured URL (it might be any secured php page or other files), how can we configure the server to automatically redirect to a customized PHP login page instead of

Re: [PHP] Text Editor with Highlighting

2001-11-01 Thread Brent Rieck
I use Nedit, which for me works well. It's no (x)emacs, but it also doesn't have a vertical learning curve, you can easily just start working in it with little chance of shooting your foot clean off. It's got syntax highlighting for PHP and other languages, it's small-ish (doesn't take 30

RE: [PHP] Is there a way not to pop up the default login window?

2001-11-01 Thread Jon Haworth
if (!isset ($PHP_AUTH_USER)) { header (Location: http://mydomain.com/mypage;); } would probably do the trick Cheers Jon -Original Message- From: Zhu George-CZZ010 [mailto:[EMAIL PROTECTED]] Sent: 01 November 2001 17:51 To: Jon Haworth; [EMAIL PROTECTED] Subject: RE: [PHP] Is

[PHP] include(remote host) under w2k problem

2001-11-01 Thread Marek Wysmulek
Hi all. I have searched almost everything on the net regarding php and windows focusing on one thing. How to include to php script started on apache on w2k external sript placed on some URL. Source of test script (http://mylocalhost/marek.php) ? include("http://hermes.com.pl/test.php"); ? and

[PHP] Re: Text Editor with Highlighting

2001-11-01 Thread Jason Wood
Check out UltraEdit for Windows it's great. Text highlighting for around 10 programming languages, auto-tabbing for brackets, all kinda things. www.ultraedit.com it's even got built in FTP functions so you can open a file from a server, and when you save it automatically uploads. great

Re: [PHP] Some facts about MsSQL/ODBC

2001-11-01 Thread l0t3k
Valentin, first, let us know exactly how you tested. second, i think it may have to do with the way the direct extension is written. the direct extension does batch fetches every time it does a physical read of the database. if all you're trying to get is a value from the first row in a

[PHP] Weekly reporting. How to?

2001-11-01 Thread Kraa de Simon
Hello, I want to send a weekly report to a mailinglist. I would like to automate the process and use a cron job to execute 'php.exe weekly.php' or something. I could gather the information, put it in a string and pass the string to mail(). But...is it also possible to grab the html output

[PHP] Re: include(remote host) under w2k problem

2001-11-01 Thread Mike Frazer
Probably a permissions problem. Can't open a file if you don't have permission to do so. Mike Marek Wysmulek [EMAIL PROTECTED] wrote in message 03b201c16308$6b6d54e0$0201a8c0@dom">news:03b201c16308$6b6d54e0$0201a8c0@dom... Hi all. I have searched almost everything on the net regarding php

[PHP] Re: Weekly reporting. How to?

2001-11-01 Thread Henrik Hansen
[EMAIL PROTECTED] (Kraa De Simon) wrote: Hello, I want to send a weekly report to a mailinglist. I would like to automate the process and use a cron job to execute 'php.exe weekly.php' or something. I could gather the information, put it in a string and pass the string to

[PHP] Announcement: Smarty template engine 1.4.6 released

2001-11-01 Thread Monte Ohrt
Homepage: http://www.phpinsider.com/php/code/Smarty/ Version 1.4.6 - - fixed bug with {assign ...} when passing an empty value. (Monte) - add more warning message fixes. (Monte, Tara Johnson) - documentation updates. (Monte) - update fetch function to give proper warning when

[PHP] mail() extra headers not working

2001-11-01 Thread Byron Albert
Hello, I am trying to ad extra headers to email's I am sending through php. I want to ad Reply-To: and Bounse-To: addresses. But when add them useing the forth feild of the mail() funtion. mail($recipient,$msubject,$message,Reply-To: $sender); but for some reason when I send this e-mail it

[PHP] Problem with non us caracters and strtr

2001-11-01 Thread Rodrigo Peres
Hi list, I'm in a big trouble. I'm brazilian, so I've made a script to clean up the special caracters from our language in order to not mess up my publisher, but this script don't work in Macintosh (macos 9.1, IE 5, all in american english). This is my code ? function myclean($name) {

[PHP] Help with an error I can't find!

2001-11-01 Thread Lic. Carlos A. Triana Torres
Can some one help fix this error? Warning: Variable passed to each() is not an array or object in /usr/local/.test.php on line 14 Here is the line: while(list ($key, $mid) = each ($HTTP_POST_VARS)) { -- Lic. Carlos A. Triana Torres. Webmaster. Centro de Informacion y Gestion Tecnologica

[PHP] email of listowner?

2001-11-01 Thread Chris Hayes
hi, i know it is very ungrateful but i am trying to stop my subscription to this list. I cannot confirm the unsubscribe because my ISP changes my email on the go and so the confirmation mail is not accepted, even if i try to mess with the sender address. The php-general-owner@ does not seem

RE: [PHP] Help with an error I can't find!

2001-11-01 Thread Mark Roedel
-Original Message- From: Lic. Carlos A. Triana Torres [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 01, 2001 4:25 PM To: [EMAIL PROTECTED] Subject: [PHP] Help with an error I can't find! Can some one help fix this error? Warning: Variable passed to each() is not an

[PHP] Extensions problem

2001-11-01 Thread Brandon Orther
Hello, I have mssql extensions working with the .dll in the extensions directory of my PHP4 folder. I am trying to get curl to work but when I try to run php it says that php_curl.dll was not found, But it is in the same dir as the mssql and mssql is working great. Any IDEAS? Thanks

RE: [PHP] Extensions problem

2001-11-01 Thread Erik H. Mathy
I have mssql extensions working with the .dll in the extensions directory of my PHP4 folder. I am trying to get curl to work but when I try to run php it says that php_curl.dll was not found, But it is in the same dir as the mssql and mssql is working great. I've never used curl, but I

[PHP] Question about MySQL, ORDER

2001-11-01 Thread BlueBytes
http://paa.fragland.net/hosted/myquestion/ here you find my question, thx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Re: Help with an error I can't find!

2001-11-01 Thread Liz Fulghum
Sounds like $HTTP_POST_VARS is not a valid array (to check do if(is_array($HTTP_POST_VARS)) { print YUP; } else { print NOPE; }) Check to make sure that track_vars is turned on in the PHP.ini. Lic. Carlos A. Triana Torres [EMAIL PROTECTED] wrote in message

Re: [PHP] Question about MySQL, ORDER

2001-11-01 Thread Mike Eheler
SELECT Main.title, Replies.date FROM (Main LEFT JOIN Replies ON Main.id = Replies.main_id) ORDER BY Replies.date That should do it. Mike BlueBytes wrote: http://paa.fragland.net/hosted/myquestion/ here you find my question, thx -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] mail() extra headers not working

2001-11-01 Thread DL Neil
I am trying to ad extra headers to email's I am sending through php. I want to ad Reply-To: and Bounse-To: addresses. But when add them useing the forth feild of the mail() funtion. mail($recipient,$msubject,$message,Reply-To: $sender); but for some reason when I send this e-mail it puts

[PHP] Utility script: dates

2001-11-01 Thread DL Neil
Somewhere on my travels around the many PHP/script sites, I'm sure that at one time I noticed a date-display utility. I cannot find it again. Please would someone point the way... What I'm looking for: displays a form with a variety of date/time fields, user enters a date/time into various

[PHP] Destroying Ssessions

2001-11-01 Thread Richard Baskett
Unusual that I didnt even get one response, so I shall try again! :) Ok why does this not work? session_name(adminid); session_start(); unset($sess); session_unset(); session_destroy(); session_write_close(); $sess = 0; etc etc etc etc etc etc.. After all that is executed I take a look at the

[PHP] submitting form to a page with frames

2001-11-01 Thread Matt Fair
I have 2 pages page1.php and page2.php. I want to submit the form and its values to page2.php. page2.php has frames: frameset rows=218,* frame src=menu.php name=menuFrame frame src=editor.php name=editorFrame /frameset How can I get the variables that were submitted from page1.php into the

Re: [PHP] submitting form to a page with frames

2001-11-01 Thread Jim Lucas
try using the $GLOBALS[variable_name] array. Jim - Original Message - From: Matt Fair [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 01, 2001 3:08 PM Subject: [PHP] submitting form to a page with frames I have 2 pages page1.php and page2.php. I want to submit the

[PHP] Where is my php.ini?

2001-11-01 Thread Gaylen Fraley
Ok. I've installed php on linux and all is well! Been running for weeks now. Problem is, I never had to set up my php.ini . Got curious and am wondering where it is. Locate php.ini yields one in the pear/tests directory, but that's not it. Suggestions? -- Gaylen [EMAIL PROTECTED] Home

Re: [PHP] Where is my php.ini?

2001-11-01 Thread Jim Lucas
most of my installs, Redhat linux 7.0 and 7.1, have placed the php.ini file in the /etc/php.ini location. what version of linux are you using? Jim - Original Message - From: Gaylen Fraley [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 01, 2001 3:16 PM Subject: [PHP]

[PHP] Strange include

2001-11-01 Thread Marius Pertravius
Sveiki, php-general, I have a file index.php . I include file menu.php in index.php ( I write include('menu.php'); in index.php ) . I want to do like this: index.php/menu.php . That means, that index.php has to include menu.php index.php/second.php . That means, that index.php has to

Re: [PHP] submitting form to a page with frames

2001-11-01 Thread Tom Rogers
The simplest way is to use sessions to hold the values, or you can loop through the post vars and add them to the menu.php line like src=menu.php?var1=var2=xxx... which will get messy if you have a lot of fields. Tom At 09:08 AM 2/11/01, Matt Fair wrote: I have 2 pages page1.php and

Re: [PHP] Where is my php.ini?

2001-11-01 Thread Meir Kriheli
On Friday 02 November 2001 01:16, Gaylen Fraley wrote: Ok. I've installed php on linux and all is well! Been running for weeks now. Problem is, I never had to set up my php.ini . Got curious and am wondering where it is. Locate php.ini yields one in the pear/tests directory, but that's

Re: [PHP] Where is my php.ini?

2001-11-01 Thread Gaylen Fraley
7.2 and I compiled PHP 4.0.6 myself. When I run phpinfo, it shows the configuration file path = /usr/local/lib/php.ini . there is no php.ini in the file. -- Gaylen [EMAIL PROTECTED] Home http://www.gaylenandmargie.com PHP KISGB v2.21 Guestbook http://64.133.20.82/phpwebsite Jim Lucas [EMAIL

RE: [PHP] Destroying Ssessions

2001-11-01 Thread Johnson, Kirk
session_destroy() works fine for me - it deletes the session file after the script finishes. I have never used the session_name() function. I am wondering if it is possible that the server is confused about what session needs to be destroyed because of the way session_name() is being used

Re: [PHP] Where is my php.ini? - FORGET IT!

2001-11-01 Thread Gaylen Fraley
Sorry! I had a senior moment.! I have it. -- Gaylen [EMAIL PROTECTED] Home http://www.gaylenandmargie.com PHP KISGB v2.21 Guestbook http://64.133.20.82/phpwebsite Meir Kriheli [EMAIL PROTECTED] wrote in message 20011101233857.HRNC958.fep2@there">news:20011101233857.HRNC958.fep2@there... On

[PHP] Re: Problem with non us caracters and strtr

2001-11-01 Thread Yasuo Ohgaki
Rodrigo Peres wrote: Hi list, I'm in a big trouble. I'm brazilian, so I've made a script to clean up the special caracters from our language in order to not mess up my publisher, but this script don't work in Macintosh (macos 9.1, IE 5, all in american english). This is my code ?

[PHP] Re: Strange include

2001-11-01 Thread Chris Lee
this '/' method looks kinda neet, but some vars get messed, ie $PHP_SELF, just be carefull using it. ?php $INC = explode('/', $REQUEST_URI); unset($INC[0]); unset($INC[1]); $INC = implode('/', $INC); include_once($INC); ? Chris Lee [EMAIL PROTECTED] Oòkó‰öårzòËèkó [EMAIL

[PHP] Re: Destroying Ssessions

2001-11-01 Thread Chris Lee
destroying session vars never worked for me either. it hasnt for quite some time. now why its important you destoy them other then cleanup, I dont know your reasons. Im going to guess. - you store username/passwd in sessions and because httpd runs as nobody, anyone on the server can read them.

[PHP] Re: Is there a way not to pop up the default login window?

2001-11-01 Thread Chris Lee
if your using mod_auth then mod_auth will be called not mod_php. if you want mod_php to be called, dont use .htaccess (they are apart of mod_auth). sorry... -- Chris Lee [EMAIL PROTECTED] Zhu George-Czz010 [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

[PHP] Re: print on printer

2001-11-01 Thread Chris Lee
javascript javascript = client side php = server side unless you want to print on a printer on the server, your goign to need to use javascript. not only are you asking in the wrong forum, real answer is 'I dont know' sorry cant help ya bud. -- Chris Lee [EMAIL PROTECTED] Luz Lopez

[PHP] Re: Crating program for access parallel

2001-11-01 Thread Chris Lee
why? if your thinking the db may give the wrong answer, postgres does a bery good job of this. if your super worried, well use mysql, they lock the table when a field is being inserted, updated, or deleted. if you want todo this for some other strange reason, do it the easy way. ?php - if file

Re: [PHP] Re: Destroying Ssessions

2001-11-01 Thread Richard Baskett
Actually I have had a couple people respond about the code order that I wrote, so I am going to try and see if that works. You're right I do store the username/passwd in the session, and I do encrypt both the session password and the database password. I am trying to make this very secure :)

[PHP] Re: Secure transfer

2001-11-01 Thread Chris Lee
you dont need any unctions in php todo this. you need to install openssl and compile it into apache. port 80 = http (non-secure) port 443 = https (secure) http://www.somesite.com/index.php unsecure https://www.somesite.com/index.php same page, now everything is secure have fun. -- Chris

[PHP] Re: Distributed Data Base

2001-11-01 Thread Chris Lee
I dont worry about it. why are you? -- Chris Lee [EMAIL PROTECTED] Luis Corea [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, I want to Know how can I save information on a Data Bse that will be access for many persons at the same time. I use

[PHP] Re: date problem

2001-11-01 Thread Chris Lee
date() shoudl give you the time in your timezone, gmdate() should give you the time in the GMT timezone. I would check your server and make sure the timezone is correctly set. -- Chris Lee [EMAIL PROTECTED] Steve Tsai [EMAIL PROTECTED] wrote in message news:none... For reference: OS:

[PHP] Re: mysql php prob...

2001-11-01 Thread Chris Lee
put the mysql_db_query in an if() statement, more likley then not your select statement isnt returning any results. -- Chris Lee [EMAIL PROTECTED] Sc [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi; i keep getting an error of: Warning: Supplied

[PHP] Re: is there a commandline php.exe interpreter?

2001-11-01 Thread Chris Lee
sure there is, get it at php.net goto download section and choose the cgi version. there you are. php.exe -- Chris Lee [EMAIL PROTECTED] John A. Grant [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I've installed ActivePerl, which gives me a way to run

[PHP] Binary file transfers

2001-11-01 Thread phantom
I am uploading .Jpegs and GIFS but they end up being all messed up when I try to view them after a file transfer. However, txt file transfers work ok. Someone told me this is because images need to be transfered as binary files, not ascii files (like txt). Is this true, and if so, how do I

[PHP] simple array tutorial wanted

2001-11-01 Thread Justin French
Hi all, I really want to get me head around arrays, becuase I KNOW there's a better way to do some of the stuff i'm doing right now. I could mess with stuff for a few hours and probably get it, but i'd rather have a decent tutorial if anyone knows of one... Thanks, Justin French -- PHP

[PHP] Re: simple array tutorial wanted

2001-11-01 Thread Liz Fulghum
http://www.onlamp.com/pub/a/php/2001/06/07/php_foundations.html Justin French [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all, I really want to get me head around arrays, becuase I KNOW there's a better way to do some of the stuff i'm doing right

RE: [PHP] simple array tutorial wanted

2001-11-01 Thread Jack Dempsey
http://www.php.net/manual/en/language.types.array.php start with that -Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: Friday, November 02, 2001 12:33 AM To: php Subject: [PHP] simple array tutorial wanted Hi all, I really want to get me head around arrays,

Re: [PHP] Re: Can you AUTO Post/Submit on a mixed HTML/PHP form

2001-11-01 Thread Jason G.
Just a thought... Check out crescent internet toolkit by Progress Software. It has a control for VB that lets you post data to a script, rather than relying on an HTML form... Can you just use a query string? you may have to code your own urlencode() function in VB, but that may be an

Re: [PHP] Uncertainties about MySQL commands

2001-11-01 Thread Jason G.
Regarding your mysql_insert_id() function: I believe that it works on a connection by connection basis. Therefore, if you execute an insert, and then call that function, you are guarenteed to have the correct ID. Look up the LAST_INSERT_ID() function in the MySQL manual on www.mysql.com for

Re: [PHP] simple array tutorial wanted

2001-11-01 Thread Justin French
U, I now how to use the manual, I was after a *tutorial*. Liz posted a VERY good link/tutorial though -- many thanks!!! Justin Jack Dempsey wrote: http://www.php.net/manual/en/language.types.array.php start with that -Original Message- From: Justin French

[PHP] year 2002 strtotime problem

2001-11-01 Thread John Clarke
I have this problem with Php 4.0.5 on both Win ME and Linus boxes, where my year 2002 dates are converted back to 2001 when formating with 'strtotime'. First I post the following variables from an html page to a php page $date1='12/12/2001' $date2='15/01/2002' I then use date(D M j Y,

RE: [PHP] year 2002 strtotime problem

2001-11-01 Thread Niklas Lampén
Funny, I quickly tried this: ? $date1 = 12/12/2001; $date2 = 15/01/2002; $date1 = date(D M j Y, strtotime($date1)); $date2 = date(D M j Y, strtotime($date2)); print $date1.br; print $date2.br; print date(Y-m-d, strtotime($date1)).br; print date(Y-m-d, strtotime($date2)).br; ? And the result

  1   2   >