Re: [PHP] Check for text

2002-03-29 Thread Jason Wong
On Friday 29 March 2002 14:40, Martin Kampherbeek wrote: Someone submits an url through a form. Now I want to check in a script to see if there is some tekst in it. For Example: Someone submits http://www.mydomain.com/test.htm In this htm file I want to check the text hello. fopen(),

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

2002-03-29 Thread andy
Hi there, 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 this: HEADER(Location:/profiles/6.$recipient_id.2.html?subject=.rawurlencode($ subject).message=.rawurlencode($message).); then I put it in again like this

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

2002-03-29 Thread Prachait Saxena
Hello But i would like to ues that modules that are not complied wit PHP i mean dynamic inclusion of modules... Is that possible ? Prachait - Original Message - From: Rouvas Stathis [EMAIL PROTECTED] Newsgroups: php.general To: Prachait Saxena [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]

[PHP] PDF Load Problem

2002-03-29 Thread Alexis Antonakis
Hi, One user to a site I have developed has complained that when they are trying to view a PDF file on the site, that the server is closing the connection with the browser window before the page has loaded. The file is only 13 pages long and has a few very small images in it. What I was

[PHP] uploading files problem

2002-03-29 Thread Claudio Fedel
hi there, I'm trying to upload a file using php on an apache server running on linux. The code of the form I'm using is as follow: form enctype=\multipart/form-data\ method=POST action=$PHP_SELF?action=doupload pFile to upload:br input type=file name=file size=30 input type=text name=zio

Re: [PHP] uploading files problem

2002-03-29 Thread Balaji Ankem
hi friend, do we have static variables in php? If we have can u give the syntax!!1 Thanks in advance Balaji Content-Type: multipart/alternative; boundary=_=_NextPart_001_01C1D70D.F3519000 --_=_NextPart_001_01C1D70D.F3519000 Content-Type: text/plain hi there, I'm trying to

Re: [PHP] uploading files problem

2002-03-29 Thread Balaji Ankem
specify the value attribute in input elements!!! - Original Message - From: Balaji Ankem [EMAIL PROTECTED] Date: Friday, March 29, 2002 4:27 pm Subject: Re: [PHP] uploading files problem hi friend, do we have static variables in php? If we have can u give the syntax!!1 Thanks

[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: input type=file name=file size=30 Cheers, Andy Claudio Fedel [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hi there, I'm trying to upload a file

[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( script language=javascript parent.location.href=http://.$SERVER_NAME./closed.php;; /script ); exit; // Halt the rest of the page from loading }; Dan Tappin [EMAIL PROTECTED] a écrit dans le message de news:

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

[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(, lt;, $text); $text = str_replace(, gt;, $text); $text

[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. FORM METHOD=POST ACTION=?echo $PHP_SELF;? INPUT TYPE=text

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

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 Stancescu [EMAIL

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 - Original

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

[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 been

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:-) old_post Subject: Re: [PHP] Re: The future of PHP - accessory libraries

[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] 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 this:

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), $message. If

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 function

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

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]

[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

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 Perazzo

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 and

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

[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

[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);

[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 make another

[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

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 this

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

[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:

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

2002-03-29 Thread Eric Starr

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

[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: ?php

[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

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

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. I

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 change

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

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

[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: html headtitleLOGIN IN PROGRESS/title/head ?php mysql_connect(HOST, USER, PASS); mysql_select_db(DB); body bgcolor = white h2PLEASE LOG IN/h2 form

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

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 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

[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

[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 . BR);

[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

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

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

[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

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

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 your

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.. Feeling incompetent now - Joel -Original Message- From: Liam [mailto:[EMAIL PROTECTED]] Sent: Friday, March 29, 2002 2:27 PM

[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] 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 of

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 AM

[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 LanApps/Web

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)) { echo not valid; }

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: I am using the

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 and let

[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] 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( Unable

[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

[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,

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

[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

[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.', '.$Address.',

[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:

[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

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?

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 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] 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

[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

[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

[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 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

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 should

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.

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) == included

[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 tdweek[$i][$j]: $week[$i][$k][0]/td; 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

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 tdweek[$i][$j]: $week[$i][$k][0]/td; If you're array subscripts inside double quotes, then use {braces} around the entire variable: echo

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 td.$week[$i][$j].: .$week[$i][$k][0]./td; or echo td${week[$i][$j]}: ${week[$i][$k][0]}/td; -Rasmus On Fri, 29 Mar 2002, David Johansen wrote: Ok, I have a

[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

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

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 way

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] 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 depending

[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

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 *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* ? These variables are populated and assigned in a function: (This is just an example. In actuality these variables are populated using other means.)

[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 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 =

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

[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 add

[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: 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] snip Is there a way to make global vars available in each function, or is

  1   2   >