[PHP] Re: file not opening in internet explorer

2003-02-18 Thread John Taylor-Johnston
I had a similar problem Perling once. The server sometimes has default CHMOD settings. I suspect the default is "rw--". You may have to CHMOD your file in your script yourself to overcome this. >the file permissions are "rw-r-r" Are you sure :) Use your command line and check the CHMOD. I cann

Re: [PHP] Good grief

2003-02-18 Thread John Taylor-Johnston
Rasmus, If I were going to remanufacture http://www.php.net/manual/en/function.explode.php I would add/edit: $data = "foo:*:1023:1000::/home/foo:/bin/sh"; list($user,$pass,$uid,$gid,$gecos,$home,$shell) = explode(":",$data); echo $user."".$pass."".$uid."".$gecos."".$home."".$shell; Thanks agai

Re: [PHP] Good grief

2003-02-18 Thread John Taylor-Johnston
Rasmus, >You probably want just $db and $table Yes I do. I need to learn a little more about declaring arrays & its syntax. I figured I was declaring an array called "list". Then ... :) Copied & tinkered from: http://www.php.net/manual/en/function.explode.php Thanks! John -- John Taylor-Johns

[PHP] file not opening in internet explorer

2003-02-18 Thread DIKSHA NEEL
hi all, $fp = fopen("\bdoi_change\sundar.html", "w"); i am able to write to this file through my php page filecheck.php and even am able to read the written contents. but when i enter http://192.168.0.1/bdoi_change/sundar.html in my internet explorer address bar, it says the page cannot be disp

Re: [PHP] php.ini for UNIX sendmail????

2003-02-18 Thread Robin Mordasiewicz
Is there any way to specify to use a remote smtp server in the php.ini On Tue, 18 Feb 2003, Scott Fletcher wrote: > Well, okay, even with the '\r\n' path, I still have problem. Here's the new script >and I retested it. > > --clip-- > $message = "This is a test"; > > mail("[EMAIL PROTECTED]

Re: [PHP] Good grief

2003-02-18 Thread Rasmus Lerdorf
What is $list supposed to be? You probably want just $db and $table there. -Rasmus On Wed, 19 Feb 2003, John Taylor-Johnston wrote: > Yawn of frustration. > > $dbtable = "ccl.ccl_main"; > > list($db,$table) = explode(".",$dbtable); > echo $dbtable.''.$list[$db].''.$list[$table].''; > echo $dbta

RE: [PHP] PHP fileperms

2003-02-18 Thread Kelly Protsko
Here is how the numbers work for file permissions. 644 = "rw-r--r--" 0 --- no access 1 --x execute 2 -w- write 3 -wx write and execute 4 r-- read 5 r-x read and execute 6 rw- read and write 7 rwx read write execute -Original Message- From: DIKSHA NEEL [mailto:[EMAIL PROTECTED]] S

[PHP] Good grief

2003-02-18 Thread John Taylor-Johnston
Yawn of frustration. $dbtable = "ccl.ccl_main"; list($db,$table) = explode(".",$dbtable); echo $dbtable.''.$list[$db].''.$list[$table].''; echo $dbtable."".$list[$db]."".$list[$table].""; I stumped :) $list[$db]shows nothing $list[$table] shows nothing Ok, newbie time :( What's wrong? -

[PHP] PHP fileperms

2003-02-18 Thread DIKSHA NEEL
HI ALL, i am getting the result as 644 when i execute the following command. can anyone please tell me what file permission does 644 stand for and what should i do to make my file readable? $filename = '\bdoi_change\sundar.html'; printf("%o",(fileperms("\bdoi_change\andar.html") & 0777)); rega

[PHP] Using the GD library

2003-02-18 Thread Øystein Håland
I can create images of words but I want the characters to be outlined, and I want to have the first character in a different font. How can this be done? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] internal site search

2003-02-18 Thread olinux
Option 2b. - there are several great open source site indexers available. I really like htdig http://www.htdig.org. mnogosearch http://www.mnogosearch.org is another often mentioned. Search Tools for Web Sites and Intranets http://www.searchtools.com Open Source Search Engines http://www.searc

Re: [PHP] Help with authentication 'design'

2003-02-18 Thread olinux
You may want to check out PEAR::LiveUser http://pear.php.net/package-info.php?pacid=126 http://projects.21st-hq.de/liveuser/ A very complete / multilevel authentication package. Get the latest source from CVS as the source on pear site is a bit outdated. olinux --- "Clarkson, Nick" <[EMAIL PROT

Re: [PHP] Wrong version displayed after upgrading to php-4.2.3

2003-02-18 Thread Rasmus Lerdorf
Did you move things around after installing Apache? The apxs program needs to know where these various Apache files are. Somehow your apxs is out of synch with where your files actually are. Either re-install using whatever mechanism you use or edit your apxs script and teach it about your paths

Re: [PHP] Wrong version displayed after upgrading to php-4.2.3

2003-02-18 Thread Rasmus Lerdorf
On Tue, 18 Feb 2003, Jason k Larson wrote: > use: > --with-mysql=/usr/lib/mysql No, in almost all cases it is wrong to have "lib" or "include" in a --with path. (including this time) -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] limiting characters

2003-02-18 Thread Michael P. Carel
thnks its working here - Original Message - From: "Justin French" <[EMAIL PROTECTED]> To: "Michael P. Carel" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, February 19, 2003 8:09 AM Subject: Re: [PHP] limiting characters > Season to taste: > > function chopper($string,$length

[PHP] Which is the difference

2003-02-18 Thread Breno Cardoso Perucchi
I am using the first example in my config file. I would like to know the difference between both ? php_admin_value open_basedir "/home/test" php_admin_value safe_mode_include_dir "/home/test" Respectfully Breno Cardoso Perucchi [EMAIL PROTECTED] -- PHP General Mailing List (http://www

RE: [PHP] preg_replace

2003-02-18 Thread John W. Holmes
> This should work (as far as I can tell) But yields the following error. > Parse error: parse error, unexpected T_CHARACTER, expecting T_STRING or > T_VARIABLE or T_NUM_STRING > Any help is appreciated! > > function HTMLfromNickName ( $player ) { > //example input "^2pla^3yer" > $color=array( >

Re: [PHP] Sessions Timing Out Too Often

2003-02-18 Thread Justin French
Did you look in the manual first? Didn't think so. php.net/session first search result is http://www.php.net/manual/en/ref.session.php There are two PHP.ini settings you should look at: "session.gc_probability specifies the probability that the gc (garbage collection) routine is started on each

Re: [PHP] running code on my machine wile serving other domain?

2003-02-18 Thread Jason Sheets
It is possible but not always a good idea. First every time they go to the application it will have to load the code off the Internet, that depends on your site being up and it will introduce a lot of latency into your program. Additionally a lot of people are not happy about applications phoning

Re: [PHP] security issues on shared servers

2003-02-18 Thread Jason Sheets
If your hosting provider has enabled safe mode then others can not include scripts that have a different uid than the owner of the current script, that prevents them from including your code. As far as the files go you could checksum them or if you are honestly concerned about them being changed s

RE: [PHP] mysql select and date functions

2003-02-18 Thread John W. Holmes
> Change your query: > selectdayofmonth(Posted) as DOM_Posted, > month(Posted) as M_Posted, > year(Posted)as Y_Posted, > hour(Posted) as HH_Posted, > minute(Posted) as MM_Posted, > Name, > Prayer > from pray

Re: [PHP] Wrong version displayed after upgrading to php-4.2.3

2003-02-18 Thread PathFinder Software
Now I get a Config file error. apxs:Error: Config file /etc/httpd/conf/httpd.conf not found make[1]: *** [install-sapi] Error 1 make[1]: Leaving directory `/var/mnt/System/php-4.2.3' make: *** [install-recursive] Error 1 On my distribution I have the httpd.conf in the /var/conf/apache/users I use

RE: [PHP] Sessions Timing Out Too Often

2003-02-18 Thread John W. Holmes
> I'm finding that my sessions seem to be timing out fairly quickly. For > example, in a little forum I wrote with PHP, people are telling me that if > they type a long message and click Submit, they are taken to the Login > page > because their session obviously timed out, and they loose their pos

[PHP] Sessions Timing Out Too Often

2003-02-18 Thread Monty
I'm finding that my sessions seem to be timing out fairly quickly. For example, in a little forum I wrote with PHP, people are telling me that if they type a long message and click Submit, they are taken to the Login page because their session obviously timed out, and they loose their posts in the

Re: [PHP] Block direct image loads but allow them in PHP

2003-02-18 Thread Michael Mulligan
So I implemented this the other day and got excited as it worked...sort of. My code is very similar to the link that you suggested. This is the script that I would call from within an : if(isset($i)) { //codeImageURL decodes $i into an image path that we can work with $link=codeImageURL($i

Re: [PHP] mysql select and date functions

2003-02-18 Thread Sunfire
tnx it worked just like i wanted it to... - Original Message - From: "Barajas, Arturo" <[EMAIL PROTECTED]> To: "'Sunfire'" <[EMAIL PROTECTED]> Sent: Tuesday, February 18, 2003 7:59 PM Subject: RE: [PHP] mysql select and date functions > Have you tried naming the fields? > > > $query=m

RE: [PHP] mysql select and date functions

2003-02-18 Thread Bryan Lipscy
Change your query: select dayofmonth(Posted) as DOM_Posted, month(Posted) as M_Posted, year(Posted)as Y_Posted, hour(Posted) as HH_Posted, minute(Posted) as MM_Posted, Name, Prayer from prayer T

[PHP] mysql select and date functions

2003-02-18 Thread Sunfire
i have a field in a table called Posted and it is a timestamp type im using mysql and my page is supposed to take the timestamp field and show it on the screen in the form of month#/dayofmonth/year like 02/18/2003 the problem im having is trying to get it to be formatted.. i tried mysql functions l

[PHP] preg_replace

2003-02-18 Thread aw2001
This should work (as far as I can tell) But yields the following error. Parse error: parse error, unexpected T_CHARACTER, expecting T_STRING or T_VARIABLE or T_NUM_STRING Any help is appreciated! function HTMLfromNickName ( $player ) { //example input "^2pla^3yer" $color=array( "1"=>"#FF00

Re: [PHP] Wrong version displayed after upgrading to php-4.2.3

2003-02-18 Thread Jason k Larson
use: --with-mysql=/usr/lib/mysql HTH, Jason k Larson PathFinder Software wrote: Hi, During the configure I get this error message. configure: error: Cannot find header files under /var/lib/mysql a whereis mysql produce the following output: mysql: /usr/bin/mysql /usr/lib/mysql /usr/include/m

RE: [PHP] ASCII/UNICODE Character Translation Comparison in Strings

2003-02-18 Thread Dennis Cole
$txt = "björk"; $txt = strtr($txt, "ÁÉÍÓÚÑÀÈÌÒÙÄËÏÖÜÂÊÎÔÛáéíóúñàèìòùäëïöüâêîôûç", "aeiounaeiouaeiouaeiouaeiounaeiouaeiouaeiouc"); echo $txt; // Returns "bjork" -Original Message- From: Chris McCluskey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 18, 2003 7:03 PM To: [EMAIL PROTECTED

[PHP] LDAP next prev howto

2003-02-18 Thread Roger Thomas
is it possible to retrieve a bunch of records from an ldap tree and do a next-prev navigation on those records ? example script pls. -- __ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com -- PHP General

[PHP] Wrong version displayed after upgrading to php-4.2.3

2003-02-18 Thread PathFinder Software
Hi, During the configure I get this error message. configure: error: Cannot find header files under /var/lib/mysql a whereis mysql produce the following output: mysql: /usr/bin/mysql /usr/lib/mysql /usr/include/mysql /usr/share/mysql /usr/man/man1/mysql.1 /usr/man/man1/mysql.1.gz I have MySQL i

Re: [PHP] limiting characters

2003-02-18 Thread Justin French
Season to taste: = $length) { $i = 0; $new = ''; while($i < $length) { $new .= $words[$i].' '; $i++; } if($suffix) { $new .= $suffix; } return trim($new); } else { return $string; } } $

RE: [PHP] limiting characters

2003-02-18 Thread Dennis Cole
$words = "All I want for Christmas is my two front teeth "; $newwords = trim($words); $pieces = explode(" ", $words); echo "$pieces[0] $pieces[1] $pieces[2] $pieces[3]..."; // Retures "All I want for... " -Original Message- From: Michael P. Carel [mailto:[EMAIL PROTECTED]] Sent: Tuesda

Re: [PHP] limiting characters

2003-02-18 Thread Michael P. Carel
it would be better if it will be chopped by words and not by characters. Any idea how? - Original Message - From: "Justin French" <[EMAIL PROTECTED]> To: "Michael P. Carel" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, February 19, 2003 7:26 AM Subject: Re: [PHP] limiting chara

Re: [PHP] limiting characters

2003-02-18 Thread R B
You can use the substr function: $myoutput = "This is my sample output."; $myoutput = substr($myoutput,0,10)."..."; From: "Michael P. Carel" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: [PHP] limiting characters Date: Wed, 19 Feb 2003 07:00:52 +0800 Hi to all, How could i limit the

Re: [PHP] limiting characters

2003-02-18 Thread Justin French
Do you want it chopped at a certain number of words, or characters? Justin French on 19/02/03 10:00 AM, Michael P. Carel ([EMAIL PROTECTED]) wrote: > Hi to all, > > How could i limit the character output that is being displayed in the html > page. Is there a function or a php classes that per

[PHP] limiting characters

2003-02-18 Thread Michael P. Carel
Hi to all, How could i limit the character output that is being displayed in the html page. Is there a function or a php classes that perfectly support it? Example: $myoutput = "This is my sample output."; Required Output: This is my Any idea? Thanks in advance for the replies mike

RE: [PHP] script to check if server is up

2003-02-18 Thread Luke Woollard
Another useful idea is running a cron job (as root) every so often on each machine that opens a socket connection to a port (eg. for www: 80) If the socket connection returns false, you have a problem. You could then reboot the service (in this case apache or similar). I did this to check mysql w

Re: [PHP] Redirect without header or javascipt

2003-02-18 Thread Justin French
without header() and without javascript? your only option would be a meta refresh, which i can't imagine is going to help :) Justin on 19/02/03 9:59 AM, Daniel Guerrier ([EMAIL PROTECTED]) wrote: > Is there any to redirect in php with using header() > and without the use of javascript? > > _

Re: [PHP] Sending/recieiving email

2003-02-18 Thread Justin French
for sending, it can be REALLY basic (php.net/mail) or really complex... if you want the complex end of things (HTML, attachments, etc) try manuel lemos' class on phpclasses.com for receiving, i've never done it, but php.net/imap looks like the go justin on 19/02/03 10:13 AM, Jono Bacon ([EMAIL

RE: [PHP] Redirect without header or javascipt

2003-02-18 Thread Johnson, Kirk
> Is there any to redirect in php with using header() > and without the use of javascript? You can use an html meta tag with http-equiv="refresh". Kirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Redirect without header or javascipt

2003-02-18 Thread Tyler Longren
no tyler - Original Message - From: "Daniel Guerrier" <[EMAIL PROTECTED]> To: "php user group" <[EMAIL PROTECTED]> Sent: Tuesday, February 18, 2003 4:59 PM Subject: [PHP] Redirect without header or javascipt > Is there any to redirect in php with using header() > and without the use of

[PHP] Redirect without header or javascipt

2003-02-18 Thread Daniel Guerrier
Is there any to redirect in php with using header() and without the use of javascript? __ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] security issues on shared servers

2003-02-18 Thread David Feldman
I run a PHP-based Web site hosted on a shared UNIX server provided by a pretty standard Web hosting company -- as I imagine do many people. There are a lot of users on this server, and I know nothing about them. Apache (and thus PHP) generally runs as www or nobody, so although each user on

[PHP] Web Based Video Conferencing Solution

2003-02-18 Thread Vernon
Anyone know of a video conferencing solution (hopefully GNU) for use within a php web site? I'm looking to do something where a number of people can video conference at the same time. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] getting result from mysql decode() function

2003-02-18 Thread Tyler Longren
Hi, I have this query: $decode = mysql_query("SELECT decode(\"$data\", \"$password\")"); It decodes the $data using the $password. How do I go about printing the result? Thanks, Tyler -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Sending/recieiving email

2003-02-18 Thread Jono Bacon
Hello all, I am looking to work with email and PHP, and I was wondering what would be the best way to deal with sending and recieving mail - is there a library pre-written or can I write it with functions that are part of PHP itself. Cheers, Jono -- PHP General Mailing List (http://www

Re: [PHP] browser identification problem

2003-02-18 Thread chip . wiegand
Ernest E Vogelsinger <[EMAIL PROTECTED]> wrote on 02/17/2003 11:20:41 PM: > At 06:05 18.02.2003, Jason Wong said: > [snip] > >On Tuesday 18 February 2003 01:18, [EMAIL PROTECTED] wrote: > > > >> > then set 'user_agent' in > >> > php.ini to match that of one

[PHP] Array declarations

2003-02-18 Thread Joachim Krebs
Is there any speed difference at all from the following two code blocks (miniscule or not)? If so, which is faster? $cfg["db"]["host"] = ""; $cfg["db"]["user"] = ""; $cfg["db"]["pass"] = ""; or $cfg["db"] = array("host"=>"", "user"=>"", "pass"=>""); Joachim -- PHP Ge

Re: [PHP] NULL character help

2003-02-18 Thread David Otton
On Tue, 18 Feb 2003 16:02:59 -0500, you wrote: >http://www.psikon.com/vartest.php >http://www.psikon.com/vartest.phps > >how can I get rid of that null character or am I forced to use sub_str in >this case? You changed the string to be "abcd\0f" on line 8. You didn't remove the character, you set

[PHP] NULL character help

2003-02-18 Thread v0idnull
http://www.psikon.com/vartest.php http://www.psikon.com/vartest.phps how can I get rid of that null character or am I forced to use sub_str in this case? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [PHP-DEV] Re: [PHP] Threading

2003-02-18 Thread Rasmus Lerdorf
On Tue, 18 Feb 2003, Greg Donald wrote: > On Tue, 18 Feb 2003, Bruce Miller wrote: > > >Will PHP allow multiple-thread execution? > > PHP4 does not have thread support. Well, except for pear/PECL/threads, of course. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

[PHP] Re: function getting redeclared

2003-02-18 Thread Greg Beaver
Hi Erik, You may want to re-investigate using nested functions for this purpose, it seems a bit illogical. The main reason is that it clutters up the source. If you want a private function, use docblock tag @access private to let other users know that it should not be accessed directly, or wait f

[PHP] Using mail() function in php.ini (Unix/Linux)

2003-02-18 Thread Scott Fletcher
For those of you who don't know it or are struggling with the problem with the slow sending of hte e-mail behind the firewall. This problem doesn't alway lie with the DNS itself. The workaround to the problem is the hostname resolution or the alias to the hostname. Just open up the /etc/hosts fi

Re: [PHP] Wrong version displayed after upgrading to php-4.2.3

2003-02-18 Thread Jason k Larson
if you did a 'make install' and didn't receive any errors, then I'd suggest making sure you restarted the Apache daemon, if that still resolves to the older version, then check the paths to the /path/to/apache/libexec/libphp.so You can look at the date/time stamp of the file to determine if the

[PHP] running code on my machine wile serving other domain?

2003-02-18 Thread merlin
Hi there, I am wondering if I could anyhow run php code on my machine and pull the html code to another domain? Example: I do have a webapp where I do not want to give away the code to customers They want to have the same webapp, with the same database, but with their front end design Is somet

Re: [PHP] Wrong version displayed after upgrading to php-4.2.3

2003-02-18 Thread Larry E. Ullman
I upgraded PHP from 4.0.3pl1 to php-4.2.3 on my Apache/1.3.14 using 'apxs' and I did not received any errors during the configure and make. The installation seems to have gone just fine. However, when I load a phpinfo.php document I get the 4.0.3pl1 version displayed??? What can be wrong and what

Re: [PHP] Problem with sessions

2003-02-18 Thread Larry E. Ullman
This work very well, but when i open twice mozilla browsers and login with diferent users, i always keep the same session id, and sessions vars for two browsers... i don't know how to resolve this problem... Use two different browsers, for example, both Mozilla and Netscape. The session cookie

[PHP] Wrong version displayed after upgrading to php-4.2.3

2003-02-18 Thread PathFinder Software
Hi, I upgraded PHP from 4.0.3pl1 to php-4.2.3 on my Apache/1.3.14 using 'apxs' and I did not received any errors during the configure and make. The installation seems to have gone just fine. However, when I load a phpinfo.php document I get the 4.0.3pl1 version displayed??? What can be wrong and

Re: [PHP] Threading

2003-02-18 Thread Greg Donald
On Tue, 18 Feb 2003, Bruce Miller wrote: >Will PHP allow multiple-thread execution? PHP4 does not have thread support. -- Greg Donald http://destiney.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Threading

2003-02-18 Thread Bruce Miller
Will PHP allow multiple-thread execution? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php.ini question.....

2003-02-18 Thread James Hatridge
HI All On Tuesday 18 February 2003 18:32, David Otton wrote: > On Tue, 18 Feb 2003 17:38:28 +0100, you wrote: > >At last I got safe-mode turned off (Gott sei dank!). But I'm still having > > a problem. I can only read Mysql DBs. I can not open a DB to update. > > You have to connect to MySQL with

[PHP] Replacing JSP with PHP?

2003-02-18 Thread Jiann-Ming Su
Is it possible to replace JSP and use PHP to encapsulate our page rendering code? We're running a java servlet that needs to be integrated with a PHP front end. I've given up on trying to run php as a java servlet. I know this is a strange request, but thanks for any tips. -- Jiann-Ming Su [

Re: [PHP] I have a problem with MsSQL

2003-02-18 Thread role . php-general
Jimmy, In response to your mail of Monday 17 February 2003 at 18:54:02: JH> My problem is the characters in spanish: JH> example: JH> Construcción (Data of MsSQL Server) JH> Result in web with PHP: JH> Construcci¢n Are you aware of HTML codes like the following - some are the common ones

[PHP] application security

2003-02-18 Thread Brad Pauly
Hey Everyone, There have been a couple of threads lately about application security. A while ago I wrote a short article that digs into this a bit and explores one way of increasing security. I cleaned it up this morning and put it up on my site if anyone is interested. http://robinsontech.com/a

Re[4]: [PHP] FTP not enabled in RedHat 7.x distro

2003-02-18 Thread role . php-general
Martin, In response to your mail of Monday 17 February 2003 at 18:27:05: MM> My RH 7.3 php (distributed by RH) has --enable-ftp, so it was MM> compiled with the ftp support. MM> Check yor sintax. Could have a typo somewhere. Very weird - I thought RedHat would have enabled it too. I did copy-an

Re[2]: [PHP] FTP not enabled in RedHat 7.x distro

2003-02-18 Thread role . php-general
Martin, In response to your mail of Monday 17 February 2003 at 18:10:31: MM> Use phpinfo() to know how your PHP was compiled. If it comes as a MM> module, you should see a --enable-feature=shared. Don't know it MM> ftp support can be compiled as shared, but Indeed - I think the doc's maybe (

[PHP] Problem with sessions

2003-02-18 Thread Sidar Lopez Cruz
I have RedHat 8, Apache 2, PHP 4.2.2 My problem is with sessions, 1. page -index.html- 2. page -login.php- ; ... $_SESSION["UID"] = $id_usuario; ?> from here i am to do a redirec to another page called, main.php where is the menu options i do it so.. window.locati

Re: [PHP] escaping quotes for redisplay

2003-02-18 Thread David Otton
On Tue, 18 Feb 2003 13:10:33 -0500, you wrote: > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] ankord php text editor

2003-02-18 Thread Edward Peloke
www.ankord.com -Original Message- From: Awlad Hussain [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 18, 2003 11:38 AM To: Php-General@Lists. Php. Net Subject: Re: [PHP] ankord php text editor Tell us what the url of Ankord is. I use HtmlKit (http://www.htmlkit.com) its the best

[PHP] escaping quotes for redisplay

2003-02-18 Thread Erik Price
Hi, I am running into a problem, that I'm certain I've had before but for some reason don't remember how to handle. If anyone can advise me on what to do here, that would be great. I have a PHP script that accepts some user input and validates it, and if the validation fails, it re-displays t

[PHP] highlight_string for VB, CPP or .NET source code?

2003-02-18 Thread stefen Lars
Hello all PHP offers the fantastic function ‘highlight_string’ to highlight PHP source code. I was wondering whether anyone had written a function to highlight Visual Basic, CPP or .NET source code. Alternatively, would anyone have any suggestions on how to write such a function. Ideally, the

Re: [PHP] MySQL DB Schema

2003-02-18 Thread Erik Price
On Tuesday, February 18, 2003, at 12:39 PM, David Otton wrote: You want the tables and the relationships between them? Not easy to get the links because of the lack of foreign keys in MySQL. You can add a comment to your table with the COMMENT modifier, which gives you 60 characters to descr

RE: [PHP] File upload problem

2003-02-18 Thread Chris McCluskey
Try if(isset($_REQUEST["Submit"])) If that doesn't work, perhaps you could just diagnose this by print_r'ing the variables you are getting from the form: (at the very top of your code, put): die(print_r($_REQUEST)); -Chris -Original Message- From: Manuel Ochoa [mailto:[EMAIL PROTECTED

Re: [PHP] MySQL DB Schema

2003-02-18 Thread Erik Price
On Tuesday, February 18, 2003, at 12:23 PM, Phillip S. Baker wrote: Is there an easy way to pull out the schema of a MySQL for viewing?? If you have access to the command line (either directly or via the system() function), try this: bash 2.05 $ mysqldump -t databasename --user=username --

Re: [PHP] inserting

2003-02-18 Thread Chris Knipe
I believe you are looking for . I may be mistaken though. -- me - Original Message - From: "Michael P. Carel" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 18, 2003 10:36 AM Subject: [PHP] inserting > hi to all, > > I'm having problem posting messages that have

Re: [PHP] MySQL DB Schema

2003-02-18 Thread David Otton
On Tue, 18 Feb 2003 09:23:52 -0800, you wrote: >Greetings all, > >Is there an easy way to pull out the schema of a MySQL for viewing?? You want the tables and the relationships between them? Not easy to get the links because of the lack of foreign keys in MySQL. If you want a table, "DESC tablen

Re: [PHP] php.ini for UNIX sendmail????

2003-02-18 Thread Scott Fletcher
Found the solution to the problem, Take a look at this at http://forums.devshed.com/archive/5/2002/09/4/43013 .. Very useful. "Adam Voigt" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Well your missing your \r\n at the end of your return path. On

Re: [PHP] Re: recursion?????

2003-02-18 Thread David T-G
Kirk -- ...and then Johnson, Kirk said... % [quoting me] % % > Not me! Not me! Not me! % > % > It is by no means ubiquitous. Anyone who even moderately considers % > security will have it turned off. % % The latest survey I've seen indicates that about 11% of browsers have JS % disabled. H

Re: [PHP] php.ini question.....

2003-02-18 Thread David Otton
On Tue, 18 Feb 2003 17:38:28 +0100, you wrote: >At last I got safe-mode turned off (Gott sei dank!). But I'm still having a >problem. I can only read Mysql DBs. I can not open a DB to update. You have to connect to MySQL with a username and password. First check that the user you're connectin

[PHP] MySQL DB Schema

2003-02-18 Thread Phillip S. Baker
Greetings all, Is there an easy way to pull out the schema of a MySQL for viewing?? Thanks Phillip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php.ini question.....

2003-02-18 Thread James Hatridge
HI all... At last I got safe-mode turned off (Gott sei dank!). But I'm still having a problem. I can only read Mysql DBs. I can not open a DB to update. All I can see is that there must be something wrong with either the way I complied PHP or the php.ini file. When I complied PHP I used "--wi

Re: [PHP] Re: recursion?????

2003-02-18 Thread Erik Price
On Tuesday, February 18, 2003, at 10:58 AM, Johnson, Kirk wrote: The latest survey I've seen indicates that about 11% of browsers have JS disabled. About the same percent have cookies disabled. Too many for my tastes. Probably 8% of browsers have JS and cookies disabled for a reason (knowi

Re: [PHP] ankord php text editor

2003-02-18 Thread Awlad Hussain
Tell us what the url of Ankord is. I use HtmlKit (http://www.htmlkit.com) its the best FREE editor available out there. :) -awlad - Original Message - From: "Edward Peloke" <[EMAIL PROTECTED]> To: "Php-General@Lists. Php. Net" <[EMAIL PROTECTED]> Sent: Tuesday, February 18, 2003 3:46 P

Re: [PHP] function getting redeclared

2003-02-18 Thread Erik Price
On Tuesday, February 18, 2003, at 10:27 AM, Ford, Mike [LSS] wrote: I have a script, "registration.php", which calls require_once on the Registrant.class file mentioned in the above error message. The Registrant::setPhone() method is called more than once. Since it is called more than once, t

Re: [PHP] Set Current Array Pointer

2003-02-18 Thread Chris Boget
> is it possible to set the pointer of an array to a specific > key or value of the array, so i can write an array navi- > gation script? > Maybe there is a way to use pos() to set it to a specific > place in the array, but i dont know how. Well, you can always access the array elements using a nu

RE: [PHP] register_globals On

2003-02-18 Thread Johnson, Kirk
> I'm thinking of running a shopping cart package (osCommerce) > that requires > register_globals to be enabled. With all the warnings about > security with > register_globals enabled I'm worried. > > How dangerous is it? The key defensive step is to initialize all of your session variables at

[PHP] Set Current Array Pointer

2003-02-18 Thread Sascha Braun
Hi Folks, is it possible to set the pointer of an array to a specific key or value of the array, so i can write an array navi- gation script? Maybe there is a way to use pos() to set it to a specific place in the array, but i dont know how. Please help me. Sascha -- PHP General Mailing List (

Re: [PHP] php.ini for UNIX sendmail????

2003-02-18 Thread Scott Fletcher
Well, okay, even with the '\r\n' path, I still have problem. Here's the new script and I retested it. --clip-- $message = "This is a test"; mail("[EMAIL PROTECTED]", "the subject", $message, "From: webmaster@$SERVER_NAME\r\n" ."Return-Path: [EMAIL PROTECTED]\r\n" ."Reply-To: webmaster@$SER

RE: [PHP] Re: recursion?????

2003-02-18 Thread Johnson, Kirk
> % The benefit of checking in javascript(which I suspect is > enabled in most > > Not me! Not me! Not me! > > It is by no means ubiquitous. Anyone who even moderately considers > security will have it turned off. The latest survey I've seen indicates that about 11% of browsers have JS d

Re: [PHP] php.ini for UNIX sendmail????

2003-02-18 Thread Adam Voigt
Well your missing your \r\n at the end of your return path. On Tue, 2003-02-18 at 10:57, Scott Fletcher wrote: Here's the command... --clip-- mail("[EMAIL PROTECTED]", "the subject", $message, "From: webmaster@$SERVER_NAME\r\n" ."Return-

Re: [PHP] php.ini for UNIX sendmail????

2003-02-18 Thread Scott Fletcher
Here's the command... --clip-- mail("[EMAIL PROTECTED]", "the subject", $message, "From: webmaster@$SERVER_NAME\r\n" ."Return-Path: [EMAIL PROTECTED]" ."Reply-To: webmaster@$SERVER_NAME\r\n" ."X-Mailer: PHP/" . phpversion()); --clip-- The bad thing is that when I send the mail. I never get an em

[PHP] ankord php text editor

2003-02-18 Thread Edward Peloke
anyone use the php expert editor from Ankord? If so, what do you think? Thanks, Eddie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php.ini for UNIX sendmail????

2003-02-18 Thread Adam Voigt
Oh, ok, well how about your PHP code then (the actual mail() line)? On Tue, 2003-02-18 at 10:34, Scott Fletcher wrote: Here's is the response to the command, 'where sendmail'. >>bash: where: command not found So, I don't have a where command but I did the

Re: [PHP] php.ini for UNIX sendmail????

2003-02-18 Thread Scott Fletcher
Here's is the response to the command, 'where sendmail'. >>bash: where: command not found So, I don't have a where command but I did the phpinfo() and it showed . --clip-- Directive || Local Value || master value -

RE: [PHP] function getting redeclared

2003-02-18 Thread Ford, Mike [LSS]
> -Original Message- > From: Erik Price [mailto:[EMAIL PROTECTED]] > Sent: 18 February 2003 15:14 > > I have a script, "registration.php", which calls require_once on the > Registrant.class file mentioned in the above error message. The > Registrant::setPhone() method is called more tha

Re: [PHP] php.ini for UNIX sendmail????

2003-02-18 Thread Adam Voigt
Umm, are you asking for Sendmail's path? It's usually /usr/bin/sendmail -t -i but you can verify where it is on your system by typing "where sendmail". On Tue, 2003-02-18 at 10:25, Scott Fletcher wrote: Hi! What is the appropriate filepath with the flag comman

[PHP] php.ini for UNIX sendmail????

2003-02-18 Thread Scott Fletcher
Hi! What is the appropriate filepath with the flag command for the sendmail on the UNIX machine?? I send an email to yahoo and got the error message which I'm going to paste it here... --clip-- - The following addresses had permanent fatal errors - [EMAIL PROTECTED] --- The transcri

  1   2   >