At 02:43 PM 12/5/01 -0500, Jack Dempsey wrote:
>$t = preg_replace('/\s+/',' ',$text);
One more thing:
How do I replace with newline instead of a space? I read through the manuals but
couldn't grasp how to do this. \n didn't cut it.
And, more advanced -
The above replaces any groups of 2 or m
Is it possible for users to change passwords from htaccess files in php? I do not
want to use the database or sessions for account management as I already have 40 or so
htaccess accounts set up for different areas.
Thanks.
Hello,
does anybody know of any documentation how to write scripts that
do interact with emails (Majordomo-like), i.e. when an email comes
to
[EMAIL PROTECTED]
that a script is starting which reads the email and completes tasks
which are defined within the email?
We are using PHP4, Ap
Hi
Is there any way to get a list of all active sessions in apache using PHP?
Thanks
Lee
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED
Hello,
"Pro.Vider.De Gmbh J.Mueller" wrote:
>
> Hello,
>
> does anybody know of any documentation how to write scripts that
> do interact with emails (Majordomo-like), i.e. when an email comes
> to
>
> [EMAIL PROTECTED]
>
> that a script is starting which reads the email and completes
hi all,
does anyone know if there is a possibilty to check if a mailadress is existent,
without sending a testemail?
thanks for your help
Mit freundlichen Grüßen,
Oliver Küppers
CIB - Firmenkunden Deutschland
Marketing und Vertrieb
Deutsche Bank AG (Zentrale)
phone : +49 (69) 910 - 34723
f
Which packages do I need to set a web server with PHP and MYSQL support?
I guess:
apache server
php4 apache module
mysql module for php4
Josep
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To co
The problem:
PHP was compiled together with freetype version 2, gd, and several other
extensions. It compiled and installed,
but calls to freetype from PHP failed.
Solution:
Use freetype version 1!
I note also that the freetype demos that required X11 also did not work on
the Sun workstatio
Hi
I use PHPed for ages now, since it has one feature that i definitely
need :
if i have used the variable $fooBar somewhere in a script, then i just
have to type
'$fo' and the editor shows me all valiables that start with '$fo' and i
just have to hit
Enter to use it.
I know of pleanty editors
Hi
I have a script which sends email from the web. The problem is the header of
the message contains "Return-path" and "Sender" email address as the
[EMAIL PROTECTED]
So, can some one help how can I set Return-path and Sender address as From
Address?
Regards
Sanjay
Return-path: <[EMAIL PROTE
Hi Sanjay,
you can add extra headers in the mail command.
example from php.net:
mail("[EMAIL PROTECTED]", "the subject", $message,
"From: webmaster@$SERVER_NAME\r\n"
."Reply-To: webmaster@$SERVER_NAME\r\n"
."X-Mailer: PHP/" . phpversion());
Bart
-Ursprüngliche Nachricht-
Hello,
I seem to have ran into a problem.
If I try to use the dba functions when I've got an active postgres handle the
dba funtions will return:
"Warning: Unable to find DBA identifier 1 in
/www/sites/Test/htdocs/dbafuncs.php on line 31"
If I comment out the call to pg_connect all of the dba
I tried this before posting to the list. it didn't worked for me.
sanjay
- Original Message -
From: "Bart Frackiewicz" <[EMAIL PROTECTED]>
To: "sanjay" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, December 06, 2001 4:00 PM
Subject: Re: [PHP] How to change Return-path and send
php-general Digest 6 Dec 2001 10:49:17 - Issue 1036
Topics (messages 76793 through 76851):
URGENT: IIS doesn't like GET or POST
76793 by: Ron Newman
Pulling data out of a domain name
76794 by: rdkurth.starband.net
76795 by: Brian Clark
76800 by: rdkurth.sta
I want to store the image binary data in a MySQL Blob field. So I
created a simple form that prompted the client for an image file that
would be uploaded to the server.
The server takes the file and gets the following data, assuming ImgFile
is the name of the uploaded image.
$ImgTitle = $HTTP
I routinely use \n \t in php just so that the html outputed is formated
nicely and is easy to read when view source
--
Jon Farmer
Systems Programmer, Entanet www.enta.net
Tel 01952 428969 Mob 07763 620378
PGP Key available, send email with subject: Send PGP Key
- Original Message -
From:
mysql_query('INSERT INTO the_table (name,content)
VALUES(".$HTTP_POST_FILES['ImgFile']['name'],',',
mysql_escape_string(implode('',file($HTTP_POST_FILES['ImgFile']['tmp_name']))).');');
you can use addslashes also but mysql_escape_string is safer.
Regards,
Andrey Hristov
- Orig
Hi,
After recompiling my Php with the newest LDAP-Libraries and Openssl
"ldap_connect("ldap://hostname";)" works. But I still have problems with
"ldap_connect("ldaps://hostname")":
Connecting works, but Php can't bind with the Openldap-Server. I checked
the debug output of slapd and found messa
> does anybody know of any documentation how to write scripts that
> do interact with emails (Majordomo-like), i.e. when an email comes
> to
>
> [EMAIL PROTECTED]
>
> that a script is starting which reads the email and completes tasks
> which are defined within the email?>
Compile PHP as a binar
http://www.test.com/test.php?orderid=xyz
test.php has to make a request to DB mysql and return a xml page like this :
How can I do that ?
Should I just use echo ?
Help
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
you didnt entered the correct pasword for the mysql database
"Josep" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
000501c17e48$3d5acaf0$[EMAIL PROTECTED]">news:000501c17e48$3d5acaf0$[EMAIL PROTECTED]...
> I get the following message when trying to view a php page
>
> Warning: Access denied for us
I have a question about require...
I have a session_start() on top of every page and an if-else construction.
Login == 1)
{
?>
On the bottom of every page
This works fine, but now i made the files sessionstart.php and bottom.php
sessionstart.php
--
Login ==
yes, echo the xml but send a header telling the browser it's xml:
header("Content-Type: text/xml");
"Olivier Masudi" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
>
>
> http://www.test.com/test.php?orderid=xyz
>
>
> test.php has to make a request to DB mys
Check 'register_globals' in php.ini
It sounds like it's off which is much more secure
Instead of getting:
$var
you'll have:
$HTTP_GET_VARS['var']
It stops people sending any variables in the script.
Peter
"Ron Newman" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTE
The only predefine entities in XML are < > &
all others need to be defined in the dtd.
Best thing to do is leave the charatef as is in the xml and only run
htmlentites on the contents when sending the contents to an html web
browser.
The xml will happily hold the character as it is.
If you're usi
>I can't afford 299$ for an Texteditor,so :
>Does anyone know of a free/cheap Edtor that has this feature?
On windows - PHPEdit (maybe even PHPCoder).
On linux - I, too would like to know, mabe emacs?.
Roko
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROT
Search the list. I remember that someone posted a link from php.net where a putted
several links which points to the home pages of
editors(Linux+Windows).
Regards,
Andrey Hristov
- Original Message -
From: "Roko Roic" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December
Hi,
Can someone give me a brief over view of how to encrypt a password and
store it in a MySQL DB, then be able to validate thier plain text
password on login against the encrypted one on the DB?
I'm guessing I:
1. encrypt the desired password with some sort of key (eg "blahblah")
which is hid
hi
http://www.itworks.demon.co.uk/phpeditors.htm
best regards
attila strauss
>
>
> > >I can't afford 299$ for an Texteditor,so :
> > >Does anyone know of a free/cheap Edtor that has this feature?
> >
> > On windows - PHPEdit (maybe even PHPCoder).
> > On linux - I, too would like to know, mabe
MySQL has a PASSWORD() function which encrypts passwords for you!!!
Retrieving the user records using the username and encrypted password as
selection criteria will either bring back the appropriate record (ie the
log in worked) or no record (ie password/username supplied were incorrect)
HTH
Hello and thanks for your time.
After endless searching, I am still lost
let's just assume I can't install freetype, and it looks like that for
matters I won't get into. (linux, raq 3)
What solution would allow me to specify fonts for text written into images?
Instead of using the default
Bunch of them!
Check php.net's links and sift through those.
Web Monkey has a good primer on PHP & MySQL.
"Geoff E" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Okay, probably been asked zillions of times already, but I couldn't find
> reference to it in the
Chris,
I'm a bit lost... what exactly is your question?
"Chris Cocuzzo" <[EMAIL PROTECTED]> wrote in message
010e01c17e0d$d28e72b0$ae687780@webs224">news:010e01c17e0d$d28e72b0$ae687780@webs224...
hey-
I have php 4.0.6 on Win 2k with Apache 1.3.20 ... I figure I'm close to
getting this installed
UPDATE members set passwd=PASSWORD(passwd);
"select login from members where PASSWORD($form_pass)=passwd;"
Regards,
Adnrey Hristov
- Original Message -
From: "Justin French" <[EMAIL PROTECTED]>
To: "php" <[EMAIL PROTECTED]>
Sent: Thursday, December 06, 2001 2:32 PM
Subject: [PHP] encry
>Hello and thanks for your time.
>
> After endless searching, I am still lost
>
>let's just assume I can't install freetype, and it looks like that for
>matters I won't get into. (linux, raq 3)
>
>What solution would allow me to specify fonts for text written into images?
>Instead of using the de
Dear Friends,
I'm working on a tool where my dear user can upload a large jpg for
use with a store. The tool would upload the jpeg, resample (as
opposed to resize - image quality is appalling on that!) it to
thumbnail, and then be done with the whole thing and go smoke a
cigarette.
Sounds s
>>> then i just have to type '$fo' and the editor shows me all valiables
>>> that start with '$fo'
>>> Sebastian
>> On linux - I, too would like to know, mabe emacs?.
>> Roko
> http://www.itworks.demon.co.uk/phpeditors.htm
> attila strauss
At http://sourceforge.net/projects/php-mode/ is a php-
I have now located a simple HOW-TO and scripts in a zip at:
http://www.zoon.se/mailing/index.htm
Good luck!
Michael Cronström
Web Inventor
At 00:33 06/12/01, you wrote:
>Perhaps I misunderstood. Are you making scripts available? If so, I'm
>interested in taking a look. If not,
>apologies for
"Attila Strauss" <[EMAIL PROTECTED]> wrote in message
003301c17e52$69c94260$[EMAIL PROTECTED]">news:003301c17e52$69c94260$[EMAIL PROTECTED]...
> hi
> http://www.itworks.demon.co.uk/phpeditors.htm
This list does not contain the best among Windows editors:
PHPEdit, PHPCoder (Maguma PHP4EE studio),
* Oliver-B Kueppers <[EMAIL PROTECTED]> [Dec 06. 2001 04:38]:
> hi all,
>
> does anyone know if there is a possibilty to check if a mailadress is existent,
>without sending a testemail?
> thanks for your help
Class that may be used to determine if a given e-mail address is valid.
It features:
* josep <[EMAIL PROTECTED]> [Dec 06. 2001 04:50]:
> Which packages do I need to set a web server with PHP and MYSQL support?
>
> I guess:
> apache server
> php4 apache module
> mysql module for php4
Operating System?
Windows:
Apache+PHP4 (as a module): http://www.php4win.com/
* Justin French <[EMAIL PROTECTED]> [Dec 06. 2001 07:33]:
> Can someone give me a brief over view of how to encrypt a password and
> store it in a MySQL DB, then be able to validate thier plain text
> password on login against the encrypted one on the DB?
An alternative is to just store an Md5 o
Thanks!
Thanks for your answer. It was like I thought. I have to write my own
parse code.
Håkon (Hakon)
> Well, This is not really possible, unless the server itself allows you to do
> the listing.
> One way and after the last condition you can use
> fopen("sever.com/dir_to_list/") then fread
Dear Sondra,
So, I would suggest you to change your webhosting company.
:o)
Anthony Washington ([EMAIL PROTECTED])
http://www.shell42.com
http://www.comwebhosting.com
On Thu, 6 Dec 2001, Sondra Russell wrote:
> Dear Friends,
>
> I'm working on a t
Hi,
This is doing my head in.
I'm printing out a lot of countires from a db and i want to select the
countries (check their checkboxes) if they are equal to a particular country
variable I have set or if they appear in an array. My code is:
$european_union = array('24', '17', '1
Maybe you could give a little more info on what
the parse error actually says?
On Thu, 2001-12-06 at 06:51, Oosten, Sjoerd van wrote:
> I have a question about require...
>
> I have a session_start() on top of every page and an if-else construction.
> session_start()
> if ($SessieEIA->Login
I'm sorry, your message doesn't make sense...
First you say that you want to do what the script is doing, and then
you say you don't want it to do that.
>i want to select the
>countries (check their checkboxes) if they are equal to a particular country
>variable I have set or if they appear in
Hi!
I've got to develop a multilingual application.
What's the best approach to have the app multilingual? Should I use
gettext, or are there any better ways to do this?
Thanks,
Alexander Skwar
--
>> Wohnung in Gelsenkirchen und Umgebung gesucht! <<
iso-t
I agree... MD5 is the best way to store passwords...
you only store the md5 hash of the actual password, then when the
user logins you have to compare the stored hash with the md5 hash
of password the user uses to login!
cheers,
Valter Santos
- Original Message -
From: "Brian Clar
I don't know if this was mentioned but you can do it all in MySQL with the
password() function.
Ex:
INSERT INTO users (username,password) VALUES ('tyler',PASSWORD('testpass'));
Also:
SELECT * FROM users WHERE username='$username' AND
password=PASSWORD('testpass');
Good luck,
Tyler Longren
-
Parse error: parse error in /home/sites/site139/web/EIA/sessionstart.php on
line 10
It's strange that line number 10 doesn't exist!
Sjoerd van Oosten
Digitaal vormgever [EMAIL PROTECTED]
Datamex E-sites B.V.
http://www.esites.nl
Minervum 7368 Telefoon:
> Parse error: parse error in /home/sites/site139/web/EIA/sessionstart.php
on
> line 10
>
> It's strange that line number 10 doesn't exist!
Do you have an include statement in sessionstart.php?
--
Jon Farmer
Systems Programmer, Entanet www.enta.net
Tel 01952 428969 Mob 07763 620378
PGP Key avail
I am using an approach similar to this:
$language_file = 'english';
include 'dir/to/languages/'.$language_file.'.inc.php';
on english.inc.php
Than you just go echoing the array elements where you want the text to
appear. It does require a little bit more of typing but the languages files
There is a semi-colon missing on the session_start() line. PHP can't pin
down the exact line number of an error where the error is a missing
terminator.
Kirk
> -Original Message-
> From: Oosten, Sjoerd van [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 06, 2001 8:44 AM
> To: 'Andr
You forgot the semicolon (;) after session_start()
> > This works fine, but now i made the files sessionstart.php and bottom.php
>>
>> sessionstart.php
>> --
>> > session_start()
>> if ($SessieEIA->Login == 1)
>> {
>> ?>
>>
>>
>> bottom.php
>> -
When you perform the test you want to know if the $id is the user's
choice and if the user's choice is in the array.
Your code reads differently. You are checking to see if $id is the
user's choice OR $id is in the array. which would always check the
countries in the array.
>
It works with a "virtual phone" in the site, but I can't try sending SMS
berfore buying it (U$ 400.00). I won't buy a product before being sure it
works.
Does anyone know another method to do it?
Tnx.
"Dan McCullough" <[EMAIL PROTECTED]> wrote:
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> He
using "\n" as your replacement text will do ithowever, if you want a
newline in the html, then you'll want ...
and as far as the advanced replace, make an array of search patterns, in
this case two.
your first pattern will be "/[ ]+\n+[ ]+/" with a replacement of a single
newline...then the s
I need to have a map to a map of classes, is this possible using PHP?
For example, in C++, I can do this:
map > m_strMap;
===
Rocky Dean Pulley
Senior Technologist
CorTechs, Inc.
[EMAIL PROTECTED]
703-968-7021 x108
-- Quidquid latine dictum sit, altum videtur
===
I created a function (appears below) that crops a JPG and outputs it on the
fly. However Apache crashes when I use the function. Unfortunately, Apache
does not put an error message in the logs.
I'm running it on a Windows2000 machine with Apache 1.3.20 and PHP 4.0.6
(installed via EasyPHP 1.5.0.0
Hi everybody!
I wrote a script just to do some local replacement stuff here on my own
machine.
Is there any way to change the maximum execution time of PHP which seems to
be
restricted to 30 seconds
Would be great if you could give me a hint on how to change this...
Thanx alot,
Kiko
set_time_limit(0); // no limit
set_time_limit(60); // 60 seconds
Regards,
Andrey
- Original Message -
From: "Christoph Starkmann" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 06, 2001 7:09 PM
Subject: [PHP] Maximum execution time of 30 seconds exceeded
> Hi eve
> I wrote a script just to do some local replacement stuff here on my own
> machine.
> Is there any way to change the maximum execution time of PHP which seems
to
> be
> restricted to 30 seconds
>
> Would be great if you could give me a hint on how to change this...
http://www.php.net/manual
The timeout is set in php.ini
-Original Message-
From: Christoph Starkmann [SMTP:[EMAIL PROTECTED]]
Sent: 06 December 2001 17:09
To: [EMAIL PROTECTED]
Subject:[PHP] Maximum execution time of 30 seconds exceeded
Hi everybody!
I wrote a script just to do some local replac
Can some give me a brief synopsis or direct me to some
information on how to create an ecommerce site using
php. My main question is in the area of performing a
secure credit card transaction. Do I need to use a
third party shopping or can I create my own, if I
create my own how do I integrate i
http://www.openecho.com/php/echophp-1.4.tar.gz
I used this package, which requires cURL and for you to have setup a
merchant account.
Was really easy!
As far as SSL jsut make sure you are serving the pages in SSL (https) and
all is fine.
You can home roll your on shopping cart like I did or you
> The timeout is set in php.ini
Only change it in php.ini if you want it to be serverwide. For a specific
script use set_time_linit().
Regards
Jon
--
Jon Farmer
Systems Programmer, Entanet www.enta.net
Tel 01952 428969 Mob 07763 620378
PGP Key available, send email with subject: Send PGP Key
Could anyone tell me if there is a PHP equivalent to:
SELECT x
CASE 1 to 5
{...}
CASE ELSE
{...}
END SELECT
Muchos gracias.
Robin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PRO
switch {} will do it.
http://www.php.net/manual/en/control-structures.switch.php
>Could anyone tell me if there is a PHP equivalent to:
>
>SELECT x
> CASE 1 to 5
> {...}
> CASE ELSE
> {...}
>END SELECT
>
>Muchos gracias.
>
>Robin
>
>
>
>--
>PHP General Mailing List (http
I've set up a news database with a PHP front-end and am using MS SQL Server.
The news table is set up correctly with the pertinent field being of type
'text' which, according to documentation, should support well over 10 megs
of text data.
This is the problem: The user tries to submit a news arti
I think I'm making this harder or more confusing than it really needs to be.
I have a form that is spread out over four pages. I want to be able to give
the user the opportunity to return to page 1 from page 3, for example, by
providing a regular link on page 3 to return to page1. When they cli
switch( $x ){
case 1:
case 2:
case 3:
case 4:
case 5: {...}
break;
default: {...}
break;
}
py
At 05:38 PM 12/6/01 +, Robin McKenzie wrote:
>Could anyone tell me if there is a PHP equivalent to:
>
>SELECT x
> CASE 1 to 5
> {...}
> CASE ELSE
>
I've done something similar like this:
< a href="javascript:window.back()" >Click here to go back< /a >
In the situations in which I've used it, the form data from the previous
page is still in the form fields.
Potential downsides of this approach: the data has not yet been
processed
Session would be the easiest thing to use. You could also 'pre-store' the
info on a database and retrive it depending at what page users are visiting.
--
Julio Nobrega
Don't eat the yellow snow.
<[EMAIL PROTECTED]> wrote in message
BB6D932A42D6D211B4AC0090274EBB1DA0F14F@GLOBAL1">news:BB6D93
Hi,
I have a PHP script that uses the following code to redirect to a page of the user's
choice:
header("Location: http://www.mypage.net/";);
In examples of this type of coding in various scriots, the above line is always
followed by the statement:
exit;
I am wondering why. When executin
Ok, Im' pretty new at this, but I can't see what may be wrong here:
Table IMT
-
User (char)
SessionID (char)
StartTime(TIMESTAMP)
EndTime(TIMESTAMP)
Code on first page:
INSERT INTO IMT VALUES ('testuser', '$id', CURRENT_TIMESTAMP, '/0');
Code on second page:
UPDATE IMT SET E
More than likely not. Putting an exit statement after a header redirect
is just good practice and ensures that nothing gets executed after
redirecting.
Mike
Don wrote:
>Hi,
>
>I have a PHP script that uses the following code to redirect to a page of the user's
>choice:
>
>header("Location: h
In some browsers that is what will happen on a form, is that will process the
infromation twice.
--- "Richard S. Crawford" <[EMAIL PROTECTED]> wrote:
> I've done something similar like this:
>
> < a href="javascript:window.back()" >Click here to go back< /a >
>
> In the situations in w
my apologies.
my question is, how do i solve the problem of having the source show up in
my browser when i call a php page based on the information i provided, or
didn't provide that I should've modified in the .conf file
chris
- Original Message -
From: "The Big Roach" <[EMAIL PROTECTE
Hello All
Has anyone installed and used PHP in CGI (not ISAPI) for IIS 5? Is it
running good? I mean you got a full capability as PHP has, and there is
no serious harm to the webserver(IIS 5). I am also using ASP. I don't
know installing PHP on the system will jeopardize the ASP application
Think i figured out my problem...next time i will RTFM!!!
Sorry!
"Peter Van Der Maas" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Ok, Im' pretty new at this, but I can't see what may be wrong here:
>
> Table IMT
> -
> User (char)
> Se
On Thursday 06 December 2001 11:23 am, pong-TC wrote:
> Has anyone installed and used PHP in CGI (not ISAPI) for IIS 5? Is it
> running good? I mean you got a full capability as PHP has, and there is
> no serious harm to the webserver(IIS 5). I am also using ASP. I don't
> know installing PHP
Un-comment lines like this:
#AddType application/x-httpd-php .php
and these should be there:
AddModule mod_php4.c
LoadModule php4_modulelibexec/libphp4.so
Unless you're using the cgi.
And there might be some stuff I forgot.
--
PHP General Mailing List (http://www.php.net/)
To unsu
I had been under the impression that one could extend a class only once.
That is, if I extend class A with class B I would then not be able to
extend B again with any other class.
See: http://www.php.net/manual/en/keyword.extends.php
"An extended class is always dependent on a single base class,
hmm looks right ...are you loading thru the server or are you doing a
file://c/:doc_root/file.php ?
heres the relevant info from my httpd.conf file on windows:
ScriptAlias /php4/ "C:/php/"
Action application/x-httpd-php4 "/php4/php.exe"
AddType application/x-httpd-php4 .php
whats a url to che
> I had been under the impression that one could extend a class only once.
> That is, if I extend class A with class B I would then not be able to
> extend B again with any other class.
>
> See: http://www.php.net/manual/en/keyword.extends.php
> "An extended class is always dependent on a single
Hello,
I am trying to get session data written to a MySQL table using
set_session_save_handler(), but am getting the following error when I
issue session_register("varname") on a page:
Fatal error: Failed to initialize session module in
/Library/WebServer/Documents/VirtualHosts/www/admin/en/l
I am not very sure what your question is, but "multiple inheritance"
means that a derived class can inherit (i.e., be derived from) more
than one class.
In multiple inhericance, you can have:
A B
| |
+---+---+
|
C
Here, C is simultaneously derived from A
This is what I had thought. I wasn't sure and needed the clarification.
Thanks as always!
Matt Friedman
-Original Message-
From: Harshdeep S Jawanda [mailto:[EMAIL PROTECTED]]
Sent: Thursday December 6, 2001 1:55 PM
To: Matt Friedman
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Extendin
Hi
Suppose I have something like this :
Test1-1
Test1-2
Test1-3
Test1-4
Test1-5
Test2-1
Test2-2
Test2-3
Test2-4
Test2-5
How can I get to the data most easily?
The data are the Test1-1, Test1-2..
berber
--
I have successfully placed images (jpg,gif,png) into a MySQL database
BLOB field, now I want to be able to pull the data out and diplay it.
based on tutorial at
http://www.zdnet.com/devhead/stories/articles/0,4413,2644827,00.html
after Querying the DB I have the following lines:
$ImgFile = mysq
I cannot seem to find in the documentation the what the function mysql() is aliaseed
to using PHP4.0.6. Any ideas?
Example:
$rez=mysql($dbname,$query);
Everything works fine... But I want to be sure what is actually being used.
/dkm
I can't seem to figure out how to create a multidimensional array from
a database query. Here is an example of what I was looking for, using
NFL quarterbacks as a statistical foundation...
A record contains the following fields:
NAME, ATTEMPTS, COMPLETIONS, YARDS, TD, INT
Now I would like to be
Something like this?
while( list( $name, $attempts, $completions, $yards, $td, $int ) =
mysql_fetch_row($res) )
{
$quarterbacks[$name] = array( "ATTEMPTS" => $attempts,
"COMPLETIONS" =>
$completions,
Not sure what you are trying to do, but try using
mysql_fetch_row ()
you can use SQL to limit your results.
/dkm
- Original Message -
From: "J. Roberts" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 06, 2001 4:08 PM
Subject: [PHP] Creating multidimensional array
Are you sure that isn't a custom function in your code (assuming you're
using somebody else's code)?
It could be an alias to: mysql_db_query()
It has the same handlers, ex:
$rez=mysql_db_query($dbname,$query);
Tyler Longren
- Original Message -
From: "Dennis Moore" <[EMAIL PROTECTED]>
T
you could also do this ...
$data = mysql_fetch_assoc($res); //this is a nice function because it
returns an associative array. so
// if you change your SQL db, you
wouldn't need to change your php code
// as much.
$quarterbacks[$
second issue first:
one call to preg_replace...if you check out php.net/preg_replace, you'll see
what i mean...use arrays...
and as long as you have them ordered in the right way, it'll execute them in
that order, so by the time the \s replace comes up all your 'bbbnbb' will be
fixed...problem the
This is what I used to do what you're trying:
header("Content-Type: image/" . $imagetype); // $imagetype is jpeg or gif
header("Content-Length: " . strlen($image));
echo $image;
Note that "Type" is capitalized in "Content-Type", and include the
"Content-Length" as well.
-Steve
On Thursday, D
$result = mysql_query("select NAME,ATTEMPTS,COMPLETIONS,YARDS,TD,INT
from players where pos = 'QB'");
// or whatever it takes to get just qb's
while ($data = mysql_fetch_array($result)) {
foreach ($data as $key => $value) {
// I've noticed that $data stores numeric and text keys, this
1 - 100 of 162 matches
Mail list logo