Is it "better" to pass variables through functions or to simply declare them as global
within the function's scope?
The variables in this particular case are things like MySQL database connections and
tablenames.
Thanks,Dara
--
For the largest free email in Ireland (25MB) &
File Storage space (
Hi everybody,
Is it possible using PHP change page orientation in browser so that when
user clicks
on "Print" button page automatically rotated to "landscape" orientation.
I've heard that it is possible to do with ActiveX but due to security reason
ActiveX might be disabled.
Thanks for any help in
Sancar Saran wrote:
On Thursday 16 January 2003 09:07, Dhaval Desai wrote:
Hello ppl,
I was just wondering what is php's future with something like Asp .Net
coming up...I have read many articles by Php guys who think Asp.Net is the
future. If that's the true case...is it really worth sticking t
On Friday 17 January 2003 12:45, Edson Waite wrote:
> Hi Jason,
>
> $colname_earlytour = "1";
> if (isset($HTTP_GET_VARS['ID'])) {
> $colname_earlytour = (get_magic_quotes_gpc()) ? $HTTP_GET_VARS['ID'] :
> addslashes($HTTP_GET_VARS['ID']);
> }
> mysql_select_db($database_airforcemuseum, $airforc
Yes, the php manual is available at http://www.php.net, session
information is available at http://www.php.net/session.
Jason
On Thu, 2003-01-16 at 20:58, Lars Espelid wrote:
> Is it possible to register an array as a session variable? If so I think it
> solves my problem.
>
>
> Thanks.
>
> La
Hi Jason,
This code was inserted by DWMX when I created the record set "earlytour" So
I don't know exactly.
[EMAIL PROTECTED]
> On Friday 17 January 2003 11:25, Edson Waite wrote:
> > Hi All,
> >
> > I am trying to make an automated tour as a section of my site, using the
> > following.
> >
>
On Friday 17 January 2003 11:25, Edson Waite wrote:
> Hi All,
>
> I am trying to make an automated tour as a section of my site, using the
> following.
>
> $NewID = $colname_earlytour + 1;
> ?>
> "$NewID";?>>
>
> This works great going from early-tour?ID=1 to early-tour?ID=2 but I can't
> get it
wouldn't you use the primary key as the unique identifier?
";
echo "{$myrow['firstname']} {$myrow['lastname']}";
}
}
else
{
// show the details of a specific contact
$sql = "select * from contacts where id='{$_GET['id]}' LIMIT 1";
$result = mysql_query($sql);
php-4.3
libmcal-0.5 (i intend to use Horde's Kronolith and the README said it cannot
work with libmcal-0.6)
configure gave this error:
checking for MCAL support... yes
configure: error: Unable to locate your libmcal header files - cal_misc.h
should be in the directory you specify or in the include
Is it possible to register an array as a session variable? If so I think it
solves my problem.
Thanks.
Lars
"Lars Espelid" <[EMAIL PROTECTED]> skrev i melding
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello,
>
> I have a table in a MySQL-db. The primary-key-coloumn is a number which is
>
Hi All,
I am trying to make an automated tour as a section of my site, using the
following.
>
This works great going from early-tour?ID=1 to early-tour?ID=2 but I can't
get it to continue on to ID=3, ID=4 etc. It just keeps reloading the data
from ID=2
The data for each page is in a row identi
I don't use postfix but as far as I know it is a drop in replacement and
you should just change the entry in php.ini
look for:
; For Unix only. You may supply arguments as well (default: "sendmail
-t -i").
;sendmail_path =
Timothy Hitchens (HiTCHO)
Open Source Consulting
e-mail: [EMAIL PROTE
Hello,
I have a table in a MySQL-db. The primary-key-coloumn is a number which is
not sorted. I don't know how many records there are.
I have a while-loop in a php-page which prints a link for each record. Each
link points to the same page (iow. page reloads).
When someone click on one of these
SELECT first_name AS first FROM clients
As you can see the first_name field will now be accessable as first.
Timothy Hitchens (HiTCHO)
Open Source Consulting
e-mail: [EMAIL PROTECTED]
> -Original Message-
> From: Paul Marinas [mailto:[EMAIL PROTECTED]]
> Sent: Friday, 17 January 2003
Dose anyone know how can i do that:
- select some data form a sql db and put it in a web page. the
problem is that i whant to change the value (name) of a column that is
selected form the database and then put in a web page with the diferent
name.
Thanks, Paul
--
PHP General Mailing List (http:
ok, I try with
to then use the x and y with a javascript code like:
window.open
('win_sizer.html','Photo','toolbar=yes,status=yes,scrollbars=yes,location=ye
s,menubar=yes,directories=yes,width=x,height=y')
But in the php part, I am receiving the following error:
Warning: getimagesize: Unable
php can help, but remember, PHP only outputs HTML code to the browser... it
can't actually resize the window, because that's a client-side thing like
javascript.
but you can find out the x and y of an image with
http://www.php.net/manual/en/function.getimagesize.php
Then use this information in a
look at mysql's DATE_FORMAT() Let mysql do it for you, instead of PHP
- Original Message -
From: Stephen
To: PHP List
Sent: Thursday, January 16, 2003 7:16 PM
Subject: [PHP] Display Dates in English o_O
I have a PHP driven site that as a time schedule. Since the site isn't exactly fille
start with http://php.net/strtotime and http://php.net/date
OR
For the 24hr time to 12hr time conversion, something like:
= 12) { $suffix = 'pm'; } else { $suffix = 'am'; }
if($h > 12) { $h = $h - 12; }
echo "{$h}:{$m}{$suffix}";
?>
Untested code of course, but it should do the job, and wou
what should i do if i want to use PostFix in the php, but not SendMail?
thx very much
HPS
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This wouldn't really be done in PHP. This is a Javascript element, as
it requires work to be done on the client side. You could easily make a
combination of PHP and Javascript to do this with any set of images
though.
Wes
On Thursday, January 16, 2003, at 08:37 PM, Ezequiel Sapoznik wrote:
This can be achieved by using image features of php to get the size then
rewrite
your html or use JavaScript to do the same.
Timothy Hitchens (HiTCHO)
Open Source Consulting
e-mail: [EMAIL PROTECTED]
> -Original Message-
> From: Ezequiel Sapoznik [mailto:[EMAIL PROTECTED]]
> Sent: Frida
Hi!
Is there anyway in php to fit the window to the size of an image?
Thanks!
Ezequiel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have a PHP driven site that as a time schedule. Since the
site isn't exactly filled with very intellagent people who just LOVE to
translate times and dates from a weird format (Such as the format used in
MySQL), I'd like to take these from a MySQL table (the table's types are DATE
and TIME
Hello -
I just read an interesting article in The Perl Journal (TPJ) about using
AUTOLOAD as a layer of abstraction for accessing database columns and I
would like to write something similar in PHP. Is this possible?
I have written a number of PHP/MySQL applications, but do not consider
myself a
> Which part of $_ is the REQUEST_URI be found from?
It's a web server predefined variable so only lives
in $_SERVER.
http://www.php.net/variables.predefined
Regards,
Philip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Check out the 'max lifetime' session settings in the sessions part of
php.ini
Justin
on 17/01/03 7:11 AM, Pushpinder Singh Garcha ([EMAIL PROTECTED]) wrote:
> Hello Everyone:
>
> I am using Sessions to secure parts of my website. I need to know if
> there is a way to set a lifetime for these s
on 17/01/03 5:44 AM, Peter Hutnick ([EMAIL PROTECTED]) wrote:
> Because short tags are evil ;-) My provider has short tags enabled, so
> there is no getting around this bit of ugliness.
Can you set the php.ini value to disallow short tags locally via a .htaccess
file??
Justin
--
PHP General
I wrote a simple test script which increments a sessions counter, as per the
manual. That way they couldn't complain about having to debug mountains of
code, etc etc.
Intead of the usual 1,2,3,4,5...50 it was more like
1,2,3,0,4,5,1,6,7,2,8,9,3
I emailed them, and they've switched the sessions o
Al,
Something like the following should enable you to display a list of
whatever, then click on the record id to edit the record. This is a portion
of code which does the display, you'll need another portion to display the
record for editing.
Hugh
snip from street.php
Click on an ID number to ed
Hey,
I'm trying to get package-stats-graph.php to work (got it off of pear
cvs), but no matter what date I insert in my downloads table (mysql),
it all ends up in one bar on the graph.
Here's my two relevant tables:
#
# Table structure for table `downloads`
#
CREATE TABLE downloads (
download
Hi!
Which part of $_ is the REQUEST_URI be found from?
I did the print_r on GLOBALS and found that it is part of $_GET. I'm
sure it will work on $_POST also. So, it meant it shoudl work on
$_REQUEST["REQUEST_URI"] also Can this also be part of
$_SERVER["."]???
Thanks for y
This may be a bit more than you are looking for.
http://sourceforge.net/projects/phpmyedit/
Mike Tuller wrote:
I have been looking for an example of how to create a listing of items
in a table where you have the first item in the list have a link so that
when you click on it, it will open a
personally, I would ditch the Error class and put raise_error in Base.
=C=
*
* Cal Evans
* Stay plugged into your audience.
* http://www.christianperformer.com
*
-Original Message-
From: Jordan Elver [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 16, 2003 3:52 PM
To: [EMAIL PROTECTE
Hi guys,
After your previous advice. I have been looking at some more OOP for my
application. Is this the sort of way a proper OOP application should be
constructed?
I want to use smarty as my template language as well, how could I integrate
that?
";
// get connections details
yea, mine is all array based. I pull the data from a FoxPro table via XML
(and jump through several hoops.) Then I have a main loop that spins
through the data (which is ordered) and
* creates a new PO if the PO number has changes (PO Object)
* Create a PoLineItem for each line in the PO (POLine
Cal,
You used php for this? I am pretty sure that an 850 is on our list of
things to do somewhere.
Eddie
-Original Message-
From: Cal Evans [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 16, 2003 4:22 PM
To: Edward Peloke; Php-General@Lists. Php. Net
Subject: RE: [PHP] x12 837
I'v
My company currently uses a tool that we wrote to do things like this
although we are looking for other options now to create the 837 claim so I
was thinking of attempting to create one using php. The end result is just
a text file but it has tons of logic and loops when processing the data.
Eddi
I've created an 850 and a base class x12. It's not terribly hard. I did not
find much in the way of useful classes already built though.
=C=
*
* Cal Evans
* Stay plugged into your audience.
* http://www.christianperformer.com
*
-Original Message-
From: Edward Peloke [mailto:[EMAIL PROTE
I apologize, an 837 is a 'Professional Health Care Claim'. Basically what
the healthcare organizations use to submit to the state to get money. It
pulls in all sorts of data and generates a claim that is then submitted to
the state.
Eddie
-Original Message-
From: Marco Tabini [mailto:
:)))
Paul Marinas
Technical Support
RDS Craiova
Phone: +402-51-410-194
Mobile: +407-22-451-439
Fax:+402-51-416-579
www.rdsnet.ro
.
Privileged/Confidential Information may be contained in this message. If you
are not the addressee indicate
On Thu, 2003-01-16 at 16:10, Rodney Green wrote:
> Just curious. What is an 837?
I'm curious, too... what is it?
Not a good start, if you were hoping to get an answer eh? :-)))
Marco
--
php|architect - The Monthly Magazine for PHP Professionals
Come check us out on the web at h
: Ok, I know this is a longshot but does anyone on this list work in
the
: healthcare industry and have created an 837 with php? I am thinking
of
: attempting to create one in php and didn't want to reinvent the
wheel.
Just curious. What is an 837?
--
PHP General Mailing List (http://www.php
Ok, I know this is a longshot but does anyone on this list work in the
healthcare industry and have created an 837 with php? I am thinking of
attempting to create one in php and didn't want to reinvent the wheel.
Thanks,
Eddie
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, v
At 5:04 PM + 1/16/03, Miguel Br·s wrote:
Hi,
i made a page to display some user details and then clicking on the user
name it goes to another page to send a mail via mail() function.
here is the line of the first page
name;
?>
when click on user name, it goes to the mail_active.php?[EMAIL P
Hello Everyone:
I am using Sessions to secure parts of my website. I need to know if
there is a way to set a lifetime for these sessions , so that they are
automatically destroyed when say the user is inactive for 30 minutes.
Any help will be greatly appreciated. Thanks in advance
Pushpinder S
Anyone have some good examples of using PDF forms and parsing the form
using PHP? I've done some searching (ala google and manual) but all they
seem to mention is parsing a .fdf file. Seemingly when you use a PDF form
and set the action to a php script a file is still generated on the client
mach
Oh never mind. I found a work around to it. I can use the passthru
command. Like this...
--clip--
passthru("rm -f /tmp/sess_*")
--clip--
"Scott Fletcher" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> session_destroy() do work when I logged out of the w
This should work as long as you are only including your include files from
scripts named index.php.
--Jacob
"Philippe Saladin" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > directly. My main question is if all of the code inside an included PHP
> file
> >
IP address is not an effective solution. Anyone can use a 2nd browser on
the same machine. Also, if for a company with 1000 machine behind the
firewall, they all get one and the same IP address outside the firewall.
"Kevin Stone" <[EMAIL PROTECTED]> wrote in message
00a701c2bcdd$316349a0$6601a8
session_destroy() do work when I logged out of the website. But if I'm
logged in and open a 2nd browser and try to log in. This where the script I
use to detect exisitng session and destroy it before generating a new one.
Problem is that session_destroy does not work on the 2nd browser...
So, my
Give about 1 MILLION sets of 1 to ~20 integers such as:
(15, 42, 57, 314, 1024)
I need to be able to compare any two sets and determine if any of their
elements are within, say, 20 of each other.
Example:
(10, 100, 1000) CLOSETO (50, 150, 1050) ==> FALSE
(10, 100, 1000) CLOSETO (15, 150, 1050)
I have been looking for an example of how to create a listing of items
in a table where you have the first item in the list have a link so
that when you click on it, it will open a page for editing the contents
of that item. So for instance you have a list of employees, and you
want to change t
>
> Header("Content-type: image/jpeg");
> $im = ImageCreateFromJpeg('1234_1.jpg');
> ImageJpeg($im);?>
>
> The file is in the folder, it has execute and write
> permissions set, and the error given is "The image
> cannot be displayed, because it contains errors.",
> which is not very useful.
On Wed, 15 Jan 2003, Kevin Stone wrote:
> Chris I appreciate your response but please read my post again. I did not
> suggest using the IP for user identification. I suggested using it as a
> temporary id. I went on further to suggest to use sessions to identify
> individual users behind a proxy
Hi,
I've seen this bounced around on the archives a bit,
but none of the advice on there is working for me.
I'm trying to do something very simple:
The file is in the folder, it has execute and write
permissions set, and the error given is "The image
cannot be displayed, because it contains
Hello Everyone,
I've attempted this many times, but have failed to understand it each time.
I want to make it easier for myself to deal with passing variables through a
form. So I thought, why not use a single array variable to do that. If I do
such a thing, what steps do I need to take to ensure
The first problem I cannot solve on my own:
I get the mail content from a cookie. Quite a big cookie since it is a
collection of 30 - 40 form values from another page. When recieving the
mail, the content come in ONE long string, and in some places with a \.
Of course, i dont want this to be printe
Leon Mergen said:
> Now, first of all, why did you this:
>
> "); ?>
>
> and not just:
>
>
Because short tags are evil ;-) My provider has short tags enabled, so
there is no getting around this bit of ugliness.
> only that I personally prefer to call a print() statement for
> everything
Do you
I realize that Zend produces a PHP development studio, but I'm looking for
something that helps the programmer use PHP (along with Javascript, CSS,
"web GUI" languages, etc.) to develop enterprise web _applications_ (like
for production data entry). I'd also like this studio to make available a
se
"Peter Hutnick" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm soliciting comments on style, technique, etc. Be brutal, but don't
> get your feelings hurt if I don't take your comments as gospel.
> References will help me take comments to heart.
Heck, I d
Hi,
If you have a URL like:
http://www.whatever.com/page.php?[EMAIL PROTECTED]
Then in your script $email will already be set to "[EMAIL PROTECTED]".
This depends on register_globals being on, if I remember correctly, and
you'll want to be aware of the order for variable assignment (for POST,
GE
Here we go again.
I installed Apache and it works fine, I then installed PHP and all tests
show it works fine - but when I try to get the PHP modules loaded for Apache
in httpd.conf, the Apache server won't start again. The only error I get is
a Windows error box that says "The requested operation
I don't know how do you get this answer, but try this:
name;
?>
Rafael Rodrigo
> Hi,
>
> i made a page to display some user details and then clicking on the user
> name it goes to another page to send a mail via mail() function.
>
> here is the line of the first page
> color="#808080">name;
> ?>
Thanks John,
> Inheriting would probably be the most modular.
I thought this would be the way to go. Ill need to read up on this.
> > I haven't found any clear examples of this kind of OOP, only the real
> > basics
> > (which I still need help with by the way :) ).
>
> Use google. Do some more s
Thanks Greg,
I know a bit of PHP but the OOP is a bit harder to understand I think :)
I'll check out the PEAR classes.
Cheers,
Jordan
On Thursday 16 Jan 2003 12:25 am, Greg Beaver wrote:
> Hi Jordan,
>
> If you are doing this to learn PHP, that is great, keep plugging. If you
> want to see worki
Thanks for all your help with my URL code problem!
I have come up with a solution that seems to half work and I can't
figure out what I need to do to get it fully functional. Given my
data string (text) from my database, this is what I do to replace the
URL text with a functioning link. I am ask
On Friday 17 January 2003 01:37, Marc Cluet wrote:
> Hi guys
> I have upgraded from PHP 4.2.2 to PHP 4.3.0 and some of my php script
> got broken due to that.
> This scripts use backticks to execute functions, the problem is the
> environment where that functions are executed.
>
> I have this test
I think your problem is with the tag
<--
header
Also I'm not sure but the
might cause problems too
Try the if statement at the top of the document.
One more thing. I think that you can't add header info after , but I'm
not sure about this.
What I usually use for redirection is something like
Hi!
>From manual (http://www.php.net/manual/en/function.header.php):
Remember that header() must be called before any actual output is sent,
either by normal HTML tags, blank linek in a file, or from PHP.
You need to start with header()...
Example:
http://www.example.com/');
?>
or you can use o
You cannot have ANY output b4 sending a header unless you are buffering your
output. In your example you are sending HTML before your redirect - the
redirect has to happen before you do any kind of HTML or any characters that
would get output to the browser.
On 1/16/03 12:40 PM, "Denis L. Menezes
I'm running PHP 4.3 and W2k with IIS 5.0. I have enabled php_gd and it does
show up when I do a phpinfo. The php_gd.dll is in the winnt/system32
directory (I've also tried it in almost every other directory too) and I get
these error messages:
Cannot add header information - headers already sent
I ahve tried everything jason. It says that there should be no output before
the header().
I cannot still find the error. Can you please help in locating the error?
thanks
Denis
- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 17, 2
Hi guys
I have upgraded from PHP 4.2.2 to PHP 4.3.0 and some of my php script
got broken due to that.
This scripts use backticks to execute functions, the problem is the
environment where that functions are executed.
I have this test code:
$dir=`pwd`;
echo "I am on directory: $dir";
?>
If I ex
You must remember that Images are embedded in HTML using the tag. Each
image displayed on a Webpage is a result of a seperate HTTP request to the
server; i.e. a PHP call in this case. Unless you are cache the SQL result,
at least one query is needed per image.
Regards,
Daniel Kushner
With regards to Marek,
I don't see how there would be two queries, because there row conisists of
image properties and image data. So when i select the required row(s), I
will have properties and images. So it will be 1 query, of course it is a
big (size-wise) query.
With regards to Jason,
Your ap
On Friday 17 January 2003 01:07, Denis L. Menezes wrote:
> I tried. But I get an error as follows :
>
> Warning: Cannot add header information - headers already sent by (output
Try searching the archives on the above error.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Sof
I tried. But I get an error as follows :
Warning: Cannot add header information - headers already sent by (output
started at /usr/local/www/virtual2/66/175/19/84/html/maintenance.php:11) in
/usr/local/www/virtual2/66/175/19/84/html/maintenance.php on line 30
My code is as follows:
Untitled Do
Hi,
i made a page to display some user details and then clicking on the user
name it goes to another page to send a mail via mail() function.
here is the line of the first page
name;
?>
when click on user name, it goes to the mail_active.php?[EMAIL PROTECTED]
on the mail_active.php page, how do
thx for the replies
Miguel
"Maxim Maletsky" <[EMAIL PROTECTED]> escreveu na mensagem
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
mail() function @ http://php.net/mail
--
Maxim Maletsky
[EMAIL PROTECTED]
"Miguel Brás" <[EMAIL PROTECTED]> wrote... :
> Hi gents,
>
> i have a script to manage
Well, here's your chance to criticize a newbie.
As an exercise in learning PHP I have written a rot-13 script. It is at
http://hutnick.com/rot13/index.html?show_content=1 .
I'm soliciting comments on style, technique, etc. Be brutal, but don't
get your feelings hurt if I don't take your comment
--- "Denis L. Menezes" <[EMAIL PROTECTED]> wrote:
> I want ot redirect users to another page after successful
> login. Can someone please help me with the PHP code for
> redirecting?
You have many options:
1. After a successful login, display the proper page to the
user instead of redirecting. Th
"Chris Shiflett" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> --- Cesar Aracena <[EMAIL PROTECTED]> wrote:
> > When I make a form in a web site for a visitor to
> > send me some comments, I use nl2br() to put things
> > like line breaks and see what the visit
php.net/header
check out the examples
Andrew
- Original Message -
From: "Denis L. Menezes" <[EMAIL PROTECTED]>
To: "PHP general list" <[EMAIL PROTECTED]>
Sent: Thursday, January 16, 2003 4:21 PM
Subject: [PHP] Redirecting
Hello friends.
I want ot redirect users to another page after suc
> directly. My main question is if all of the code inside an included PHP
file
> is put inside one or more functions this should prevent anyone from
running
> any of that code by directly calling that PHP file correct? There is no
way
> for them to invoke a function just from a URL assuming I have
Hello friends.
I want ot redirect users to another page after successful login. Can someone please
help me with the PHP code for redirecting? Or point me to some help page?
thanks
denis
$_SERVER['SERVER_ADDR'] gives the address of the server running the php
script
$_SERVER['REMOTE_ADDR'] gives the client address or the proxy address. (be
careful here, storing a proxy's IP is next to useless)
$_SERVER[' HTTP_X_FORWARDED_FOR'] gives the client address if they're behind
a proxy (if t
Someone else might be, you just happened to request a page from the same
server process
Justin French wrote:
on 16/01/03 11:59 PM, Marek Kilimajer ([EMAIL PROTECTED]) wrote:
If the server crashes, it is definetly NOT fault of your scripts, the
server/php should return errors when there is so
--- Cesar Aracena <[EMAIL PROTECTED]> wrote:
> When I make a form in a web site for a visitor to
> send me some comments, I use nl2br() to put things
> like line breaks and see what the visitor wants me
> to see.
>
> But what happens if I have a web form to input some
> text into a TEXT cell in My
> > system("mysql -uroot -p < the_dump_file.sql")
> > it doesn't know where the command ends and the input
> > begins. So what's going on is that the command thinks
> > that the password is coming from the "the_dump_file.sql".
> It knows exactly where the command ends and the input
> begins. It is
Check the cookies you have stored in your browser. I once had similar
problem, when I had 2 cookies of the same name set, but different in
path, one had "/directory" the other one "/directory/"
Justin French wrote:
on 17/01/03 1:24 AM, 1LT John W. Holmes ([EMAIL PROTECTED]) wrote:
Is there
Hello,
I want to build an object oriented application and i don't know how to do
it. Should i store everything in class instances and let those object
communicate with each other? I think that would be the real OOP.
I need some articles, tutorials or just people with experience in building
OO-appl
Hi all,
When I make a form in a web site for a visitor to send me some comments,
I use nl2br() to put things like line breaks and see what the visitor
wants me to see.
But what happens if I have a web form to input some text into a TEXT
cell in MySQL and want to retrieve it like I wrote it? Shoul
--- Chris Boget <[EMAIL PROTECTED]> wrote:
> system("mysql -uroot -p < the_dump_file.sql")
>
> it doesn't know where the command ends and the input
> begins. So what's going on is that the command thinks
> that the password is coming from the "the_dump_file.sql".
It knows exactly where the comma
This is infact not the case, using the < operator does not make the mysqldump
program read that file and interpret the data in the file as the password, if you have
a proper password set and use the -p option (even with a < operator) it will still ask
you for a password.
On Thu, 2003-01-1
on 16/01/03 11:59 PM, Marek Kilimajer ([EMAIL PROTECTED]) wrote:
> If the server crashes, it is definetly NOT fault of your scripts, the
> server/php should return errors when there is something wrong, not
> crash. Remember that on multithreaded server you are taking other
> requests down too. The
on 17/01/03 1:24 AM, 1LT John W. Holmes ([EMAIL PROTECTED]) wrote:
> Is there any kind of load balancing on your server?
It's a single server, so to the best of my knowledge, no.
> If you watch the session
> files in /tmp, are they getting erased?
No, because they reappear and page or two late
> -Original Message-
> From: Mako Shark [mailto:[EMAIL PROTECTED]]
> Sent: 16 January 2003 15:26
> To: [EMAIL PROTECTED]
> Subject: [PHP] No constants being set. HUH?
>
>
> I just JUST installed PHP onto a new server (my
> first--kinda scary, new foray) and my pre-defined
> constants (HTT
--- [EMAIL PROTECTED] wrote:
> no, i use mysqldump -uroot -p > my_dump_file.sql
> it is not '<' but '>'
That syntax is fine, and it should prompt you for a
password.
My suggestion is to give the root account a password and
don't worry about all of this. I think I read that it is
currently empty,
> But why it is ok when i use system("mysqldump -uroot -p >my_dump_file.sql")?
As alluded to by the last user (who got the command wrong), when you
do:
system("mysql -uroot -p < the_dump_file.sql")
it doesn't know where the command ends and the input begins. So what's
going on is that the comm
1 - 100 of 147 matches
Mail list logo