h. Ok. Can somebody explain this one? Why won't it work correctly?
for($m=1;$m=5;$m++){
$div_idd[$m]=${'row-sub' . $m . 'd'};
}
Can it not be done with a 3 parter? The columns in the table that $row
gets, are sub1d, sub2d, sub3d, sub4d and sub5d. Or is it the - that is
Alright this is my last question. I have closed the session, but can i make
sure it is closed? i want to use something like if the session is closed
then print a message session closed.
_
Send and receive Hotmail on your mobile
If you have session cookies disabled in your browser then you have to add
the session ID to the redirect. If you have your cookies enabled and you are
still losing the session then there must be some other problem.
no cookie compatible:
header(Location:
Hi all,
I just coded a cache mechanism for some slow code that looks like this:
$cache_file_name = cache/$id/$tid. ($showall ? '_all.php' :
'.php');
$cache_dir_name= cache/$id;
if(!file_exists($cache_file_name) ||
filectime($cache_file_name) + 30 time() ) {
I changed the user name in pg_pconnect(), also i
checked the pg_hba.conf for authentication. The
authentication type is trust. But still I am getting
the same warning while connecting to the database. Can
anyone figure what might be the problem?
--- Lejanson C. Go [EMAIL PROTECTED] wrote:
I have no problem with Netscape 4.7 when connecting to
Windows 2000 running the same script. Also, I don't
have any nested tables in the html. Any other ideas?
Thanks,
Harry
--- Bob Lockie [EMAIL PROTECTED] wrote:
[snip]
I'm trying to generate dynamic buttons with text
from mysql
Worked on this a bit tonight, thought it might help someone out there! I
looked at the bottomw of phpclasses.org at what they'd done to obfuscate
their e-mail address using JavaScript. While theirs is much more complex, I
couldn't figure a way to do it their way when you don't know the exact
So doing it the new way ($_SESSION['variable']) how do you close or
unregister a session?
_
Chat with friends online, try MSN Messenger: http://messenger.msn.com
--
PHP General Mailing List (http://www.php.net/)
To
Still the same message. It has been actually logging me out all along, but
it will not run through that if statement.
Could you trye
if (!empty($HTTP_SESSION_VARS['valid_user'])
use $HTTP_SESSION_VARS
_
Chat with friends
I have two tables: member_basic and member_detail. When a member edits their
record, they can edit or add data for either table, but, the data stored in
member_detail isn't required, so, they can possibly leave these fields
blank. By the way, both tables would be linked by a member id.
Here's my
Hi,
The question was about the use of mysql_close. Use it or not (not when to use it or
when not to). So far:
Agreed... you should always clean up after yourself.
PHP will close the connection automatically will be closed and all
information cleared.
I advised a newbie to
always use
Thank You Andrey, Matt and Martin for your answers. To summarize for
everyone, here are the answers:
From Andrey (tested, works):
for($m=1;$m=5;$m++){
$div_id[$m]=${'divid'.$m};
}
From Matt:
for($m=1;$m=5;$m++){
$varName = 'divId' . $m;
$div_id[$m]=${$varName}
}
From Martin:
for($i =0; $i
Hello,
I just installed the nice and easy one click PHP install to my Windows
98se machine.
I just want to be able to test and practice My basic PHP /MySQL stuff
without up loading.
So now what do I do.
I ran the php info scripts and got bunch of weird messages.
How do I get the PHP to work
I'm currently locked in a battle with PHP and file uploads. I've
searched the list to no avail. I actually found a guy with the same
problem who ended up using perl to make this work. I'm trying to avoid
that.
The problem is, I'm dealing with huge POST uploads (100+ mb). And
Ye Gods!
I
Is it possible to pass variables from a form as an array to another PHP
file? For example, I have this:
input type=text name=db['email'] value=? echo $db['email']; ?
When the form re-loads after being submitted (it calls itself when SUBMIT is
pressed), the var $db['email'] doesn't exist
for($m=1;$m=5;$m++){
$div_id[$m]=${'divid'.$m};
}
Regards,
Andrey
- Original Message -
From: Steve Buehler [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Friday, July 26, 2002 10:48 PM
Subject: [PHP] filling an array
Can anyone tell me what I am doing wrong?
I am essentially
Well, it's Friday afternoon and the pre-pub run debates have started :^]
The choice of arguement today is born of the fact that I advised a newbie to
always use mysql_close() to close the connection to the database. It's good
form and will cover any ills where the database connection fails to
hi guys i am having major caching issues in phpMyAdmin when i moved to
apache 2.0.39 has anyone else expeirence this ? its sending me round the
bend , i cant view my mysql tables when i create them , i have to removed
temp internet files and hit refresh to get them to view
--
PHP General
[snip]
Is there a way to change the value of a global variable when someon clicks a
a href URL link on a web page?
[/snip]
If the variable is sent via GET i.e.;
http://something.com/foo.php?bar=stuff
then you could;
$bar = $_GET['bar']; //where $bar is the global to be changed, $bar would
now
[snip]
I know that i can retrieve records 1-24 in my db with a select statement
like SELECT whatever FROM tablename ORDER BY id ASC LIMIT 23, but how can I
get records 25 to 50 if I have 100 records in my DB?
[/snip]
Different DB's have differing ways of doing this, like MySQL;
SELECT *
FROM
Hello,
I am creating a script that takes an uploaded image, creates a thumbnail
from it, and saves both files.
The script works great, but the problem is, the files It will have to
handle, are high-resolution files (300dpi, 24 bit-depth).. it works fine on
regular files (72 dpi), but when I
Hi all.
Last nite Ive came across a problem I wasnt able to figure out by my
self. Its not difficult to make a loop that will make new *TABLE ROWS*
(tr) to show several DB objects in a nice way
what I need to do, is
to display 2 or maybe even 3 of this objects stored in a DB per table
row,
Still getting the same message. This script used to work perfectly in an
older version of php. Could it be a problem with how I am setting the
sessions. Has anything changed with how we code sessions?
It's because you are unregistering the valid_user variable, but, the
old_user var you
I just thought I would share a personal experience that I am currently going
through that relates to this.
I was approached by a client to develop a full e-commerce solution for his
company. I am only one guy, and I had never done any PHP code on this scale
before. I knew this, but I wanted to
I have no problem with Netscape 4.7 when connecting to
Windows 2000 running the same script. Also, I don't
have any nested tables in the html. Any other ideas?
Thanks,
Harry
--- Bob Lockie [EMAIL PROTECTED] wrote:
[snip]
I'm trying to generate dynamic buttons with text
from mysql
Alright this is my last question. I have closed the session, but can i
make
sure it is closed? i want to use something like if the session is
closed
then print a message session closed.
You don't have to close it; it's automatic. Just treat $_SESSION like
the regular variable it is. Anything
I installed PHP when I installed Red Hat 7.2 without MySQL. I have now
added MySQL but I can't figure out how to enable it in PHP. Can anyone help?
thanks,
Joel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You need a web server like M$ IIS or Apache. I would rather chew tin foil
than run an IIS server even if it was on a win machine.
You can install the win version of the Apache web server and then just
browse to http://localhost/ to view your work.
Jim Grill
Support
Web-1 Hosting
I don't think HTTP POST upload is going to be reliable for *that* size
files, no matter *what* you do...
Well from the tests I have done it has worked fine. There is no reason
why it shouldn't either.
Give them an FTP account or something.
No an option for hundreds of people with
From: Christian Calloway [EMAIL PROTECTED]
Sorry this may be a little offtopic, but I am currently moving a site I was
developing from coldfusion+MSAccess to PHP+MySQL. I remembered reading
somewhere that there is a utility that will convert/transfer (data and
structure) a MSAcess database
This may sound silly, but you are uploading in binary mode right?
Jim Grill
Support
Web-1 Hosting
http://www.web-1hosting.net
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 26, 2002 5:24 PM
Subject: [PHP] High Resolution Images
Hello,
I am
[snip]
I have a redirect i would like to do using php. It will go something like
this
if (mysql_db_query ($dbname, $query, $link)) {
{redirect would go here}
} else {
{a different location on this redirect here}
How can i accomplish this? i just do not know php well enough to code
From: Tech Support [EMAIL PROTECTED]
To: k a m e s h [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, July 26, 2002 11:20 AM
Subject: Re: [PHP] Help: header function
Try just header(Location: $PHP_SELF); or header(Location:
$SCRIPT_NAME)
...leave out http:// ...and your quotes are in the
I know what you mean about everything being M$.
I'm a die hard GNU fan and therefore hate everything M$, but I can think of
more than one occasion where that attitude cost me some money. I somehow
still believe that if I stick to my beliefs and maybe try to convert some M$
people to host their
How do I compare time in php?
Eg. If I have a mysql time field I retrieve stored in $result[0][0] how do
I
say :
if (($result[0][0] $result[0][0] plus ten minutes) ($result[0][0]
'00:00:00')){
MySQL and PHP timestamps are in different formats. MySQL uses MMDDHHMMSS
and PHP uses a
(This was from an email sent to Gabor, and the site said this address was for help)
This is not a definition of the $blah variable. $blah = 1; would be a definition.
I've never had any problems using just $blah; before, it never errored on
me once, is there any reason it does this? (by the
From: lallous [EMAIL PROTECTED]
I use javascript for that! :)
I try to steer away from javascript as much as possible (and anything else
client-side), unless I know my audience extremely well and they are locked
into a certain browser and version, i.e. internal applications. But I like
that
if( ___ ) {
header(Location: http://www.domain.com/itworked.php;);
} else {
header(Location: http://www.domain.com/error.php;);
}
Tyler Durdin [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
I have a redirect i would like to do using php. It will go something like
this
if
Ok. That makes since.
Thanks
Steve
At 04:20 PM 7/26/2002 -0500, you wrote:
var names can only be letters, numbers, and underscores.
Jim Grill
Support
Web-1 Hosting
http://www.web-1hosting.net
- Original Message -
From: Steve Buehler [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent:
It really depends on what version you have now.
I'd say the biggest thing to look out for is the register_globals, which is
now defaulted to Off. This will break lots of sites!!! Turn it on unless
you want your phone to ring for days. Users should, however, be urged to get
used to coding with it
You have to have session_start() in each page in order to carry over session
variables. :o)
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
DonPro [EMAIL PROTECTED] 07/26/02 04:06PM
Hi,
I have a form that calls a PHP script
Hi Niklas:
On Fri, Jul 26, 2002 at 01:54:25AM +0200, Nicklas af Ekenstam wrote:
Hi
I have this regular expression:
(((http|https|ftp|gopher)|mailto):(//)?[^ \t]*|www\.[-a-z0-9.]+)[^ .,;\t\):]
Which is supposed to match hyperlinks. I would like to use this
from php to grab all
Learning about HTTP protocol helps a LOT with understanding headers. Basically, the
headers are generated by the server to tell the client (browser) what to do. If you
send ANYTHING (even a hard return) before the header function is invoked then you will
get this error. In essence, if you
Hi,
Right now my PHP is set up to use Postgresql. I want to use MySQL now. How
do I let PHP know that MySQL is now installed?
thanks,
Joel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Kamesh's trouble was he was refering to something like http://mypage.php .
I figured it would save time to just get rid of the protocol and go
relative.
I'm aware of the spec for header, but I have always used a relative URI and
just about all the code I've seen uses relative also. I would be
Oh, and also, i need to know how to get the default value...
Btw, i CAN be done, or else, how does phpMyAdmin does it =P
InsaneCoder
How can i check if a field has auto-increment extra activated on it?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
so with Guinness and bread, who needs to buy a meal? :-)
Ooof. I feel bloated just reading that. :)
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
re php info:
put this into a file, put it on your server, and call up the page in a
browser:
?php
phpinfo();
?
it will show the settings for php on your server. As Jim suggested below,
you should check the register_globals setting. If register_globals is on,
you'll need to use the _Get
I have a user authentication system using sessions
it checks username and password against a database.
if correct it sets a variable in the session cookie (via $_SESSION) and
redirects to the protected page which checks for that variable.
if the user/pass is wrong it redirects to an error page.
what has to be configured, and how, on a bsd server to allow the mail()
function to work in php? using sendmail?
php.ini
Use the path to sendmail there, with the -t as suggested, and *YES* the
quotes *ARE* supposed to be part of it:
sendmail_path = /path/to/sendmail -t
You may also need to
Yes I found it... thank you!
-Original Message-
From: Aaron Gould [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 9:56 AM
To: Frank S. Kicenko; [EMAIL PROTECTED]
Subject: Re: [PHP] PHP / Apache 2.0.39 issues
Searching the list archives will reveal the answer. I've answered this
Try removing the quotes in sessio_register ie. (valid_user2)
Here is the code that starts and registers the session. It is login page
that logs in to itself so the form that produces $_POST[username] is
actually on the same page, but nothing happens until the user logs in. It
there is
Hi Gurus,
I am using PHP 4.1.1, Postgresql 7.2 and Perl 5.6.0 on Linux.
I want to delete files in a directory,which were created 15 days back.
I can not do it, with PHP filesystem and directory functions, as PHP runs as
"nobody" user.
Can anybody pls. help me ?
Well...
There are several
I am new to using PHP on RedHat 7.3 and am running into a problem with
ldap_connect(). When I attempt to run ldap_connect, I get the error:
Call to undefined function: ldap_connect()
Even though you said --with-ldap=shared it just didn't work
You'll have to do ./configure again and figure out
Sorry this may be a little offtopic, but I am currently moving a site I was
developing from coldfusion+MSAccess to PHP+MySQL. I remembered reading
somewhere that there is a utility that will convert/transfer (data and
structure) a MSAcess database to Mysql, and vice versa. Anyone know? Thanks
Here is the code that starts and registers the session. It is login page
that logs in to itself so the form that produces $_POST[username] is
actually on the same page, but nothing happens until the user logs in. It
there is something in this code that is not correct or making the other code
I used this logout page using sessions a while ago and it used to work
great, but now it doesn't work. The only thing i have changed is my version
of php. Can someone take a look and see what i have to change?
?
session_start();
$old_user = $valid_user;
$result =
Both are running Apache. I'm using the Windows
machine as a development box. The web server and php
configuration are very close.
--- Bob Lockie [EMAIL PROTECTED] wrote:
I have no problem with Netscape 4.7 when connecting
to
Windows 2000 running the same script. Also, I
don't
have any
The filepointer is closed after your script finishes executing, you
cannot do it.
V_Suresh wrote:
Hi All,
Suppose I'm opening a socket connection to a server on some
port, and I do some transactions, and generate html. But I 'm not
closing the file pointer(socket). Only after the user
Why am I getting this error? My statement is:
SELECT * FROM shots WHERE shot_num = MAX(shot_num) LIMIT 1;
There is one record in the table shots. Its shot_num value is 0.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Christian Calloway em Friday 26 July 2002 17:30 foi agraciado com uma
resposta por:
Sorry this may be a little offtopic, but I am currently moving a site I
was developing from coldfusion+MSAccess to PHP+MySQL. I remembered reading
somewhere that there is a utility that will convert/transfer
1) To echo the variables name instead of it's value, surround it instead by single
quotes, not double.
echo '$var' OUTPUTS $var
echo $var OUTPUTS the contents of $var
2) Checkout the func_get_args() function.
http://www.php.net/manual/en/function.func-get-args.php
HTH!
Martin
yes they are off. I did just recently discover this whole form thing, but i
did not know about the session variables. I put the session registration
code up in another post, if you would not mind looking at that and
recommending changes. in the mean time I'll try and get up to speed on the
Is it possible to make the browser wait say, 5 seconds before redirection by
outputting headers? I know you can do it with meta tags but not how by
outputting headers
The header version pretty much hits the browser long before your HTML, and
then the browser will immediately move to the new
Top 10 Locales --
Washington DC (9 members)
Amsterdam (7 members)
Leeds, UK (7 members)
London, England (7 members)
Atlanta (5 members)
Manhattan (below 42nd St) (5 members)
Melbourne (5 members)
Oakland-Alameda, CA (4 members)
Nashville, TN (4 members)
St. Louis, MO (4 members)
I am somewhat
My question is, if I have a user on my web site, and they leave and come
back does their session still exist? the file in the /tmp folder exists
until it is deleted by the OS? If the user comes back will they get
assigned the same session they had before? I know the questions are
pretty newbish
Hi,
I have a form that calls a PHP script which sets a session variable and
redirects to anopther URL as such:
session_start();
$HTTP_SESSION_VARS['userid'] = someidnumber;
Header('Location: ' . 'http://www.mydomain.com/welcome.html');
On welcome.html, I have the following code:
script
If you got it installed.
insert a script called php_info.php on the companies webserver.
here is it's contents:
?php
phpinfo();
?
That will give you lots of info about the configuration of PHP.
do the same thing on your PC.
if they are differant:
Use windows explorer/my computer to browse
I here ya' there Martin.
ASP is about next on my list. I'm just trying to get javascript and PHP
under my belt a little better firstwell ok, I'm waiting for my next
paying client. I've found that you do have to use what you know to know
whatever you need to do. I couldn't live without
Try just header(Location: $PHP_SELF); or header(Location: $SCRIPT_NAME)
...leave out http:// ...and your quotes are in the wrong place too.
Jim Grill
Support
Web-1 Hosting
http://www.web-1hosting.net
- Original Message -
From: k a m e s h [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent:
Congrats! Good choice!
Take a look here:
http://www.convert-in.com/acc2sql.htm
or here:
http://www.google.com/search?hl=enlr=ie=ISO-8859-1q=convert+access+databa
se+to+mysql
Jim Grill
Support
Web-1 Hosting
http://www.web-1hosting.net
- Original Message -
From: Christian Calloway [EMAIL
unset($_SESSION['variavble']);
Andrey
- Original Message -
From: Tyler Durdin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 26, 2002 10:14 PM
Subject: Re: [PHP] Re: sessions
So doing it the new way ($_SESSION['variable']) how do you close or
unregister a session?
On Fri, 26 Jul 2002 12:24:31 -0500, Frank S. Kicenko wrote:
Ugg.. been compiling and configuring for too many days..everything is
just a fog..:-) I appreciate all the help here.. but I'm afraid I need a
little more.. :-)
I can't seem to get Apache to recognize PHP... The logs state:
[notice]
I'm looking for the global veriable that lists the page before the page that
i just came from. Anyone know what i'm talking about?
?php phpinfo();?
will tell you what you want to know.
--
Like Music? http://l-i-e.com/artists.htm
I'm looking for a PRO QUALITY two-input sound card supported
Hello, I'm playing with imagettftext:
http://sean.caedmon.net/ttf_example.php?text=PHP
This works fine with some fonts, and not fine with others:
http://sean.caedmon.net/ttf_example.php?text=PHPfont=a
The (broken) font in question is available at:
I just realised why my search returned nothing.
I was searching the function list instead of the whole site :}
Sorry :(
--
JJ Harrison
[EMAIL PROTECTED]
www.tececo.com
Jason Wong [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
On Friday 26 July 2002 23:33, Tech Support wrote:
From: Gerard Samuel [EMAIL PROTECTED]
Sent: Friday, July 26, 2002 1:07 PM
Subject: Re: [PHP] Paying Job...
Someone posted a link to template contracts yesterday, but I cannot find
it in the mailing list archive.
Bret
Find a contractor or find a contract at Tech-Temp.com
I have a column in my table named firstname with twenty records in it. How
can i use php to pull out individual records (say for ex. record 16)? Also,
select firstname from blah
where id = 16
how could i pull out all records upto number 15? Thanks in advance.
select firstname from blah
where
// Set the limit per page
$sql_text = $sql_text . LIMIT $start, $maxresult;
echo $sql_text;
$result2 = mysql_query($sql_text);
if (!$result2){
echo mysql_error();
}
// The navigation between pages
--
Like Music? http://l-i-e.com/artists.htm
I'm looking for a PRO QUALITY two-input
You may already be doing it like this, but I think I found a new way to
make select boxes auto-select (what data they put in) a lot easier. All you
have to do is put a variable in each select tag that is equal to the value
of the select option i.e.: option value=teacher $teacher -- then all you
Hello, I am stuck here. In the name of efficiency I want to lower the number
of callls to the database. So I am trying to give the most stringent query
possible. This is the problem: I have stored the surfers shopping cart,
where each item is stored as a session variable.Now on the database I
I am trying to figure out how to upgrade php from 4.1.2 (which is the
default that comes with redhat 7.3), to version 4.2.2. From the small amount
of documentation I have been able to find on the subject, it looks like I
need to download a rpm. Is this the best way to do it or would it be better
Is it possible to run PHP that is embedded within a string? I have a file
that is read into a string and returned to the browser, how can I run that
PHP?
http://php.net/eval
--
Like Music? http://l-i-e.com/artists.htm
I'm looking for a PRO QUALITY two-input sound card supported by Linux (any
Frustrating!
I have scripts that do this exact thing, on this exact server, for that
matter in this exact set of directories, now it will not work;
$filename = NIIRTQWCDR. . date(Ymd) . . . $cycle;
//open new file and write records to it
$cdrfile = fopen(/usr/local/www/data.default/rcr/ .
You don't let PHP know that it is installed. You just have to make sure that
PHP is supporting mysql functions (compiled with mysql support) and start
using mysql function.. Check out what phpinfo() prints , whether or not
there is mysql related info in its output..
Gurhan
Joel Lopez [EMAIL
+1 right.
Best regards,
Andrew Hill
Director of Technology Evangelism
OpenLink Software http://www.openlinksw.com
Universal Data Access Virtuoso Universal Server
-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 2:22 PM
To: [EMAIL
I always just register an extra variable to track logged in users. If the user has
logged in, it is set to TRUE, if not, FALSE. Then I just do comparisons on that
variable.
?php
session_start()
if($loggedin == FALSE) {
header(Location: login.php);
}
?
Something along those lines.
I already tried that and i got an error that said Cannot add header
information - headers already sent by (another snippet of code I have in the
page.
Use the header() function
http://www.php.net/manual/en/function.header.php
*
Hi there, I've got a quick question concerning PHP and mySQL. I've got a
fresh server with recent versions of Red Hat Linux, mySQL, PHP and apache.
My problem is that when I call mysql_pconnect, my PHP code hangs and
doesn't proceed. I can't check mysql_error because it doesn't go beyond
Hello,
I have this example code:
function doprint($a){foreach($a as $value)echo $value;}
doprint(array('1','test','hello','and'));
Question, is the array in memory after the function call?
So, should it be better to use this:
function doprint($a){foreach($a as $value)echo $value;}
I don't know. Tell me where I would find it and I'll look : -)
Sorry, pretty new to all of this.
Do you have register globals off?
Jim Grill
Support
Web-1 Hosting
http://www.web-1hosting.net
- Original Message -
From: Tyler Durdin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday,
[snip]
Learning about HTTP protocol helps a LOT with understanding headers.
Basically, the headers are generated by the server to tell the client
(browser) what to do. If you send ANYTHING (even a hard return) before the
header function is invoked then you will get this error. In essence, if
What's ASP
I don't know if and haven't learned it so it couldn't be. After all, how
many programming languages does one need to know??
-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 8:27 AM
To: 'David Buerer'; [EMAIL PROTECTED]
on 26/07/02 10:50 PM, Mathieu Dumoulin ([EMAIL PROTECTED]) wrote:
Oh, and also, i need to know how to get the default value...
Btw, i CAN be done, or else, how does phpMyAdmin does it =P
Well then look at the source code of phpMyAdmin :P
Justin
--
PHP General Mailing List
On Friday, July 26, 2002, at 11:32 AM, David Buerer wrote:
ASP is about next on my list. I'm just trying to get javascript and PHP
under my belt a little better firstwell ok, I'm waiting for my next
paying client. I've found that you do have to use what you know to know
whatever you need
I am trying to connect to postgre_sql database using
pg_pconnect(). When I try to run it i get the
following error
Warning: Unable to connect to PostgreSQL server: FATAL
1: IDENT authentication failed for user postgres in
/var/www/html/test.php on line 3
connection failed
Please tell me what
okay... if register_globals is off then your session handling is going to
change dramatically.
You can read more on it here:
http://www.php.net/manual/en/ref.session.php
Basically, You still use session_start(); at the top of your page, but you
never use session_register, session_is_registered,
Obiously you need a WebServer too, you can install Apache or Personal Web
Server, and configure php to work with it, next you can browse you own
server with the address http://localhost or http://127.0.0.1, maybe you
will have to install mysql for windows too if you wanna work with databases
do the following
function a(){
var_dump('pre',$GLOBALS,'/pre');
}
a();
and see what variables you have and whether your variables are set
somewhere.
HTH
Andrey
- Original Message -
From: Tyler Durdin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 26, 2002 9:28 PM
Can anyone tell me what I am doing wrong?
I am essentially trying to do this:
$divid[1] = $div_id1;
$divid[2] = $div_id2;
$divid[3] = $div_id3;
$divid[4] = $div_id4;
$divid[5] = $div_id5;
But I was looking for a tighter way, like the following (which does not work):
for($m=1;$m=5;$m++){
1 - 100 of 148 matches
Mail list logo