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
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
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
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 '';
>
>
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 '
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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é
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
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.
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
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
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
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
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
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
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
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.
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
"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
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
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
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
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
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
[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
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
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 `
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
[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
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($
"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
[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
> (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
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
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
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
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
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 (
"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
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
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
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
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
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
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
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
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
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
[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
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
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
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
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
> 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
> 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
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
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,
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
> [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
> 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
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
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
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
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
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
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
> 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
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
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
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
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)) {
Is it pretty easy to upgrade phpmyadmin from 2.1 to the latest version?
Anyone run in to any difficulty?
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.
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
>
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
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
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.
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
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
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
> 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
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'] .
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) {
>
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
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
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
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 - 100 of 119 matches
Mail list logo