Re: [PHP] MySQL ID

2002-03-29 Thread Miguel Cruz
On Sat, 30 Mar 2002, Mantas Kriauciunas wrote: > I have few users in my small page. And it goes with ID numbers. I > did auto increasement. And i think all the settings are ok. but in > phpMyAdmin it shows ID numbers starting from 5 and i have 10 users > so when i deleted row(user) with ID

[PHP] problems trying to use PHP to choose CSS

2002-03-29 Thread Timothy J. Luoma
Hello PHP friends I went searching (Core PHP Programm, php.net and google) for an answer, but didn't find anything that did what I want, namely: Use PHP to set the style sheet for a site. I am trying this method: Register a global variable ($CSS) using a FORM. Currently this does not w

[PHP] Some Problems that Newman has with PHP since reinstall.

2002-03-29 Thread Philip J. Newman
Hi People, I just installed PHP again, and am having some problems with a few things. When Posting to a form, veriables do not travel across the pages. I have checked the PHP.INI for something but nothing seems to change this. ... ALSO ... My redirect scripts have stoped responding. Any Ideas??

[PHP] MySQL ID

2002-03-29 Thread Mantas Kriauciunas
Hey [EMAIL PROTECTED], I have few users in my small page. And it goes with ID numbers. I did auto increasement. And i think all the settings are ok. but in phpMyAdmin it shows ID numbers starting from 5 and i have 10 users so when i deleted row(user) with ID number 9 i have id number goin

Re: [PHP] Processing Code created on the fly

2002-03-29 Thread Jason Wong
On Saturday 30 March 2002 12:39, Jonathan Duncan wrote: > Yeah, I have played with the eval function a bit, but it didn't seem to > help much. Then again, I haven't ever used the eval function before so I > may not know how to properly implement it. I have read the page for eval > on php.net sev

Re: [PHP] Processing Code created on the fly

2002-03-29 Thread Miguel Cruz
On Fri, 29 Mar 2002, Jonathan Duncan wrote: > Yeah, I have played with the eval function a bit, but it didn't seem to > help much. Then again, I haven't ever used the eval function before so > I may not know how to properly implement it. I have read the page for > eval on php.net several times a

[PHP] Re: global vars in a function

2002-03-29 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Justin French) wrote: > Am I missing something? I'm trying to use vars set in my config.php file in > a function, and can't seem to do it without using $GLOBALS["varname"] > Is there a way to make global vars available in each function, or is

[PHP] global vars in a function

2002-03-29 Thread Justin French
Hi, Am I missing something? I'm trying to use vars set in my config.php file in a function, and can't seem to do it without using $GLOBALS["varname"], which is a bit of a pain in the ---config.php--- $var1 = 1; --- ---something.php--- function foo { if($var1) { echo

[PHP] Re: gettext functionality needs configuration flag

2002-03-29 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Thalis A. Kalfigopoulos) wrote: > Someone with the proper authority should probably put on the manual pages > that to get the gettext functionality you have to configure with the > --with-gettext flag. Did you know that anyone is allowed to a

Re: [PHP] Processing Code created on the fly

2002-03-29 Thread Jonathan Duncan
Yeah, I have played with the eval function a bit, but it didn't seem to help much. Then again, I haven't ever used the eval function before so I may not know how to properly implement it. I have read the page for eval on php.net several times as well as the very helpful examples, but whenever I

Re: [PHP] Processing Code created on the fly

2002-03-29 Thread Jason Wong
On Saturday 30 March 2002 11:16, Jonathan Duncan wrote: > These variables are populated and assigned in a function: > (This is just an example. In actuality these variables > are populated using other means.) > - > $othervars = " $service

[PHP] From Newman: Redirect function not working.

2002-03-29 Thread Philip J. Newman
I have just updated my copy of PHP and changed the INI file. Some of my redirect commands no longer work. Any Suggestions. Philip J. Newman PhilipNZ :: Design Solutions http://www.philipnz.com/ [EMAIL PROTECTED] ICQ# 20482482 +64 25 6144012

Re: [PHP] Processing Code created on the fly

2002-03-29 Thread Jonathan Duncan
Jason, That is a good point and that being the case, following is my code. Thanks, Jonathan Duncan *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* $account $service"; This is file that calls the above function: (The lines with the *s are supposed to take the data from the variables and then proc

[PHP] gettext functionality needs configuration flag

2002-03-29 Thread Thalis A. Kalfigopoulos
Someone with the proper authority should probably put on the manual pages that to get the gettext functionality you have to configure with the --with-gettext flag. The --with-XYZ comes in almost all pages that require an additional flag, so at first I was mislead into believing it is compiled i

Re: [PHP] Processing Code created on the fly

2002-03-29 Thread Jason Wong
On Saturday 30 March 2002 05:32, Jonathan Duncan wrote: > I am trying to create an HTML Table which has TH headers which are > different depending upon the link clicked to access the page. Also, the > content of the TD's below the headers would be different depending on the > headers and dependin

Re: [PHP] [PHP-DB] Displaying Floats

2002-03-29 Thread Bogdan Stancescu
As replied above, or echo(round($money*100)/100); Just to point out another way - the previous suggestions are better because they most probably involve way less math on the server. Bogdan Ian Wayne wrote: >Hi all. > >I can't believe I'm stuck on this - seems to me there ought to be an easy

Re: [PHP] [PHP-DB] Displaying Floats

2002-03-29 Thread Rasmus Lerdorf
A couple of ways. The most flexible is probably to use number_format() since that lets you set the separators as well. printf("%.2f",$value) would also do it. -Rasmus On Fri, 29 Mar 2002, Ian Wayne wrote: > Hi all. > > I can't believe I'm stuck on this - seems to me there ought to be an easy

Re: [PHP] [PHP-DB] Displaying Floats

2002-03-29 Thread Miguel Cruz
On Fri, 29 Mar 2002, Ian Wayne wrote: > I have a table of accounts and I want to display all the money amounts > to 2 decimal places. How do I do this? Should I use floatval (which I > can't use because it's CVS only)? Or is there some other way? http://php.net/printf miguel -- PHP General

[PHP] [PHP-DB] Displaying Floats

2002-03-29 Thread Ian Wayne
Hi all. I can't believe I'm stuck on this - seems to me there ought to be an easy way to do this, but I've been hunting through the literature and I just can't find it. If anyone can point me in the right direction it'd be much appreciated... I have a table of accounts and I want to display all

Re: [PHP] A quesiton about arrays and indexes

2002-03-29 Thread Rasmus Lerdorf
Complex arrays inside quoted strings either need to be escaped with {}'s or drop out of the quoted string to display them. ie. echo "".$week[$i][$j].": ".$week[$i][$k][0].""; or echo "${week[$i][$j]}: ${week[$i][$k][0]}"; -Rasmus On Fri, 29 Mar 2002, David Johansen wrote: > Ok, I have a que

Re: [PHP] A quesiton about arrays and indexes

2002-03-29 Thread Miguel Cruz
On Fri, 29 Mar 2002, David Johansen wrote: > Ok, I have a question about arrays and indexes. Something weird happens when > I try this: > > echo "week[$i][$j]: $week[$i][$k][0]"; If you're array subscripts inside "double quotes", then use {braces} around the entire variable: echo "week[$i][$

[PHP] A quesiton about arrays and indexes

2002-03-29 Thread David Johansen
Ok, I have a question about arrays and indexes. Something weird happens when I try this: echo "week[$i][$j]: $week[$i][$k][0]"; Of course $i and $j have their appropriate values. It just prints out Array[0][4] (0 and 4 being the values of $i and $k, but if I do the code below it works just fine.

Re: [PHP] PHP and XML/XLST/WDDX etc

2002-03-29 Thread Rich Buggy
> I am in a dilemma right now between "If it ain't broke, don't fix it" and "Looking > over my shoulder". I am trying to determine whether it makes more sense to use > ML for maintaining configuration files. Compiled program ==> ML configuration file Interpreted program (i.e PHP) ==> include

Re: [PHP] creating files with same user id than the script?

2002-03-29 Thread Rasmus Lerdorf
That's the way it works since Apache runs as a single user id. There is no way PHP can escape this. You might look into setting this user up with the open_basedir restriction instead of safe_mode. Under open_basedir the user's scripts can only manipulate files under the directory you specify. You

RE: [PHP] Can you find the parse error?

2002-03-29 Thread Kevin Stone
I have found it safer to use backticks on all of my table and field names. I doubt that's the problem but it's a good practice and something to try anyway. INSERT INTO `tblUserInfo` (`UserID`, `Complex`, `Contact`,.. etc.. By the way what are those complicated looking '".$var."' for? You shoul

RE: [PHP] Can you find the parse error?

2002-03-29 Thread Eric Kilgore
Good to know I'm not going crazy. I found the error in the previous function. I failed to end an echo statement and the next quote on that page was this statement. Doh. -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 2:08 PM To: Eric Kilgore Cc

[PHP] [PHP-APACHE-WIN]: using $_SESSION instead of register().......

2002-03-29 Thread John Mpaliza
  I'm using Apache-win-php4.1.3 and can't create session variables by using session_start() and $_SESSION['...']. I'm new to php, please help. Next week I tried php4.1.1 and all was

Re: [PHP] Can you find the parse error?

2002-03-29 Thread Miguel Cruz
On Fri, 29 Mar 2002, Eric Kilgore wrote: > What's wrong with this code that it would give this error? > > Parse error: parse error, expecting `','' or `';'' > > $query = "INSERT INTO tblUserInfo (UserID, Complex, Contact, Address, State, > City, Zip, Phone, >Fax, email, fee) VALUES ('".$

RE: [PHP] Can you find the parse error?

2002-03-29 Thread Rick Emery
I ran it through my PHP. Worked fine. You may wish to close each line with a ". -Original Message- From: Eric Kilgore [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 3:46 PM To: php-general (E-mail) Subject: [PHP] Can you find the parse error? What's wrong with this code that

Re: [PHP] Is it possible to pass javascript variables to PHP withoutuser's activity?

2002-03-29 Thread Miguel Cruz
On Fri, 29 Mar 2002, Andrew Korsak wrote: > I want to read user cookie with javascript and pass it to PHP. PHP already gets the cookie information. What do you need JavaScript for? miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Can you find the parse error?

2002-03-29 Thread Eric Kilgore
There are a couple of carriage returns, but this has never affected any of my other code. I'm using dreamweaver. -Original Message- From: Henning, Brian [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 1:55 PM To: 'Eric Kilgore' Subject: RE: [PHP] Can you find the parse error? is

[PHP] From Newman: Just installed, get this error message.

2002-03-29 Thread Philip J. Newman
Security Alert! PHP CGI cannot be accessed directly. This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a page will only be served up if the REDIRECT_STATUS CGI variable is set. This variable is set, for example, by Apache's Action directive redirect. You may di

[PHP] Is it possible to pass javascript variables to PHP without user's activity?

2002-03-29 Thread Andrew Korsak
Hello. I got a question. Is it possible to pass javascript variables to PHP without user's activity, using post method? I want to read user cookie with javascript and pass it to PHP. I guess I will need to use meta tag to do this? -- Message Info. Date: Friday, March 29, 2002 Time: 4:

[PHP] Can you find the parse error?

2002-03-29 Thread Eric Kilgore
What's wrong with this code that it would give this error? Parse error: parse error, expecting `','' or `';'' $query = "INSERT INTO tblUserInfo (UserID, Complex, Contact, Address, State, City, Zip, Phone, Fax, email, fee) VALUES ('".$UserID."', '".$Complex."', '".$Contact."', '".$Addres

[PHP] [PHP4.1.2-APACHE1.3.24-WIN32]: using $_SESSION

2002-03-29 Thread John Mpaliza
I'm using Apache-win-php4.1.3 and can't create session variables by using session_start() and $_SESSION['...']. I'm new to php, please help. Next week I tried php4.1.1 and all was working well. Now, I'm using php4.1.2,  as an Apache module and wit

RE: [PHP] A Calendar type thingy

2002-03-29 Thread Kevin Stone
Perhaps simply store a standard English date as the index for a single table (ie. 032902 or 03/29/02) along with a `time` and `comments` field. Use PHP's extensive library of built-in date/time functions to translate the date to timestamp and vice versa. --- CREATE TABLE `test_calenda

[PHP] Processing Code created on the fly

2002-03-29 Thread Jonathan Duncan
I am trying to create an HTML Table which has TH headers which are different depending upon the link clicked to access the page. Also, the content of the TD's below the headers would be different depending on the headers and depending on the link clicked. I have sorted out many of the details, b

[PHP] creating files with same user id than the script?

2002-03-29 Thread Kai Schaetzl
One of our customers installed a CMS application scripted in PHP and it creates a lot of new files. These are all getting created under the userid of nobody (the webserver's id) instead of the user's id (the scrip's id) which makes it somewhat difficult to run the application in safemode becau

RE: [PHP] Displaying Image with PHP

2002-03-29 Thread James E. Hicks III
## Heres where I add images to DB with field type of BLOB for image if ( ($submit == 'Add Image') && ($userid != 'demo') ){ if ($image != 'none'){ $name = strtr($name, "'", " "); $image = addslashes(fread(fopen($image, "r"), filesize($image))); mysql_select_db($dbase) or die(

[PHP] A Calendar type thingy

2002-03-29 Thread David Johansen
Ok, I'm still kind of new to this and I just have a question on how I should go about implementing something. I need to make a calendar type thing with different times in each day and store some values for each time in a database. I was just wondering what would be the best way to do this. Here's

Re: [PHP] Security hole using cookies for sessions. Workaround?

2002-03-29 Thread Andy
hmm.. but there must be some other way to do this. I know one site which is handling this problem. check out http://www.web.de Andy "Rasmus Lerdorf" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > My question is: > > Is there a way to close this hole

Re: [PHP] Checking url validation

2002-03-29 Thread Billy S Halsey
Oops ... That's not balanced. Add another ) at the end of the if. /bsh/ Billy S Halsey wrote: > Try an extra layer of parens: > > if (($fp = fopen("http://www.anyurl.com";, "r") == NULL) > { > echo "not valid"; > } > else > { > echo "this is a valid url"; > } > > > Roberts, Mark wrote

[PHP] Nead Help With A Php Script

2002-03-29 Thread Alain Kumschick François Robert
Hello, I need a php script that checks if the there is a cookie set with the users username and if not it brings you to an other page and telling you that you are not loged in! thanks for any help alain kumschick [EMAIL PROTECTED] http://www.kumschicknw.com -- PHP General Mailing Li

Re: [PHP] Checking url validation

2002-03-29 Thread Billy S Halsey
Try an extra layer of parens: if (($fp = fopen("http://www.anyurl.com";, "r") == NULL) { echo "not valid"; } else { echo "this is a valid url"; } Roberts, Mark wrote: > I am using the following to verify a url: > > if (!$fp = fopen("http://www.anyurl.com";, "r")) > { > ec

[PHP] Checking url validation

2002-03-29 Thread Roberts, Mark
I am using the following to verify a url: if (!$fp = fopen("http://www.anyurl.com";, "r")) { echo "not valid"; } else { echo "this is a valid url"; } I always get a not valid message. What am I doing wrong? Is there a better way to do this? Mark Roberts Sr. Systems Analyst LanAp

Re: [PHP] Question about database-driven web sites.

2002-03-29 Thread hugh danaher
Though I just made a flat database (one table only) the attached article was useful in learning how to put together a mysql database using php. Hope this helps, Hugh - Original Message - From: "GENESiS DESiGNS" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 29, 2002 2:22

Re: [PHP] Displaying Image with PHP

2002-03-29 Thread Rasmus Lerdorf
mediumtext is long enough, but you are putting binary data into it, not text. You should be using mediumblob. The limit is 16M for that column type. -Rasmus On Fri, 29 Mar 2002, Jay Paulson wrote: > Hello-- > > I can't quite seem to get this to work. What I'm trying to do is pull data > out

[PHP] Displaying Image with PHP

2002-03-29 Thread Jay Paulson
Hello-- I can't quite seem to get this to work. What I'm trying to do is pull data out of a MySQL db of an image that I had put into the db. When I originally put the image into the db I had to use the "addslashes" function so that it would be inserted into the db correctly. Now when I select

RE: [PHP] creating MySQL Users

2002-03-29 Thread Joel Caturia
DAMMIT.. It's too early, I knew I was gonna make that mistake.. GET/PUT/POST, what's the difference right? Sorry, post would be the right method to use.. agh.. - Joel -Original Message- From: Liam [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 2:27 PM To: [EMAIL PROTECTED] Su

RE: [PHP] creating MySQL Users

2002-03-29 Thread Joel Caturia
I think you'll find this works better if you use "PUT" as your method, as opposed to POST, which is for File Uploads. (http://www.php.net/manual/en/features.file-upload.php#features.file-upl oad.post-method) Is your code ever actually getting into the 'if' construct, if not, that's probably you

RE: [PHP] Re: function calls...Incorrect output...What am I doing wrong?

2002-03-29 Thread Rick Emery
I mean: $this->mFileArray: -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 1:13 PM To: 'Eric Starr'; [EMAIL PROTECTED] Subject: RE: [PHP] Re: function calls...Incorrect output...What am I doing wrong? Your problem is that you reference $mFileA

[PHP] PDF bug question?

2002-03-29 Thread Ethan Nelson
Hello, I checked the developer database, and I'm not saying it isn't in there... but I couldn't find it, so here it goes: Here is the problem... given the code below, I would expect a fill color of 73% cyan, 26% magenta, 5% yellow and 0 black. However, the 73% cyan will default to zero unless y

Re: [PHP] Security hole using cookies for sessions. Workaround?

2002-03-29 Thread Rasmus Lerdorf
> My question is: > Is there a way to close this hole and let the session expire as soon as only > the active window > is closed? Nope, that's how browsers work. Your only real way to fix it would be to expire a session after a certain amount of inactivity. That's what the PHP sessions do by de

RE: [PHP] Re: function calls...Incorrect output...What am I doing wrong?

2002-03-29 Thread Rick Emery
Your problem is that you reference $mFileArray. You should reference $this_.mFileArray: for ($i=0; $i < count( $mFileArray ); $i++) // iterates through the array Therefore, count($mFileArray) is 0, so the loop ends without an explicit exit -Original Message- From: Eric Starr [mailto

[PHP] Security hole using cookies for sessions. Workaround?

2002-03-29 Thread Andy
Hi there, I recently discovered a hole in my and a lot other apps on the net. There must be a workaround, becaus I also found apps which work fine. The sittuation is as follows: After signing in, I am setting a cookie with a unique session id. Cookie parameter is set to 0. The session expires as

[PHP] Re: function calls...Incorrect output...What am I doing wrong?

2002-03-29 Thread Eric Starr
Please notice that I am attepting to call a function "hitCounterPosition()" in the constructor "Counter" with this line of code: $this->mCountPosition = $this->hitCounterPosition(); The very next line in the code prints out the value of mCountPosition printf(">>>" . $this->mCountPosition

[PHP] IMPORTANT question for anyone using XSLT

2002-03-29 Thread Erik Price
My, there have been a lot of questions about XSLT in the past 24 hrs... admittedly most of them coming from me. In addition to my first question (repeated below for clarity), I have a second one -- how do I perform an XSLT transformation on multiple XML documents? Do I need to perform a sepa

[PHP] Re: function calls...Incorrect output...What am I doing wrong?

2002-03-29 Thread Eric Starr
Testing reply... ** "Eric Starr" <[EMAIL PROTECTED]> wrote in message 003f01c1d748$8785e200$[EMAIL PROTECTED]">news:003f01c1d748$8785e200$[EMAIL PROTECTED]... I am learning PHP and I am having some trouble. I am working on a hit counter application. I am using PHP 4 even though the

RE: [PHP] User Authentication

2002-03-29 Thread Vail, Warren
To solve this problem, I store some variables in a session, and at the beginning of each page that needs to be secure in my site, I check to see if the session variable is set (usually $userid), if not I redirect the user back to the logon page. At least two things will cause the variable to be m

RE: [PHP] PHP and XML/XLST/WDDX etc

2002-03-29 Thread J. Scott Johnson
Just to follow up on some of these thoughts. XML is definitely complicated to move into. Its unclear if you aren't involved in data interchange, if the benefits are really there. If you are just developing in your own way, you may not need it. OTOH, its new, sexy and may "sell better" to your

Re: [PHP] User Authentication

2002-03-29 Thread Jason Wong
On Saturday 30 March 2002 02:24, Omland Christopher m wrote: > So this will work it regonizes a real user vs. a fake on I do. But I don't > understand whats to stop someone from directly linking to a protected > page? For example why couldn't someone just go directly to > ./about.php. You're

[PHP] User Authentication

2002-03-29 Thread Omland Christopher m
Hi, I had a question on user authentication/member accounts. I have built a MySQL database with users and passwords, and I wrote this code: LOGIN IN PROGRESS PLEASE LOG IN Username: Password:   Click Here"); } So this will work it regonizes a real user vs. a fake on I do. But I don't under

Re: [PHP] Question about database-driven web sites.

2002-03-29 Thread heinisch
At 29.03.2002 10:22, you wrote: >Hello, > >What will a database-driven web site do for? How does it releive stress on >me? >What is it good for? Why should I learn it? Thanks, Think of a template, You set up a design , and put database data in it. If you have any changes on your website, you´ll

RE: [PHP] FTP RAW

2002-03-29 Thread Andrew Chase
FTP with raw sockets is a little bit tricky because it actually requires a second 'data' socket to be opened for each upload/download command. Check out this excellent FTP class, which *doesn't* require PHP to be compiled --with-ftp: http://www.spencernetwork.org/ftp/ftp-class.txt And of course

Re: [PHP] PHP and XML/XLST/WDDX etc

2002-03-29 Thread Erik Price
On Friday, March 29, 2002, at 12:52 PM, Dennis Moore wrote: > I am in the process of updating many of my applications to include > XML/XLST/ and/or WDDX technologies. Many of my applications read a > static configuration file which assigns values to variables and arrays. > If we need to chang

Re: [PHP] OT - representing data

2002-03-29 Thread Miguel Cruz
On Fri, 29 Mar 2002, Alastair Battrick wrote: > I have over 26000 urls in a table. They are all urls and query strings of > hits to the same 10 - 20 sites. > > I need to have a way to allow the user to select one of these, and then do > some processing on it, and I'm struggling to find a way. >

Re: [PHP] Question about database-driven web sites.

2002-03-29 Thread Dennis Moore
It all depends on what the needs for your site(s) are. Typically, you use database driven web sites as a means of storing data separate from the layout and style of your web site. The advantage of this is that you can just update your data in the database without affecting the layout and style

[PHP] RE: [PHP-WIN] Re: How to Pass the Username which from Windows Login

2002-03-29 Thread Vail, Warren
Does this retrieve the userid of the machine where the web server is running, or does it retrieve the userid of the machine where the browser is running? Warren Vail Tools, Metrics & Quality Processes (415) 667-7814 Pager (877) 774-9891 215 Fremont 02-658 -Original Message- From: J Wyn

[PHP] PHP and XML/XLST/WDDX etc

2002-03-29 Thread Dennis Moore
I am looking for opinions and other philosophy on a couple of XML issues. I have my own opinion, but I am curious what others think and what they are doing... I am in the process of updating many of my applications to include XML/XLST/ and/or WDDX technologies. Many of my applications read a

[PHP] function calls...Incorrect output...What am I doing wrong?

2002-03-29 Thread Eric Starr
I am learning PHP and I am having some trouble. I am working on a hit counter application. I am using PHP 4 even though the file extension might lead you to believe I am using PHP 3. This code is on a page called "homePage.php3". Here is the instantiation of my Counter: All Done!" ?> Here is

RE: [PHP] Question about database-driven web sites.

2002-03-29 Thread Rick Emery
> What will a database-driven web site do for? If you have to ask, you have no need > How does it relieve stress on me? It doesn't. Quite the opposite > What is it good for? If you have to ask, you have no need > Why should I learn it? If you have to ask, you have no need -Original Messa

[PHP] Test - Sorry, but it's necessary

2002-03-29 Thread Eric Starr

[PHP] Question about database-driven web sites.

2002-03-29 Thread GENESiS DESiGNS
Hello, What will a database-driven web site do for? How does it releive stress on me? What is it good for? Why should I learn it? Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

RE: [PHP] Database-Driven Web Site.

2002-03-29 Thread SHEETS,JASON (Non-HP-Boise,ex1)
Hi Sean, I'd suggest looking at some of the PHP and database tutorials available, for the database you most likely would be interested in learning about MySQL, at least at first. There are a lot of good resources on the PHP website at http://www.php.net and good MySQL documentation available at h

Re: [PHP] Database-Driven Web Site.

2002-03-29 Thread Erik Price
On Friday, March 29, 2002, at 11:50 AM, GENESiS DESiGNS wrote: > Hello, > > Would anyone out there be willing to teach me how to make a > database-driven web > site with PHP and MySQL? My MSN Messenger email is: > [EMAIL PROTECTED] > > THANKS! Well, there are places that teach classes on thi

[PHP] Database-Driven Web Site.

2002-03-29 Thread GENESiS DESiGNS
Hello, Would anyone out there be willing to teach me how to make a database-driven web site with PHP and MySQL? My MSN Messenger email is: [EMAIL PROTECTED] THANKS! -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: How to Pass the Username which from Windows Login

2002-03-29 Thread J Wynia
$network = new COM("WScript.Network"); $computername = $network->ComputerName; $username = $network->UserName; Password can't be grabbed for fairly obvious reasons. "Jack" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Dear all > I want to prevent user to mak

[PHP] XSLT and DOM

2002-03-29 Thread Sean P . Scanlon
Can anyone tell me why this is not working? -- snip of xslt_processor.php $doc = new_xmldoc("1.0"); $root = $doc->add_root("debug"); $head = $root->new_child("broswer", "1"); $head->set_attribute("key", "UserAgent"); $head->s

[PHP] Re: OT - representing data

2002-03-29 Thread Hugh Bothwell
How about a hierarchical tree? Strip the common precursor stuff ([http[s]://][www.]) and proceed from there, splitting on '.', '/', '?' and '&'. I would also put a Yahoo-style split-level back-out link on the page, ie [nandotimes].[com]/[news]/[current]/ article2001.html(1 re

php-general Digest 29 Mar 2002 15:28:22 -0000 Issue 1255

2002-03-29 Thread php-general-digest-help
php-general Digest 29 Mar 2002 15:28:22 - Issue 1255 Topics (messages 90641 through 90675): Re: Help with Acrobat FDF support 90641 by: Rasmus Lerdorf Mysql adding extra fields. 90642 by: David Duong 90643 by: Miguel Cruz 90646 by: hugh danaher CyberCash Pl

Re: [PHP] where i get .so [dll] file of linux ?

2002-03-29 Thread Rouvas Stathis
You should ask your administrator to do it for you. BTW, most propably you don't have to recompile Apache. -Stathis. PS: Please, forward only to the list and to individual emails (if it is possible). Prachait Saxena wrote: > > Well i did not have the permission for both > > edting of php.in a

Re: [PHP] creating MySQL Users

2002-03-29 Thread Rafael Perazzo
Try this query : $query = "GRANT SELECT,INSERT,UPDATE,DELETE,ALTER "; $query .= "ON $username "; $query .= "TO $username@localhost "; $query .= "IDENTIFIED BY '$password';"; Make sure that you put a blank space after each string, except the last one. I hope this work! Rafael Peraz

[PHP] get_browser() problem ?

2002-03-29 Thread R'twick Niceorgaw
Hi all, I'm trying to get some info from get_browser() function. But, I'm getting a page can not be displayed error. The script is a simple one as give below. My hosting comapny says, get_browser() works on their system and there must be some error in my script but I couldn't find any error. Can s

Re: [PHP] where i get .so [dll] file of linux ?

2002-03-29 Thread Prachait Saxena
Well i did not have the permission for both edting of php.in and recompling the apache ??? Now what i can do ? Prachait - Original Message - From: Rouvas Stathis <[EMAIL PROTECTED]> Newsgroups: php.general Cc: <[EMAIL PROTECTED]> Sent: Friday, March 29, 2002 6:34 PM Subject: Re: [PHP] w

RE: [PHP] Program Looping ?

2002-03-29 Thread Hunter, Ray
You need to also make sure that you change the script execution time allowed in the php.ini file to 5 minutes or more or else you will get a time out error. Thank you, Ray Hunter Firmware Engineer ENTERASYS NETWORKS > -Original Message- > From: Jason Caldwell [mailto:[EMAIL PROTECTE

Re: [PHP] urlencode and decode are producing \\\' instead of \'

2002-03-29 Thread Anders Henke
Hi! What about using stripslashes: $variable = stripslashes($variable); Also see http://www.php.net/stripslashes /Anders Henke "Jason Wong" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED]... > On Friday 29 March 2002 20:56, andy wrote: > > does not work. Just like the decode fu

Re: [PHP] urlencode and decode are producing \\\' instead of \'

2002-03-29 Thread Bogdan Stancescu
Jason Wong wrote: >Well your problem is not caused by the rawurlencode, rawurldecode. It's >probably because you have magic_quotes_gpc set to on. > >Try this: > >For your URL: rawurlencode(stripslashes($subject)), and same for $message. > >For your textarea: htmlspecialchars($subject), & $messa

Re: [PHP] urlencode and decode are producing \\\' instead of \'

2002-03-29 Thread Jason Wong
On Friday 29 March 2002 20:56, andy wrote: > does not work. Just like the decode function is out of order! > It is not even decoding \' > > > > >I am trying to fill a form again when an error occures, therefore I > > > > > > redirect > > > > > > > >to the form and pass the values via url like thi

[PHP] OT - representing data

2002-03-29 Thread Alastair Battrick
Hi All I have over 26000 urls in a table. They are all urls and query strings of hits to the same 10 - 20 sites. I need to have a way to allow the user to select one of these, and then do some processing on it, and I'm struggling to find a way. I did have a select dropdown with a list of them,

Re: [PHP] where i get .so [dll] file of linux ?

2002-03-29 Thread Rouvas Stathis
I always recompile PHP when I need a new module, but searching the mailling list archives I found the following post by Rasmus that says dl() in *nix is possible. Well, if Rasmus says it can be done, he is propably true:-) Subject: Re: [PHP] Re: The future of PHP - accessory libraries Date:

RE: [PHP] creating MySQL Users

2002-03-29 Thread Rick Emery
> $query .= "ON $username"; The ON clause should identify the database name, not the user. It should appear as "*.*. -Original Message- From: Liam [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 4:27 PM To: [EMAIL PROTECTED] Subject: [PHP] creating MySQL Users 29/03/2002

Re: [PHP] urlencode and decode are producing \\\' instead of \'

2002-03-29 Thread andy
does not work. Just like the decode function is out of order! It is not even decoding \' Andy "Andrey Hristov" <[EMAIL PROTECTED]> schrieb im Newsbeitrag 00e301c1d71e$b00569a0$0b01a8c0@ANDreY">news:00e301c1d71e$b00569a0$0b01a8c0@ANDreY... > try to do double rawurldecode(). > > Andrey > > -

Re: [PHP] urlencode and decode are producing \\\' instead of \'

2002-03-29 Thread Andrey Hristov
try to do double rawurldecode(). Andrey - Original Message - From: "andy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 29, 2002 2:36 PM Subject: Re: [PHP] urlencode and decode are producing \\\' instead of \' > does not help, any other ideas? > > > "Bogdan Stances

Re: [PHP] urlencode and decode are producing \\\' instead of \'

2002-03-29 Thread andy
does not help, any other ideas? "Bogdan Stancescu" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > You don't have to rawurlDEcode again - that's done automatically. You > have to encode so you're HTTP compliant, but the decoding is done by PHP > (or even

[PHP] creating MySQL Users

2002-03-29 Thread Liam
29/03/2002 10:26:41 PM Hi, I've been trying to work this out, but I can't. Myabe I need more sleep, I'm sure it's something really stupid. Could someone have a look over this code for me please? It's meant to add MySQL users. "> User Password Thanks, Liam -- PHP General Mailing List

[PHP] Re: ASP vs PHP

2002-03-29 Thread Evan
Hope this will help you: 1) Macromedia Ultradev + PHAkt extension (www.macromedia.com) $$ 2) www.phpide.de 3) www.phpedit.com 4) http://dd.cron.ru/dbg (debugger) Evan "Ciro Martins" <[EMAIL PROTECTED]> ha scritto nel messaggio [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi! > > > I've be

[PHP] a href problem

2002-03-29 Thread Anders Henke
Hi folks! Im running this forum for Flash users and I have created it in Flash. Now, I've got this little problem... If a users writes a URL like http://www.test.com, the url becomes clickable thanks to the code below. $text = str_replace("<", "<", $text); $text = str_replace(">", ">", $text); $

Re: [PHP] urlencode and decode are producing \\\' instead of \'

2002-03-29 Thread Bogdan Stancescu
You don't have to rawurlDEcode again - that's done automatically. You have to encode so you're HTTP compliant, but the decoding is done by PHP (or even Apache? I'm not sure) when receiving urlencoded strings via URL and form data. Bogdan andy wrote: >Hi there, > >I am trying to fill a form a

[PHP] Re: Sending a header redirect mid-page

2002-03-29 Thread Xavier DELAS
You can do that with a javascript command: if($dbfail) { ob_end_clean(); print(" parent.location.href=http://".$SERVER_NAME."/closed.php";; "); exit; // Halt the rest of the page from loading }; "Dan Tappin" <[EMAIL PROTECTED]> a écrit da

[PHP] Re: uploading files problem

2002-03-29 Thread andy
put dubble quotes inside your html. I think this is in the spec, as soon as it is no numeric format: Cheers, Andy "Claudio Fedel" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hi there, > > I'm trying to upload a file using php on an apache server r

  1   2   >