[PHP] function echo ' '

2002-06-25 Thread Martin Johansson
Is there a way to express php variables inside an echo ' '. I want something like this to work: echo ''; I know I can write it like this: echo ''; But Its to hard to read the code like this. /Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

RE: [PHP] function echo ' '

2002-06-25 Thread Matthew Nock
my understanding is that you could write it like this: -Original Message- From: Martin Johansson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 25 June 2002 5:25 PM To: [EMAIL PROTECTED] Subject: [PHP] function echo ' ' Is there a way to express php variables inside an echo ' '. I want

Re: [PHP] function echo ' '

2002-06-25 Thread René Moonen
Use the escape character to output double quotes echo ''; René Martin Johansson wrote: >Is there a way to express php variables inside an echo ' '. > >I want something like this to work: > >echo ''; > >I know I can write it like this: >echo 'echo '">'; > >But Its to hard to read the code like

Re: [PHP] function echo ' '

2002-06-25 Thread PHPCoder
Yes, just use " instead of '. Using ' causes the contents to be treated as literal strings, and the $ is therefore not treated as a $. Just do: echo ""; Martin Johansson wrote: >Is there a way to express php variables inside an echo ' '. > >I want something like this to work: > >echo ''; > >

Re: [PHP] function echo ' '

2002-06-25 Thread Craig
Can you use or is this bad coding? "René moonen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Use the escape character to output double quotes > > echo ''; > > René > > Martin Johansson wrote: > > >Is there a way to express php variables inside an echo '

RE: [PHP] function echo ' '

2002-06-25 Thread Niklas Lampén
Shorter version would be And this is not bad coding, it is actually faster than echoing everything. We had this conversation maybe a week ago, so let's not start it again. :) Niklas -Original Message- From: Craig [mailto:[EMAIL PROTECTED]] Sent: 25. kesäkuuta 2002 10:43 To: [EMAIL

Re: [PHP] Seperating presentation from logic

2002-06-25 Thread Jean-Christian Imbeault
Thanks for the links. Hard to figure out what those things are just from their web pages. They should work on making it easier to figure what the projects are. I'll have a look but ... Maybe my message was too vague but what I meant is that my designers will come up with the site layout, colo

Re: [PHP] function echo ' '

2002-06-25 Thread Martin Johansson
But the problem is that Im doin it inside a while loop. So I need to echo it. /mj "Niklas lampén" <[EMAIL PROTECTED]> skrev i meddelandet 025801c21c1d$55d16210$ba93c5c3@Niklas">news:025801c21c1d$55d16210$ba93c5c3@Niklas... Shorter version would be And this is not bad coding, it is actually fas

[PHP] Problem with regular expressions

2002-06-25 Thread Drew
When I run the following script it returns String Okay! when it should say Invalid Characters Found. I've tried the script substituting $ for other characters, such as j, and it works just fine. What do I need to do? Thanks, Drew -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] Re: Re: PHP 4.2

2002-06-25 Thread John Lim
I use http://php.net/strnatcasecmp since version_compare is only available since 4.1.0, which is rather self-defeating :-) "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > You mean like php.net/version_compare ? > > On Mon, 24 Jun 2002, Dreamriv

[PHP] Library Function

2002-06-25 Thread Uma Shankari T.
Hello, Is there any built in function in php to read character by character of the value stored in the variable...?? Thanks & Regards, Ums -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Seperating presentation from logic

2002-06-25 Thread René Moonen
Well... I still think that these tools can help. For example PHPWebSite (which I use for our Intranet) has a set of 'themes'. A theme consists of a style sheet (.css), some image files (logo's, backgrounds etc.) and a small set of PHP scripts that define things like standard header, footers.

Re: [PHP] Seperating presentation from logic

2002-06-25 Thread Justin French
I think the issues are VERY project specific. Luckily for me I'm the DESIGNER and PROGRAMMER on many of my projects, but often I'm just one of the two. When I'm just designing, I obviously need to develop page templates, but more and more of my time is spent developing style guides (often also c

Re: [PHP] Seperating presentation from logic

2002-06-25 Thread Jean-Christian Imbeault
Thanks! I'll visit and read all the links you gave. Some of the "issues" are things like how to make it painless for both the designers and me if one day, out of the blue, a designers decides that the background colour should be changed, or the graphics changed. Or even worse the two column la

[PHP] New window, new session

2002-06-25 Thread Riaan Stander
Hi there I know this is not a php specific question, but I don't know where else to ask. I've got the following situation. The website I'm currently working on has got a administration page where the administration user must be able to login as all the users available. It is fine getting all the

Re: [PHP] Seperating presentation from logic

2002-06-25 Thread Justin French
on 25/06/02 5:50 PM, Jean-Christian Imbeault ([EMAIL PROTECTED]) wrote: > Maybe my message was too vague but what I meant is that my designers > will come up with the site layout, colours, graphics etc ... I want them > to be able to do all their work without thinking about any programming. Why

[PHP] odbc

2002-06-25 Thread sonjaya
i just newbie how to use odbc in php i have ready craete odbc in window like this odbc name= data user = tes password= i want read some data in password.db and put ini un the screen strukture database password.db like this password name level allos some exsample to use to get in th

Re: [PHP] Seperating presentation from logic

2002-06-25 Thread Justin French
on 25/06/02 6:40 PM, Jean-Christian Imbeault ([EMAIL PROTECTED]) wrote: > Some of the "issues" are things like how to make it painless for both > the designers and me if one day, out of the blue, a designers decides > that the background colour should be changed, or the graphics changed. > Or eve

[PHP] Re: [PHP-DEV] singleton feature

2002-06-25 Thread BB
I would like to know too, "Purushotham Komaravolu" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Singleton means only one instance.. i.e. instance of a class per > webserver... all application scripts should talk only to that same instance > irrespective of t

Re: [PHP] function echo '

2002-06-25 Thread Pradeep Dsouza
Yes you can "> Link Here Pradeep Can you use or is this bad coding? "René moonen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Use the escape character to output double quotes > > echo ''; > > René

[PHP] New window, new session

2002-06-25 Thread Riaan Stander
Hi there I know this is not a php specific question, but I don't know where else to ask. I've got the following situation. The website I'm currently working on has got a administration page where the administration user must be able to login as all the users available. It is fine getting all the

[PHP] paradox

2002-06-25 Thread sonjaya
error message like this Warning: SQL error: [Microsoft][ODBC Paradox Driver] External table is not in the expected format., SQL state S1000 in SQLExecDirect in c:\apache\htdocs\database\odbc1.php on line 8 Warning: Wrong parameter count for odbc_longreadlen() in c:\apache\htdocs\database\odbc1.

RE: [PHP] function echo ' '

2002-06-25 Thread Niklas Lampén
Not true. :) You can do it like this: (Ok, this is a for loop, but idea is the same) mailto:[EMAIL PROTECTED]] Sent: 25. kesäkuuta 2002 10:56 To: [EMAIL PROTECTED] Subject: Re: [PHP] function echo ' ' But the problem is that Im doin it inside a while loop. So I need to echo it. /mj "Niklas l

Re: [PHP] Library Function

2002-06-25 Thread Jason Wong
On Tuesday 25 June 2002 16:31, Uma Shankari T. wrote: > Hello, > > > Is there any built in function in php to read character by character of > the value stored in the variable...?? Assuming your variable holds a string then you could do: $doo = "dah"; echo $doo{2}; // displays 'h' -- Jason Wo

[PHP] PHP not working on Apache at XP Pro.

2002-06-25 Thread Thomas Edison Jr.
Glory! I've got Windows XP Pro OS. I installed and am running mySQL on that. However, PHP is not getting configured with Apache on it. I got the latest Apache, 1.3.24 or something, not the Version 2. Anyway, Apache runs perfectly on it. However, when i put in the required PHP lines in httpd.conf

[PHP] Re: New window, new session

2002-06-25 Thread George Whiffen
Riaan Stander wrote: > Hi there > > I know this is not a php specific question, but I don't know where else to > ask. > > I've got the following situation. The website I'm currently working on has > got a administration page where the administration user must be able to > login as all the users a

Re: [PHP] Re: New window, new session

2002-06-25 Thread Justin French
Would it help if you opened the new window with some sort of GET variable which alerted PHP that it has to kill the existing session, and fire up a new one with the current user? window.open('myPopUpPage.php?action=killSession') ??? Justin French on 25/06/02 9:16 PM, George Whiffen ([EMAIL

[PHP] Re: Problem with regular expressions

2002-06-25 Thread George Whiffen
Drew wrote: > When I run the following script it returns String Okay! when it should say > Invalid Characters Found. I've tried the script substituting $ for other > characters, such as j, and it works just fine. What do I need to do? > > > $input = "johnon@company.$com"; > > if (ereg("[$]", $in

[PHP] A simple javascript problem

2002-06-25 Thread Jon
Im the copy/paste guru and I want a downloaded php/mysql guestbook to work. Php and mysql works fine and Ive seen friends use this guestbook. But on my server a get "file not found" whenever a try to 'add' to the guestbook. 'Add' links to guestbook.php?action=add Seems like my server doesn't int

Re: [PHP] function echo ' '

2002-06-25 Thread Martin Johansson
Thanks, that was new for me! /mj "Niklas lampén" <[EMAIL PROTECTED]> skrev i meddelandet 026b01c21c31$3bdab780$ba93c5c3@Niklas">news:026b01c21c31$3bdab780$ba93c5c3@Niklas... Not true. :) You can do it like this: (Ok, this is a for loop, but idea is the same) mailto:[EMAIL PROTECTED]] Sent: 25.

[PHP] File Retrieval, unusual

2002-06-25 Thread Jay Blanchard
I am in the process of analyzing the following situation and wanted to see if any of you might have done this or something similar before... Each day we have a person who is responsible for going to a secure web site ,logging in, (which redirects to) a JAVA applet. This JAVA applet has a set of t

Re: [PHP] Which costs more: connecting to a DB or accessing the file system?

2002-06-25 Thread Luke Welling
"Mike" wrote: > thaks for the reply. I conducted a simple/rough benchmark to which is more > expensive. ... > On the win box, file system access was 11 times faster, while on the freeBSD > box, file system access was 3 times faster. The include of the adodb class > is not benchmarked, as part o

[PHP] Re: paradox

2002-06-25 Thread Kondwani Spike Mkandawire
I've been having the same error for the past couple of days, I have posted on a couple of news goups with no response... I even have a posting on this one... I posted one on the paradox news group and some very rude individual gave a sarcastic response and led me back here (I think he was feeling

RE: [PHP] A simple javascript problem

2002-06-25 Thread Richard Black
Why is that a javascript problem? It may be that the guestbook expects the action variable to be registered as a global variable, but your server has this feature turned off. What is it not ddoing correctly?? Richy == Richard Black Systems Programmer, Da

[PHP] wordwrap doesn't work for customer's Outlook

2002-06-25 Thread m u i n a r
Is there really no solution to this issue? Is everyone using wordwrap to wrap their newsletter texts, or is there a way that works as well with Ms Outlook? Thanks a lot Recap: -> Ms Outlook gets everything on 1 line when I use wordwrap( $text,76,"\r\n" ). -> Ms Outlook shows nice line breaks whe

[PHP] how to get names of files...

2002-06-25 Thread tauntz
Hello.. I have a problem: I want to get all the filenames in a folder and put each filename into a variable.. (if there's a.gif in the folder then I want $first to be "a.gif", IF there's also a "na.jpg" then I want then it should be $second .. if you know what I mean) sry for the dumb question

RE: [PHP] Seperating presentation from logic

2002-06-25 Thread SP
I recommend http://smarty.php.net for seperating presentation from logic. It's one of the best template systems currently. It worked out of the box for me but it took me like the long weekend to figure out some of the config folders. It does your standard variable substitution {$bgcolor} but wha

[PHP] Re: how to get names of files...

2002-06-25 Thread Henrik Hansen
[EMAIL PROTECTED] (Tauntz) wrote: > Hello.. > > I have a problem: > > I want to get all the filenames in a folder and put each filename into a > variable.. http://dk.php.net/manual/en/function.readdir.php > (if there's a.gif in the folder then I want $first to be "a.gif", IF > there's als

RE: [PHP] Re: how to get names of files...

2002-06-25 Thread tauntz
Thank you, I got it working :) -Original Message- From: Henrik Hansen [mailto:[EMAIL PROTECTED]] Sent: 25. juuni 2002. a. 15:04 To: [EMAIL PROTECTED] Subject: [PHP] Re: how to get names of files... [EMAIL PROTECTED] (Tauntz) wrote: > Hello.. > > I have a problem: > > I want to get

[PHP] Problem compiling PHP

2002-06-25 Thread David Loszewski
I'm using php-4.2.1 on FreeBSD 4.5 with Apache2, I did the configurefine, I did a './configure --with-mysql --with-apxs2=/usr/local/apache/bin/apxs', but when I do a 'gmake' it comes up with php_functions.c:93: syntax error gmake[3]: *** [php_functions.lo] Error 1 gmake[3]: Leaving directory `

[PHP] Re: File Retrieval, unusual

2002-06-25 Thread Kondwani Spike Mkandawire
Do you really need the quotation marks when you are simply using php to spit out your HTML? Unless it is absolutely necessary php still spits out the correct HTML code without uneccessary quotations... echo "a href= $address"; I am quite sure this should work for the link tag... Correct me if

RE: [PHP] Re: File Retrieval, unusual

2002-06-25 Thread Jay Blanchard
[snip] Do you really need the quotation marks when you are simply using php to spit out your HTML? Unless it is absolutely necessary php still spits out the correct HTML code without uneccessary quotations... echo "a href= $address"; I am quite sure this should work for the link tag... Correct

[PHP] appending to XML file before closing tag

2002-06-25 Thread William S.
This works pretty well to append content to an XML file. However, I need to keep the closing tag where it belongs: at the end of the file. This only appends to the end and doesn't work. I use ... $myecho = "Hello World"; $file_name = "file.xml"; $file_pointer = fopen($file_name, "a"); fwrite($

Re: [PHP] Re: File Retrieval, unusual

2002-06-25 Thread Kondwani Spike Mkandawire
"Jay Blanchard" <[EMAIL PROTECTED]> wrote in message 001601c21c4b$67cfc5f0$8102a8c0@niigziuo4ohhdt">news:001601c21c4b$67cfc5f0$8102a8c0@niigziuo4ohhdt... ---> Did you reply to the wrong message? Nope, You posted your question in someone else's Reply Section... (Martin Johansson's function echo q

RE: [PHP] Re: File Retrieval, unusual

2002-06-25 Thread Jay Blanchard
[snip] "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message 001601c21c4b$67cfc5f0$8102a8c0@niigziuo4ohhdt">news:001601c21c4b$67cfc5f0$8102a8c0@niigziuo4ohhdt... ---> Did you reply to the wrong message? Nope, You posted your question in someone else's Reply Section... (Martin Johansson's function

Re: [PHP] how to get names of files...

2002-06-25 Thread Martin Smetak
> (if there's a.gif in the folder then I want $first to be "a.gif", IF > there's also a "na.jpg" then I want then it should be $second .. if you > know what I mean) well, i think you don't want to have variable like $twentyfifth, $hundredandthirtyfirst etc... don't you rather use some array? but

Re: [PHP] appending to XML file before closing tag

2002-06-25 Thread Erik Price
On Tuesday, June 25, 2002, at 09:31 AM, William S. wrote: > I know I need to introduce: fread() and fseek(). > but not sure how to put it all together. If you know for a fact that the ending tag for each file is consistent and always that same tag, here's an idea. Determine or specify the

[PHP] check if a foreach loop has successfully run

2002-06-25 Thread Jule Slootbeek
Hey list, How do i check if my script has successfully run through an entire foreach() loop do i just go if (foreach ($answer as $a) { echo $a }) { return TRUE; } else { return FALSE; } thanks in advance. Jule -- Jule Slootbeek [EMAIL PROTECTED] http://blindtheory.cjb.net

[PHP] very strange behaviour under https

2002-06-25 Thread gilles
i've been having strange behaviour from php since i run my code from behind https. i made a forum with PHP and MySQL (who didn't?), and it runs without any problems. about 10 people worked with it for a month or three and it ran just fine all that time. but now i decided to place that same fo

Re: [PHP] function echo ' '

2002-06-25 Thread Martin Johansson
Thanks all for your replies! For my code, this is the best way to view variables in echo functions It is nice and easy to read while going through a lot of code. /mj -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] check if a foreach loop has successfully run

2002-06-25 Thread Jason Wong
On Tuesday 25 June 2002 22:18, Jule Slootbeek wrote: > Hey list, > How do i check if my script has successfully run through an entire When it's finished looping when it's finished looping. foreach ($doo as $dah) { echo $dah; } echo "Finished"; > foreach() loop do i just go > > if (

[PHP] Re: check if a foreach loop has successfully run

2002-06-25 Thread Kondwani Spike Mkandawire
"Jule Slootbeek" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > if (foreach ($answer as $a) { echo $a }) > { > return TRUE; > } else { > return FALSE; > } Seems about right, however by default output is printed to a Page unless you are running your script i

[PHP] Downloading Files

2002-06-25 Thread Francis
I want to protect files from being downloaded and only allow people to download files which they have access too. I've done all the access control etc... but whats the best way for the user to download the file... Can you "paste" the file directly into the header? (get the file from the filesystem

[PHP] Automated Downloads WAS File Retrieval, unusual

2002-06-25 Thread Jay Blanchard
After further research I have found that the JAVA problem is non-existant, so here is what I am left with: On a remote https server; 1. Access the login page with 3 pieces of information to be passed. Unfortunately this information cannot be passed via URL. 2. Activate login which creates a sess

Re: [PHP] Downloading Files

2002-06-25 Thread Justin French
Either of these options will work fine. There was MASSIVE disscussions about this a few weeks back -- check for threads started by myself in the archives. Justin French on 26/06/02 12:35 AM, Francis ([EMAIL PROTECTED]) wrote: > I want to protect files from being downloaded and only allow pe

[PHP] recursive menus

2002-06-25 Thread electroteque
hi i have been trying to sought out a recursive hierarchical menu populated from mysql how is this possible ? i have tried this but doesnt work $result = $db->query("SELECT * FROM mainsection ms LEFT JOIN subsections ss ON ms.sectionID=ss.mainsectionID ORDER BY ms.sectionID,ss.subsectionID"); w

Re: [PHP] appending to XML file before closing tag

2002-06-25 Thread William S.
Yes, that worked. Nice and effective solution. Thank you. On Tue, Jun 25, 2002 at 09:51:21AM -0400, Erik Price wrote: > > If you know for a fact that the ending tag for each file is consistent > and always that same tag, here's an idea. Determine or specify the > length of the ending tag (in

[PHP] multiple webserver

2002-06-25 Thread Anil Garg
hi, This is a bit off topic but can anyone please point me to a link where i can find a tutorial for setting multiple web server(by listening on different ports) on one machine. thanx anil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] multiple webserver

2002-06-25 Thread B i g D o g
You can set apache to listen on multiple ports or you can have different web servers listening on ports that you configure it to listen on. For example: I have apache on port 80 and throttle webserver listening on 8080... B i g D o g - Original Message - From: "Anil Garg" <[EMAIL PR

[PHP] Easy Date & MySQL Question...

2002-06-25 Thread Doug Coning
Hi everyone, I have searched the php.net and don't know where to look for the code I need. I have a MySQL date column that reads this way: 2002-06-25. However, in PHP I want to show it this way 06/25/2002. Any assistance is greatly appreciated!!! Thanks in advance. Doug Coning Coning Consult

Re: [PHP] Easy Date & MySQL Question...

2002-06-25 Thread B i g D o g
Try looking at the date functions gmdate in the php.net manual B i g D o g - Original Message - From: "Doug Coning" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 25, 2002 9:06 AM Subject: [PHP] Easy Date & MySQL Question... > Hi everyone, > > I have searched t

RE: [PHP] Automated Downloads WAS File Retrieval, unusual

2002-06-25 Thread Jay Blanchard
[snip] After further research I have found that the JAVA problem is non-existant, so here is what I am left with: On a remote https server; 1. Access the login page with 3 pieces of information to be passed. Unfortunately this information cannot be passed via URL. 2. Activate login which creates

Re: [PHP] Easy Date & MySQL Question...

2002-06-25 Thread ej
as a quick hack you can use explode() to do this. try this: $date = explode("-",$mysqldate); echo $date[1]."/".$date[0]."/".$date[2]; - Original Message - From: "Doug Coning" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 25, 2002 3:06 PM Subject: [PHP] Easy Date & MySQL

Re: [PHP] Downloading Files

2002-06-25 Thread Francis
got it!! :) $filename = "backup.tar"; $download_file = "/absolute/path/backup.tar"; $fh = fopen("$download_file", "r"); header("Content-Type: application/x-tar"); header("Content-Disposition: attachment; filename=$filename"); fpassthru($fh); exit(); Thanks a lot!! :) "Justin French" <[EMAIL PRO

[PHP] Print a char from a variable number

2002-06-25 Thread guslist
Hello List, I want to do something that I think it is very simple but I can´t get working ! I´ve tryed fprint and works well but not with a random number. printf("%'-6s", ""); Here I print the '-' char 6 times. In some where of my code a get a result from a math calculation and I want to print t

Re: [PHP] multiple webserver

2002-06-25 Thread anilg
thanx for ur prompt reply can u plz tell be some website where i can find the steps to do that. thanx "B I G D O G" wrote in message news:<03d401c21c5c$4501a5a0$[EMAIL PROTECTED]>... > > You can set apache to listen on multiple ports or you can have different web > servers listening on ports tha

RE: [PHP] Easy Date & MySQL Question...

2002-06-25 Thread John Holmes
> I have searched the php.net and don't know where to look for the code I > need. I have a MySQL date column that reads this way: 2002-06-25. > However, > in PHP I want to show it this way 06/25/2002. Do the formatting in your query. Use the MySQL function DATE_FORMAT(). Look it up in the MySQL

RE: [PHP] Downloading Files

2002-06-25 Thread John Holmes
> I want to protect files from being downloaded and only allow people to > download files which they have access too. I've done all the access > control > etc... but whats the best way for the user to download the file... Can you > "paste" the file directly into the header? (get the file from the

Re: [PHP] multiple webserver

2002-06-25 Thread B i g D o g
You can visit www.apache.org or any other webserver that you want to use. You need to read the manual for configuring the ports that they use. So which ever webserver(s) you want to use read their manual on configuration. For apache you can configure the ports in the httpd.conf file. B i g

RE: [PHP] Seperating presentation from logic

2002-06-25 Thread John Holmes
You really want a template system. Check out Smarty or patTemplate. Devshed.com has a nice two part tutorial on patTemplate and I like how it looks a little better than Smarty right now. Might want to evaluate both and see which is faster or easier. I was going to give an example of patTemplate,

RE: [PHP] Print a char from a variable number

2002-06-25 Thread John Holmes
Why not use str_repeat()? www.php.net/str_repeat ---John Holmes... > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 25, 2002 11:45 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Print a char from a variable number > > Hello List, > > I want

RE: [PHP] Automated Downloads WAS File Retrieval, unusual

2002-06-25 Thread John Holmes
> [snip] > After further research I have found that the JAVA problem is non-existant, > so here is what I am left with: > > On a remote https server; > > 1. Access the login page with 3 pieces of information to be passed. > Unfortunately this information cannot be passed via URL. > 2. Activate l

RE: [PHP] using variables in a function within a fuction

2002-06-25 Thread John Holmes
> function test1() > {$hello="hello";} > > function test2() > {test1(); > print $hello;} > > test2(); > > ?> > This should print hello. But it does'nt work. Any idea? Read here to find out why: http://www.php.net/manual/en/language.variables.scope.php ---John Holmes... -- PHP General Mai

Re: [PHP] Print a char from a variable number

2002-06-25 Thread guslist
Yea !! It worked... I was looking for some thing like that !! Thank you very much ! Gus - Original Message - From: "John Holmes" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, June 25, 2002 1:03 PM Subject: RE: [PHP] Print a char from a variable number

Re: [PHP] odbc

2002-06-25 Thread Analysis & Solutions
On Tue, Jun 25, 2002 at 04:05:10PM +0700, sonjaya wrote: > i just newbie how to use odbc in php i have ready craete odbc in window > like this Step 1: http://www.php.net/manual/en/function.odbc-connect.php Step 2: http://www.php.net/manual/en/function.odbc-exec.php Step 3: http://www.php.net/m

Re: [PHP] php & JavaScript

2002-06-25 Thread Jim lucas
check out the reply he sent to my last message. it had the code as an attachment. Jim Lucas - Original Message - From: "David Freeman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 24, 2002 2:25 PM Subject: RE: [PHP] php & JavaScript > > I've tried to include a simple

Re: [PHP] Re: PHP 4.2

2002-06-25 Thread James Clifford
On Mon, Jun 24, 2002 at 09:24:13PM +0100, Peter wrote: > If you want an all in one solution without having to have two versions, > can't you read the status of register_globals from the config file and base > the rest of the script on this? > eg > if (register_globals == 'on') { > $name = _POST['n

[PHP] Gradients in PHP & GD

2002-06-25 Thread Ville Mattila
Hello, Does anybody have an idea where could I find a code library or code snippet to create gradients to images with PHP and GD? Thank you, Ville Mattila Ikaalinen, Finland -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Seperating presentation from logic

2002-06-25 Thread SP
There are a ton of template systems. Look here for performance benchmarks: http://www.phpinsider.com/benchmarks_phemplate Unfortunately pattemplate isn't tested so I don't know how it rates. -Original Message- From: John Holmes [mailto:[EMAIL PROTECTED]] Sent: June 25, 2002 12:02 PM T

Re: [PHP] Re: PHP 4.2

2002-06-25 Thread James Clifford
> foreach($HTTP_POST_VARS as $var => $val) { > $$var = $val; > } > > // repeat for the other relevant $HTTP_*_VARS > > The result was a short script that could be require_once'd at the > top of every script that depended on register_globals being off. Er, I mean 'that depended on registe

[PHP] php not remembering a session

2002-06-25 Thread Phil Schwarzmann
I just setup php/apache/mysql on a win98 machine and everything is working great except session control. It won't record a session or any session variables. Everything else is working well. It was giving me an error because i didn't have a tmp folder on the root of my C drive. Now I don't

[PHP] forms question

2002-06-25 Thread M.E. Suliman
Hi I'm busy with an order form in php. How would I display a text field only if a checkbox is checked. The reason for this is that if the user selects the product in the form and, how would I get to display the quantity field corresponding to that checkbox Any help would be appreciated. Thank

[PHP] char function

2002-06-25 Thread Leo
i want a logical function (true or false) that search a character into a string.(like indexOf() in javascript) example: i want to find char '@ ' in the string [EMAIL PROTECTED] leo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] char function

2002-06-25 Thread Erik Price
On Tuesday, June 25, 2002, at 06:23 AM, Leo wrote: > i want a logical function (true or false) that search a character into a > string.(like indexOf() in javascript) > example: i want to find char '@ ' in the string [EMAIL PROTECTED] $str = '[EMAIL PROTECTED]'; if (preg_match('/@/', $str)) {

[PHP] upgrading phpmyadmin...

2002-06-25 Thread Phil Schwarzmann
Is it pretty easy to upgrade phpmyadmin from 2.1 to the latest version? Anyone run in to any difficulty?

RE: [PHP] Seperating presentation from logic

2002-06-25 Thread Jerome Houston
Is there a particular reason everyone is skipping over the idea of using XML/XSLT? What you're talking about is EXACTLY what XSLT was designed for. You can write scripts that access the DB, and output XML. Then you just use XSL files written by your designers to translate your XML into HTML.

Re: [PHP] char function

2002-06-25 Thread Evan Nemerson
php.net/strstr Will return the string instead of true, but it will probably work for whatever you want to do... if ( strstr($string1, $string2) ) works perfectly well On Tuesday 25 June 2002 03:23 am, Leo wrote: > i want a logical function (true or false) that search a character into a >

Re: [PHP] forms question

2002-06-25 Thread Evan Nemerson
If you want to do it from PHP, then the forms will have to be seperate (PHP is server side...) You assign a value to a checkbox, then in the page you submit to, use something like if ( $_POST[$checkbox_name] == "checked_value" ) { ... } On Tuesday 25 June 2002 10:30 am, M.E. Suliman w

[PHP] [php] How to get request url string and server hostname

2002-06-25 Thread Harriet Xing
Hi, Would anyone know how to get the http request url string in php? i.e., if the request is "http://www.myserver.com/test.php?param1=123";, how can I obtain this string in test.php? Thank you, Harriett -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] upgrading phpmyadmin...

2002-06-25 Thread Devrim GUNDUZ
Hi, On Tue, 25 Jun 2002, Phil Schwarzmann wrote: > Is it pretty easy to upgrade phpmyadmin from 2.1 to the latest version? > Anyone run in to any difficulty? Just untar the newest version and edit config.php -- Devrim GUNDUZ [EMAIL PROTECTED] [EMAIL PROTECTED] Web : http://devrim.oper.

Re: [PHP] [php] How to get request url string and server hostname

2002-06-25 Thread 1LT John W. Holmes
A combination of $_SERVER['SERVER_NAME'], $_SERVER['SCRIPT_NAME'], and $_SERVER['QUERY_STRING'] should get you what you want. Check out a phpinfo() page for more variables, or do a print_r($_SERVER); ---John Holmes... - Original Message - From: "Harriet Xing" <[EMAIL PROTECTED]> To: <[E

Re: [PHP] php not remembering a session

2002-06-25 Thread 1LT John W. Holmes
Put a valid path in your session.save_path in php.ini. Something like c:\windows\temp or whatever... ---John Holmes... - Original Message - From: "Phil Schwarzmann" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 25, 2002 1:54 PM Subject: [PHP] php not remembering a sessi

Re: [PHP] [php] How to get request url string and server hostname

2002-06-25 Thread Jason Wong
On Wednesday 26 June 2002 02:56, Harriet Xing wrote: > Hi, > > Would anyone know how to get the http request url string in php? > i.e., if the request is "http://www.myserver.com/test.php?param1=123";, how > can I obtain this string in test.php? Look through the $_SERVER (or $HTTP_SERVER_VARS) va

Re: [PHP] forms question

2002-06-25 Thread 1LT John W. Holmes
> I'm busy with an order form in php. How would I display a text field only > if a checkbox is checked. The reason for this is that if the user selects > the product in the form and, how would I get to display the quantity field > corresponding to that checkbox if(isset($_REQUEST['checkbox_name

Re: [PHP] [php] How to get request url string and server hostname

2002-06-25 Thread Erik Price
On Tuesday, June 25, 2002, at 02:56 PM, Harriet Xing wrote: > Would anyone know how to get the http request url string in php? > i.e., if the request is "http://www.myserver.com/test.php?param1=123";, > how can I obtain this string in test.php? $request = "http://"; . $_SERVER['HTTP_HOST'] .

Re: [PHP] [php] How to get request url string and server hostname

2002-06-25 Thread Erik Price
On Tuesday, June 25, 2002, at 03:22 PM, Erik Price wrote: > However, I don't like using $_SERVER['QUERY_STRING'] because if there > are empty GET variables, it grabs them. So, if you prefer, you can do > this: > > $getVarsArr = array(); > foreach ($_GET as $getVarName => $getVarVal) { >

[PHP] I changed my root password and now can't connect to MySQL

2002-06-25 Thread Phil Schwarzmann
Okay, so I changed my root password using this command C:\> C:\mysql\bin\mysql mysql mysql> DELETE FROM user WHERE Host='localhost' AND User=''; mysql> QUIT C:\> C:\mysql\bin\mysqladmin reload C:\> C:\mysql\bin\mysqladmin -u root password my_password Then I went into my dbconnect.inc file

[PHP] ./onfigureing php

2002-06-25 Thread openldap
I am trying to configure php4.2.1 with following commands on a Redhat 7.2 box ./configure --with-mysql --with-apache=../apache_1.3.20 --enable-track-vars --with-imap=../imap-2001.RELEASE-CANDIDATE.1 --with-config-file-path=/opt/apache --with-ldap=/usr/local --with-gd --with-jpeg-dir=/usr/loca

Re: [PHP] I changed my root password and now can't connect to MySQL

2002-06-25 Thread Erik Price
On Tuesday, June 25, 2002, at 03:27 PM, Phil Schwarzmann wrote: > Now, whenever my script runs a MySQL command, I get this error > > Warning: MySQL Connection Failed: Access denied for user: 'root@MY_PC' > (Using password: YES) in C:\...\dbconnect.inc on line 3 > Cannot connect to The Datab

[PHP] Security problem?

2002-06-25 Thread Peter
When you have the standard $link = mysql_connect("localhost","username","secretpassword"); Would it not be possible for someone to use PHP from another server to download your source and find out your MySQL details including password? -- PHP General Mailing List (http://www.php.net/) To uns

  1   2   >