On Wed, 22 May 2002, Stephen Tredrea wrote:
> I'm trying to put together an architecture for a web environment and
> have a newbie question regarding PHP and application servers...
>
> I have decided to use Apache and MySQL running on Linux, using PHP for
> server side scripting. Were does an ap
Jimmy,
You could md5 something and send it encrypted and then verify the md5,
something similar to sharing keys...md5 is similar to a key...i use it
as something similar to kerberos...
And yes, MD5 is a one-way hash...which comes in handy...
Just remember that bigger is almost always better. I
Title: Message
I'm trying to put
together an architecture for a web environment and have a newbie question
regarding PHP and application servers...
I have decided to
use Apache and MySQL running on Linux, using PHP for server side scripting. Were
does an application server fit into this an
Yes Jimmy, you are correct. MD5 is a one-way hash. Its used for
getting a unique fingerprint of some data (like files / passwords
etc) so that it can be compared with another MD5 hash.
Thats the point of a hashing algorithm like MD5 and SHA1 - you
should never need to decrypt the data.
Refe
What i have at the other end is a Instant Messenger client :)
Cant have the script running till the time the user logs out can
i? And also, different activities are triggered on the server
asynchronously (presence status, instant messages, notifications)
which has to be sent to the client.
T
Thanx for the suggestions!
Someone mentioned that I could use MD5 and then encrypt the hash,
how would I ever decrypt that? Is'nt MD5 a 1-way thing only?
Another question?
Should I go for bigger keylength or bigger blocksize or both? What makes
for the best encryption?
/ Jim
(and before someon
At 5:55 AM + 22/5/02, Vinod Panicker wrote:
>I want the ability to write to a socket thats been created earlier
>- i want to steal it from Apache, so that i can use it when and
>where i like.
Why not just keep your script running and have it send more data
to the browser whenever it becomes
Thanks for the reply Miguel, but here i'm not trying to implement
my own multi-threaded server - exactly the reason why i'm using
Apache / PHP.
I could have made a listening server which is based on a
multi-threaded or multi-forked model, but the time and
complexities involved would be huge.
Ah, yes - http://php.net/pcntl_fork
Well there you go, then - everything required to create a server in PHP.
miguel
On Tue, 21 May 2002, Evan Nemerson wrote:
> 1st thing: sorry about the double-post. i don't know why that happened. If
> this one gets double posted too, i apologize in advance.
1st thing: sorry about the double-post. i don't know why that happened. If
this one gets double posted too, i apologize in advance.
2nd: php.net/pcntl
On Tuesday 21 May 2002 23:30 pm, Miguel Cruz wrote:
> I don't think you're going to get Apache to hand you the socket.
>
> However, you can wr
I don't think you're going to get Apache to hand you the socket.
However, you can write a program using the standalone (CGI) PHP
interpreter that will act like a server - check out
http://php.net/socket_create_listen for more info.
You could redirect from your standard web server to your liste
Vinod,
Interesting...
Okay unless I'm mistaken, what you want to do can't be accomplished through
PHP. However, you may want to take a look at libnet.
http://www.packetfactory.net/Projects/Libnet/
I've always wanted someone to create a PHP interface for this- unfortunatly my
C isn't quite th
Hi,
It still seems like I havent made the problem clear enough.
I am aware of the print(), echo() and flush() functions and what
they do. It does not fit in as a solution. Let me explain my
problem more elaborately -
The client calls a PHP script, script_a.php on the Apache web
server, usin
On Wed, 22 May 2002, Sqlcoders.com Programming Dept wrote:
> When you include information from an include file, PHP treats the text as
> inline code if you use the include() function.
>
> In other words, if you use code like this:
> include 'file.php';
> ?>
>
> Then any functions inside file.ph
$ make install
/usr/local/php4/build/shtool install -c -m 0755 php /usr/local/bin/php-cgi
cp: cannot stat `php': No such file or directory
make: *** [install-sapi] Error 1
Any ideas? Configured with mcrypt, mhash, sockets, and ftp. Everything before
this works perfect.
Thanks in advance,
Eva
On Wed, 22 May 2002 00:48:24 -0300
"Rodrigo" <[EMAIL PROTECTED]> wrote:
> Hi guys I_m trying to use a function on na .inc file, how should I do?
>
> How should I write the function and what should I write on the file so
> that the function file is _Included_ to be used on a function call on
> t
Hi there!,
When you include information from an include file, PHP treats the text as
inline code if you use the include() function.
In other words, if you use code like this:
Then any functions inside file.php will be available just as if you'd
copy/pasted them in.
If file.php contained:
funct
On Wed, 22 May 2002 12:59, Martin Towell did align ASCII characters thusly:
> putenv() and getenv() if it's for just one page
Ok, that'll do it for one page, thanks. I was thinking of something for an
entire site, any other ideas?
This is running on (RH) Linux BTW.
Cheers,
Brad
--
PHP Genera
write the function as normal in na.inc and then on the page that u want to
use that function type include(path_to_na.inc);
-Original Message-
From: Rodrigo [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 22 May 2002 1:48 PM
To: 'Php Lista'
Subject: [PHP] Function
Hi guys Im trying to use a
Hi guys Im trying to use a function on na .inc file, how should I do?
How should I write the function and what should I write on the file so
that the function file is Included to be used on a function call on
the php file?
I appreciate any kind of sample code.
Thanx,
Rodrigo de Oliveira C
On Wednesday 22 May 2002 07:02, Jas wrote:
> Ok here is my error message:
> Warning: Unable to open '' for reading: No such file or directory in
> upload_done.php on line 9
>
> I have checked permissions on the folder and they are correct, my only
> guess is that upon doing several checks, session
What's the best way to alter the path that PHP looks in for exec(), system(),
passthru(), etc. commands. IOW, how do I add /usr/local/ to the $PATH
variable for the user (nobody in my case) that the webserver runs as.
This question may be OT.
Thanks in advance,
Brad
--
PHP General Mailin
the below code should work, although, you've posted pseudo code, so i can't
check it for any errors.
if you don't print anything to the screen (including error messages, white
space, etc), header() will work.
be aware that any implementation of javascript will be limited to clients
that have jav
HTTP_SESSION_VARS has no scope within a function. Make it global
first...
function currentlogin()
{
global $HTTP_SESSION_VARS;
echo $HTTP_SESSION_VARS['name'];
return;
}
---John Holmes...
> -Original Message-
> From: Tim Greenleaf [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 2
I am having a problem getting a session variable in the function
(currentlogin) below. I can process the script and in the else statement
"print ($HTTP_SESSION_VARS['name']);" the session variable is printed but
when the function tries to print the session variable, I get an error
indicating an u
Is there any reason I can't just use a JavaScript redirect from a PHP login
handling script since I can't seem to get the header("Location: URL");
function to work? Any security concerns or anything else? As far as I can
tell, all calls to header fail as soon as I attain variables based on a POS
Ok that didn't work, so far if I select a file other than a .jpg it returns
me an error which is what I need to happen, however if I select an image
with a .jpg extension for upload it tells me the upload was successful but
when I check the directory there is never anything there. Any other ideas
Take a look at move_uploaded_file()
http://www.php.net/manual/en/function.move-uploaded-file.php
Jas wrote:
>Ok here is my error message:
>Warning: Unable to open '' for reading: No such file or directory in
>upload_done.php on line 9
>
>I have checked permissions on the folder and they are corr
I was about to start putting together some code for a text editor.
One of its requirements is that the files that it creates, must be able
to be used in utf-8 char. encoded page.
Then I started to wonder if php's fwrite() is character set aware.
I did some preliminary searching, but I didn't come
I'm not subscribed to the list because I'm not a "real" PHP user or
developer (yet!), but I found this newsgroup on php.net and it allowed me to
post anyway. I'm just trying to see whether I can help track down a problem.
If anyone has any suggestions, could you please cc me on a response?
Thanks
Ok here is my error message:
Warning: Unable to open '' for reading: No such file or directory in
upload_done.php on line 9
I have checked permissions on the folder and they are correct, my only guess
is that upon doing several checks, session vars, etc... it is loosing the
file name somewhere.
A
-Original Message-
How can I reverse the date coming out of mySQL?
ie 2002-05-21
becomes 21-05-2002
Can do it in the mySQL query or do I need to use PHP?
-Original Message-
Have a look at your favourite mysql manual for DATE_FORMAT - this will
let you do what you need.
CYA,
> When an array is 'used' with something like do while I can't
> re-access it later in the page.
Arrays have a pointer that steps through the array as you 'use' it.
Once you reach the end you'll have to reset that pointer before you can
step through the array again. See the manual section on
I just thought that members of this list following this thread might
like to know the results of my experimenting with this technique:
All tests on Linux (testing on Windows 98 tomorrow):
* Mozilla 0.9.9 worked perfectly.
* Netscape 4.78 appeared to work but downloaded file was v
I've an array $layer in php, I pass this to javascript, JS can then
add/remove elements and I get it back in php. I do this using:
layerDesStr = ''; // php to JS
// JS to php
for(var i = 1; i < layer.length; i++) {
goURL = goURL + "&layer[]=" + layer[i];
}
document.location.href
Hi there!,
I've been testing some code for a company and I'm encountering something
which I've never found before,
right after making a call to a simple DB abstraction class which basically
just makes a call to odbc_connect, then odbc_do, and then loops through the
data saving the value of any fie
For your specific problem, I think Mr. Lemos has provided a viable
solution (using print() or echo() and flush() whenever you need to,
instead of grabbing the socket and write() to it). My problem however is
how you envision solving the communication the other way around (i.e.
when the CLIENT
And yes...md5 is a message digest hashing utility for "compact digital
signatures for an arbitrarily long stream of binary data."
MD5 website...
Thanks,
Ray Hunter
-Original Message-
From: Sqlcoders.com Programming Dept [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 12:47
It is a one way hash that many people use for simple
encryption...however, it should not be used for encrypting sensitive
information...some people have used it for encrypting data contained in
files...
For example do a md5 hash then encrypt the hash
Thanks,
Ray Hunter
-Original Mess
I imagine he would want to un-encrypt his files at some point and MD5 is a
one-way method and not an encryption technique at all...
---John Holmes...
- Original Message -
From: "Javier" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 21, 2002 4:43 PM
Subject: [PHP] Re: Mcr
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I missed the part that talked about encrypting files. I thought it was
just for a password.
Sorry.
Thalis A. Kalfigopoulos wrote:
| On Tue, 21 May 2002, Ray Hunter wrote:
|
|
|>MD5 is not that secure compared to blowfish or twofish or the other
|>t
>
> What about MD5?
>
MD5 is a message digest I believe,
something akin to the oldstyle CRC32.
Then again I haven't used it much (just to verify a client's credit card
number without revealing the CC number).
HTH,
Dw.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: h
hiya,
there's not that much you can do directly (i.e.: without some activeX
controls which the client has to accept and then only work on IE),
you can print a document in JavaScript with window.print();
Something like this would work if you wanted to print the document on
screen:
(in the body tag
On Tue, 21 May 2002, Ray Hunter wrote:
> MD5 is not that secure compared to blowfish or twofish or the other
> types of encryption available with mcrypt...
>
> Thanks,
>
> Ray Hunter
How does MD5 relate to encrypting the file? It's just used as a hash function.
--thalis
>
>
>
> -Origi
MD5 is not that secure compared to blowfish or twofish or the other
types of encryption available with mcrypt...
Thanks,
Ray Hunter
-Original Message-
From: Javier [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 21, 2002 2:43 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Mcrypt: Blowfish
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
What about MD5?
Jimmy Lantz wrote:
| Hi,
| started playing with Mcrypt and just wanted to ask which encryption
| method makes the stronger encryption?
| (I can supply the necesary keylength).
| Should I go for MCRYPT_BLOWFISH or MCRYPT_TWOFISH? Or no
I'm in charge of setting up a web site/community for a non-profit group. We
are looking for a few key features: weblog, forums, a calendar, possibly
web-mail (not all of these need to be offered in the same package, of
course). Other features may be added as time goes on. To start with, I'm
fo
On Tue, 2002-05-21 at 21:02, Billy S Halsey wrote:
> Here's the shell of a script I wrote a while back to do exactly what you
> want:
Thanks, Billy! That's really helpful. I'm curious as to the significance
of the number 12399. Is this just a random number used as a separator,
or does it indicat
>From what it looks like, R, this code:
if (substr($text, -1) == ".")
{$test = substr($text, 0, -1);}
checks to see if there is a period at the end of text. If there is, it
simply assigns $test to be $text without the '.' .
I'm rather new at this, so if someone has a counterclaim to what this mi
I wish they had noted this in the PHP manual. Does anyone know of a way to
manipulate the client computer's printer orientation?
J. Wharton
"1lt John W. Holmes" <[EMAIL PROTECTED]> wrote in message
006101c20101$6c3ae7b0$2f7e3393@TB447CCO3">news:006101c20101$6c3ae
On Tue, 21 May 2002 20:57:46 +0100, 1lt John W. Holmes wrote:
> Use PHP to write a META-REFRESH to the file that's going to be downloaded,
> or a php file that controls the download. Basically, you show them an HTML
> page that says the download will begin, the META tag refreshes after X
> second
On 21 May 2002 at 20:37, D. D. Brierton wrote:
> The result I'm looking for is like the CGI script at netscape for
> downloading NS6 - it takes you to a page which says aomething like
> "The download should start automatically" and then the download
> begins. I'm having trouble figuring out how to
Hi,
Here's the shell of a script I wrote a while back to do exactly what you
want:
Note the format of the "Boundary" headers, especially the dashes.
/bsh/
--
/-=[ BILLY S HALSEY ]=--\
| Member of Technical Staff, Sun Microsystems, Inc. ESP Sol
(cross-posted to php.dev)
Hi - I don't know whether I'm looking in the right place for information,
but I figured it couldn't hurt. We have our website hosted at a place that
uses PHP. We have several forms that users submit information to us with.
Just lately the email that we receive is complet
Use PHP to write a META-REFRESH to the file that's going to be downloaded,
or a php file that controls the download. Basically, you show them an HTML
page that says the download will begin, the META tag refreshes after X
seconds to the actual file, and the download box pops up.
---John Holmes...
"D. D. Brierton" wrote:
>
> The result I'm looking for is like the CGI script at netscape for downloading
> NS6 - it takes you to a page which says aomething like "The download should
> start automatically" and then the download begins. I'm having trouble figuring
> out how to do this in PHP - I
Restart your web server when you make changes to php.ini.
Also, note that these functions are for the printer on the server, i.e.
where the code is running.
---John Holmes...
- Original Message -
From: "Sqlcoders.com Programming Dept" <[EMAIL PROTECTED]>
To: "php general" <[EMAIL PROTEC
The result I'm looking for is like the CGI script at netscape for downloading
NS6 - it takes you to a page which says aomething like "The download should
start automatically" and then the download begins. I'm having trouble figuring
out how to do this in PHP - I suspect through ignorance of the ap
I am in a shared hosting environment. Here's the info I grab from
phpinfo():
SunOS admin 5.7 Generic_106541-16 sun4u sparc SUNW,UltraAX-MP
sendmail_path: /usr/lib/sendmail -t
SMTP: localhost
I don't yet know what the "-t" flag means on the Sendmail path. Also, I
included the SMTP value but I a
Hiya!,
Have you tried adding this line in the very top of your script (just inside
the opening
To: <[EMAIL PROTECTED]>
Sent: May 21 2002 11:19 AM
Subject: [PHP] printer_open
> I'm attempting to use the printer_open function in php, and am getting the
> following error:
>
> Fatal error: Call to
I'm attempting to use the printer_open function in php, and am getting the
following error:
Fatal error: Call to undefined function: printer_open() in c:\program
files\apache group\apache\htdocs\new\aview.php on line 209
I've tried commenting and uncommenting the extension=php_printer.dll
line i
What platform and MTA are you using? Your MTA may be trying to handle the
message while-u-wait rather than queuing it properly.
miguel
On Tue, 21 May 2002, Wesley Furgiuele wrote:
> Adding a mail() step to my page increases the page load time from an average
> of about 2 seconds to nearly 8 se
Adding a mail() step to my page increases the page load time from an average
of about 2 seconds to nearly 8 seconds. That would be OK if the page
completed displaying all the text and then just kind of hung there while the
mail() function finished. The page I am using, by the way, is a
5-column/
- Original Message -
From: "Steve Buehler" <[EMAIL PROTECTED]>
To: "PHP" <[EMAIL PROTECTED]>
Sent: Tuesday, May 21, 2002 2:34 PM
Subject: [PHP] smtp
> I am trying to use the "smtp class" from phpguru.org with a mysql database
> using PHP. My question is this. I understand that I can s
http://php.net/array_push
miguel
On Tue, 21 May 2002, Steve Buehler wrote:
> I am trying to use the "smtp class" from phpguru.org with a mysql database
> using PHP. My question is this. I understand that I can send out email to
> multiple email addresses using this class. How can I populat
I am trying to use the "smtp class" from phpguru.org with a mysql database
using PHP. My question is this. I understand that I can send out email to
multiple email addresses using this class. How can I populate these arrays
with the email addresses. The fields that would have all of the add
A long time ago I had this problem and discovered a checkbox in the ODBC
configuration wizard with NT where you could specify how many chars of a
varcar to return...
you might look there...
On Mon, 20 May 2002, Tim Greenleaf wrote:
> FYI: MS SQL Server 7 and greater, Varchar is a max of 8000 c
when you loop through a mysql result set you move the pointer up one place.
you need to use the mysql_data_seek($results, 0); to reset the pointer
Jim Lucas
- Original Message -
From: "Web" <[EMAIL PROTECTED]>
To: "PHP" <[EMAIL PROTECTED]>
Sent: Tuesday, May 21, 2002 2:47 AM
Subject: [PHP
On Wed, 22 May 2002, r wrote:
> To answer your question and suggestion,
> The reason I didnt know that is coz i am not going by the online manual but
> by a book called "PHP blackbook" Its pretty good but just a bit hazy here
> and there.
You should definitely download or use the online manual. I
Hi,
Thanks for the help,
To answer your question and suggestion,
The reason I didnt know that is coz i am not going by the online manual but
by a book called "PHP blackbook" Its pretty good but just a bit hazy here
and there.
Thanks again.
-Ryan
--
PHP General Mailing List (http://www.php.net/)
Try it out for yourself. :-
class Test{
var $x = '';
function Test(){}
}
$x = new Test();
$y = new Test();
$x->x = "Way";
$y->x = "No";
print $y->x . $x->x;
---
Scott Hurring
Systems Programmer
EAC Corporation
[EMAIL PROTECTED]
Voice: 201-462-2149
Fax: 201-288-1515
> -Original Message
On Tue, 21 May 2002, Gerard Samuel wrote:
> I have a function that checks whether a file exists and loads it like so
>
> function foo($bar)
> {
> if (file_exists($bar))
> {
> include($bar);
> }
> }
>
> According to clearstat cache, its use is for files that change often.
>
Yesterday, I read in the archives somewhere that in PHP, class
attributes are all static attributes (class variables), not instance
variables. (Figures, I can't find it again, so I can't provide a
link.) In other words, the attributes apply to every single instance of
an object. This contra
On Tue, 21 May 2002, Denis L. Menezes wrote:
> I use the following code, but it does not work. Is there something wrong?
>
> If
> (ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.'@'.'[-!#$%&\'*+\\/0-9=?A-Z^_`a
> -z{|}~]+\.'.'[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$',
> $email_address))
One problem (syn
-1 is the index of the char number you want to examine.
http://www.php.net/manual/en/function.substr.php
So that code is checking the last char of the string
to see if its ".", if it is, it returns everything *except*
the ".".
Please consult the online manual in the future...
it wants to be you
On Tue, 21 May 2002, Jimmy Lantz wrote:
> Hi,
> started playing with Mcrypt and just wanted to ask which encryption method
> makes the stronger encryption?
> (I can supply the necesary keylength).
> Should I go for MCRYPT_BLOWFISH or MCRYPT_TWOFISH? Or no fish at all :)
>
> So what do I need it
Hi ppl,
Can you tell me what does this mean?
if (substr($text, -1) == ".")
{$test = substr($text, 0, -1);}
I know the if part searches the $text from the starting for the "."
I am just confused about what the second and third arguement does in the
substr. (Second line)
I know that this is an ea
FYI: MS SQL Server 7 and greater, Varchar is a max of 8000 characters so it
sounds like there is some limitation in the PHP functions that is limiting
this.
"Niklas lampén" <[EMAIL PROTECTED]> wrote in message
008901c1fa7b$14539d30$ba93c5c3@Niklas">news:008901c1fa7b$14539d30$ba93c5c3@Niklas...
>
On Wednesday 22 May 2002 01:45, Jas wrote:
> I don't think I am using the syntax correctly, I have been looking at this
> function on php.net and everything I have seen says my code should be
> working.
What version of php are you using? In PHP versions before 4.2.0 needle was not
allowed to be
> -Original Message-
> From: Chris Boget [mailto:[EMAIL PROTECTED]]
> Subject: Re: [PHP] Secure eval();
>
> > Are you sure you have to run it through eval()? It sounds
> like you're
> > creating a query. Couldn't you just create the query
> dynamically, then put
> > it in a mysql_query(
Looks good Tim.
if you're going to do it this way, make sure register_globals is set on in
your php.ini. also you check isset($srch) AND strlen(trim($srch)). in most
cases, both checks won't be necessary. unless you have high error
reporting, and php will complain if you check a variable th
I don't think I am using the syntax correctly, I have been looking at this
function on php.net and everything I have seen says my code should be
working.
A form allows the user to upload a file:
Resulting file (upload_done.php):
And here is my error:
Warning: Wrong datatype for first arg
I am very new to PHP about two hours. I have a search page that I post back
to the same URL. When the form is loaded I check to see if the seach
variable is set ($srch is the name of the text box on the form) and then
determine what function to call. I either call a welcome message function
to
Here's what I was just thinking. This timezone
seems too complicated and what do you guys think
about me just displaying all the times in GMT and
then allow the user to set to their local time by
selecting a pulldown list of all the times GMT -11
to GMT +12.
set local time to 1:10pm
set local ti
hiya,
twofish runs at just over 25MB/sec when compiled into a test VC++
application,
blowfish runs at 18MB/sec.
As far as I remember,
if you use the same keylenght (256 or 128) then you should get around the
same level of encryption (probably not exact, but if one was that much
weaker there'd be
I had a similar issue, for a thing I'm doing for a Messageboard I am writing
I need the timezones and offsets, so I compiled the best I could off
different sites and info, and created a Mysql Table with all the timezones
and offsets. there are duplicate offsets but since people know their TZ as
di
On Wednesday 22 May 2002 00:37, Timothy J. Luoma wrote:
> Hello PHP'ers
>
> I am currently using the very cool PHPSlideshow(1)
>
> This gives me URLs that look like this:
>
> http://www.tntluoma.com/show.php?directory=nursery/
>
> I would like to be able to have simpler URL like this:
>
>
Hi Baba
I've been trying to get as much info on this as
possible and you are right it is quite messy.
Thanks for that link, I'm going to take a look at
your code.
-Original Message-
From: Baba Buehler [mailto:[EMAIL PROTECTED]]
Sent: May 21, 2002 5:37 AM
To: [EMAIL PROTECTED]
Subject:
Hello PHP'ers
I am currently using the very cool PHPSlideshow(1)
This gives me URLs that look like this:
http://www.tntluoma.com/show.php?directory=nursery/
I would like to be able to have simpler URL like this:
http://www.tntluoma.com/show/directory=nursery/
I was researchi
Hi,
started playing with Mcrypt and just wanted to ask which encryption method
makes the stronger encryption?
(I can supply the necesary keylength).
Should I go for MCRYPT_BLOWFISH or MCRYPT_TWOFISH? Or no fish at all :)
So what do I need it for? I'm going to use it encrypting files, sizes
vari
php-general Digest 21 May 2002 15:58:17 - Issue 1358
Topics (messages 98557 through 98607):
Re: MySQL and sorting
98557 by: Miguel Cruz
98558 by: Tyler Longren
98559 by: Jason Wong
98562 by: David Freeman
Smart quote algorithm
98560 by: Miguel Cruz
Erich:
On Tue, May 21, 2002 at 10:22:10PM +0800, erich wrote:
> Warning: Undefined index: install in d:\wwwroot\program_files\install.php
> on line 14
Undefined index means that the index you requested from an array doesn't
exist.
>
> $install = $HTTP_POST_VARS["install"];
That's line 14.
> Are you sure you have to run it through eval()? It sounds like you're
> creating a query. Couldn't you just create the query dynamically, then put
> it in a mysql_query() function? (or whatever DB you're using) Then, even if
> they try some kung fu on you, it'll just result in a bad query, not s
Are you sure you have to run it through eval()? It sounds like you're
creating a query. Couldn't you just create the query dynamically, then put
it in a mysql_query() function? (or whatever DB you're using) Then, even if
they try some kung fu on you, it'll just result in a bad query, not some
rogu
i run a install.php, the server says the following statement,
Warning: Undefined index: install in d:\wwwroot\program_files\install.php on
line 14
the strange things is when i install the php program, it does not have
outputted this warning, but this warning occurs when i put all the files to
a r
> You'll have to come up with a regular expression to check for bad
> characters. How complex are the equations? If they are like your example,
> you can just check that the equation doesn't have any letters and is only
> made up of [0-9+*-/()] characters.
It's pretty complex. What I gave was a
Hi,
Tx for your very prompt reply.
Yeah, I'll post the solution as soon as I find it someplace.
Let me outline the problem in more detail -
Client (VC++) calls a PHP script on the server, specifies the
connection type as Keep-Alive. The PHP script, somehow (still a
big question) gets the so
I was wondering if anyone uses php to call enterprise javabeans?
I wrote a java class that is accessed by some php code. This java class
calls an EJB and gets a custom object returned to the java class called
report. When I returned the custom object to php to reference, everything I
try to oup
You'll have to come up with a regular expression to check for bad
characters. How complex are the equations? If they are like your example,
you can just check that the equation doesn't have any letters and is only
made up of [0-9+*-/()] characters.
---John Holmes...
- Original Message -
Hi!
I'm looking for an answer to your questions as well, so if you do find a
solution on other lists, could you please post it here as well?
Regarding the issue, your proposal wouldn't make for full-duplex as far
as I understand since I don't see how the client would be able to send
any data
1 - 100 of 133 matches
Mail list logo