Greg Donald wrote:
On Wed, 16 Feb 2005 09:36:26 -0800 (PST), Richard Lynch <[EMAIL PROTECTED]>
wrote:
It's literally an hour's work to alter the code to use MySQL to store the
sessions instead of the hard drive.
Not really, maybe 5 minutes.. here's the code:
The code misses one important thing -
On Fri, 2005-02-18 at 01:47, David Freedman wrote:
> I am trying my FIRST php file with an attempt to connect
> to my mySql server.
>
> // Connecting, selecting database
> $link = mysql_connect('localhost', 'host', 'my_passqword')
>or die('Could not connect: ' . mysql_error());
> echo 'Connec
Bret Hughes wrote:
On Fri, 2005-02-18 at 01:47, David Freedman wrote:
I am trying my FIRST php file with an attempt to connect
to my mySql server.
// Performing SQL query
$query = 'SELECT * FROM my_table';
$result = mysql_query($query) or die('Query failed: ' . mysql_error());
M. Sokolewicz wrote:
Bret Hughes wrote:
On Fri, 2005-02-18 at 01:47, David Freedman wrote:
I am trying my FIRST php file with an attempt to connect
to my mySql server.
// Performing SQL query
$query = 'SELECT * FROM my_table';
$result = mysql_query($query) or die('Query failed: ' . mysql_error());
Mailit, LLC a écrit :
$userName = $_POST[userName];
$passw= $_POST[passw];
(...)
$cmd = "SELECT * FROM theTable "
. "WHERE userName='$userName' ";
$res = mysql_query( $cmd ) or die( "Password search failed." );
Without validating userName in $_POST, that code is vulnerable
$str_array = explode("/", ""/home/karthik/welcome.php/view.php");
// $str_array[4] shoud be view.php
From: K Karthik <[EMAIL PROTECTED]>
To: php-general@lists.php.net
Subject: [PHP] [php] -help me
Date: Fri, 18 Feb 2005 11:20:29 +0530
MIME-Version: 1.0
Received: from lists.php.net ([216.92.131.4])
Hi,
Is there a way to invoke C functions in a library (.so) from PHP?
Like Xs in Perl?
Thanks,
Deepak
--
N Deepak || http://www.ndeepak.info/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
Please Visit
http://pear.php.net/package/Inline_C
may be usefull
zareef ahmed
On Fri, 18 Feb 2005 01:19:19 -0800, N Deepak <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Is there a way to invoke C functions in a library (.so) from PHP?
> Like Xs in Perl?
>
> Thanks,
> Deepak
>
> --
> N De
On Fri, 18 Feb 2005 07:35:02 +0100, Stefan <[EMAIL PROTECTED]> wrote:
> Hi.
> Are there some code-examples how to build a forum
> with php and xml?
>
Why yes, there are...
A quick google of: http://www.justfuckinggoogleit.com/?q=forum+php+xml
reveals the top result to be a page called 'PHP/XML f
On Thu, 17 Feb 2005 20:47:28 -0600, .hG <[EMAIL PROTECTED]> wrote:
>
> It makes me wonder how secure in reallity it is to place your UN and
> Passwords on a PHP file.
>
Best idea is to place such information in an include file, which you
can call using the include() or require() statements -
On Fri, Feb 18, 2005 at 02:56:05PM +0530, Zareef Ahmed wrote:
> Hi,
>
> Please Visit
>
> http://pear.php.net/package/Inline_C
>
Thanks very much. Have you tried using it? How mature is it? I found
no documentation or installation guide.
Best regards,
Deepak
> On Fri, 18 Feb 2005 01:19:19 -
Tyler Replogle wrote:
$str_array = explode("/", ""/home/karthik/welcome.php/view.php");
// $str_array[4] shoud be view.php
From: K Karthik <[EMAIL PROTECTED]>
To: php-general@lists.php.net
Subject: [PHP] [php] -help me
Date: Fri, 18 Feb 2005 11:20:29 +0530
MIME-Version: 1.0
Received: from lists.php
you could also encrypt the file using one of the encoders that are out
there. Some are free and some are paid for
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi there,
I am wondering if there is a nicer way to save the data into an array than I do.
I do have a 2 dimensional array "$para".
Currently I go like this:
$para[1][txt] = 'Europe'.$continent[name];
$para[1][link] = '/'.$continent[name].'.htm';
$para[1][
Merlin wrote:
Hi there,
I am wondering if there is a nicer way to save the data into an array
than I do.
I do have a 2 dimensional array "$para".
Currently I go like this:
$para[1][txt] = 'Europe'.$continent[name];
$para[1][link] = '/'.$continent[name].'.htm';
$para[1]
On Fri, 18 Feb 2005 11:42:36 +, John Cage <[EMAIL PROTECTED]> wrote:
> you could also encrypt the file using one of the encoders that are out
> there. Some are free and some are paid for
Never thought of that ;-)
http://www.zend.com/store/products/zend-encoder.php?home (Commercial)
http://www
Marek Kilimajer wrote:
Merlin wrote:
Hi there,
I am wondering if there is a nicer way to save the data into an array
than I do.
I do have a 2 dimensional array "$para".
Currently I go like this:
$para[1][txt] = 'Europe'.$continent[name];
$para[1][link] = '/'.$continent[nam
Hello Merlin:
take a look to http://www.php.net/manual/en/language.types.array.php
$para[5]=array('txt' => 'Europe'.$continent['name'],
'link' => '/'.$continent[name].'.htm',
'title' => 'Europe - Continent overview');
$para[]=array('txt' => 'America'.$continent['nam
Hey ppl,
I have a scenario wherein the people logging into the system have
different kinds of status as in a person can either be a admin, a
user, or a supervisor etc. Now I have different web interfaces for all
these kind of people. What I want to know is what function do i use to
go to a URL dire
http://www.php.net/date
On Fri, 18 Feb 2005 12:07:14 +0530, K Karthik <[EMAIL PROTECTED]> wrote:
> i am so surprised for the immediate reply.thank you so much.
> i'll be thank ful again if you could help me finding the current date
> and time using php.
> thanks,
> karthik
>
> --
> PHP General M
Hi all,
I used fgetcsv() function to get the data from a excel file.
While reading the data it shows some special characters .
I found the same problems in
http://bugs.php.net/bug.php?id=12127&edit=2
Is it a bug?
Plz help me.
Binoy
__ __ __ _
[snip]
I used fgetcsv() function to get the data from a excel file.
While reading the data it shows some special characters .
I found the same problems in
http://bugs.php.net/bug.php?id=12127&edit=2
Is it a bug?
[/snip]
What special characters does it show?
--
PHP General Mailing List
* Vaibhav Sibal <[EMAIL PROTECTED]>:
> I have a scenario wherein the people logging into the system have
> different kinds of status as in a person can either be a admin, a
> user, or a supervisor etc. Now I have different web interfaces for all
> these kind of people. What I want to know is what f
On Fri, 18 Feb 2005 08:56:59 +0100, Marek Kilimajer <[EMAIL PROTECTED]> wrote:
> The code misses one important thing - row locking. For concurent
> requests, sess_open must block until the first request does
> sess_close(). So you need to use InnoDB's row locking or
> application-level GET_LOCK() a
Hi,
Thanks for the reply.
It shows ÐÏࡱá>\\þÿ etc.
source code I used is
$handle = fopen ("file.xls","r");
while ($data = fgetcsv ($handle, 1000, ","))
{
$num = count($data);
for ($c=0; $c < $num ; $c++)
{
$str_email = $data[$c];
echo $st
[snip]
Thanks for the reply.
It shows ÐÏࡱá>\\þÿ etc.
source code I used is
$handle = fopen ("file.xls","r");
while ($data = fgetcsv ($handle, 1000, ","))
{
$num = count($data);
for ($c=0; $c < $num ; $c++)
{
$str_email = $data[$c];
ec
bob wrote:
Hi,
I am trying to schedule the running of some PHP scripts on my Win2K PC
at home.
On my live server I use Linux, so am fully familiar with Crontab. I am
not that familiar with running scripts using the scheduler in Win2K though.
So far what I have is:
C:\php\php.exe -q c:\path\to\p
Thanks Jay.
Could anybody please tell me how to read the data from an excel file ? It
should work independent of the operating system. I don't want the csv format.
Binoy
__ __ __ __
Sent via the WebMail system at softwareassociates.co
[snip]
Could anybody please tell me how to read the data from an excel file ?
It should work independent of the operating system. I don't want the csv
format.
[/snip]
Start here http://us4.php.net/com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/u
On W3K you could use this as the run line in
Scheduled Tasks and probably the same in XP
although I have not tested this. The same
components exist in the W2K version although
may be in different locations/names.
Run: cmd /c "c:\php\php.exe -q c:\path\to\php\file.php"
Start in: C:\path\to\php\file\
Vaibhav Sibal wrote:
Hey ppl,
I have a scenario wherein the people logging into the system have
different kinds of status as in a person can either be a admin, a
user, or a supervisor etc. Now I have different web interfaces for all
these kind of people. What I want to know is what function do i us
Binoy AV wrote:
Thanks Jay.
Could anybody please tell me how to read the data from an excel file ? It should work independent of the operating system. I don't want the csv format.
excel files aren't independent of the OS, csv files are. Excel files
need to be parsed, because they contain he
Hello,
I suspect that all is OK in your code. I had a very similar problem three
days ago. Try connecting to FQDN like [EMAIL PROTECTED] via TCP/IP, not to
localhost via UNIX socket. It works in my case at least.
BTW it seems to be a DB package bug... write a simple test script with
mysqli_* fun
On Fri, 2005-02-18 at 09:12, M. Sokolewicz wrote:
> Binoy AV wrote:
>
> > Thanks Jay.
> >
> > Could anybody please tell me how to read the data from an excel
file ? It should work independent of the operating system. I don't want
the csv format.
> excel files aren't independent of the OS,
Thanks everyone for your input. I was just curios since everyone is so
concern about security, yet some messageboards/CMS use passwords for their
databases on the index page or an include.
--
...hG
http://www.helmutgranda.com
"Robby Russell" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL
Im a begininer at PHP but how about session?
--
...hG
http://www.helmutgranda.com
"Jacques" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
: How can I determine which users have signed in and are still on-line
during
: the first minute after they have signed in? My sql statement
Chris wrote:
Hi, I've been trying to get these 2 compiled together for a while, and
have had no luck.
WHere my problem lies, I think, is that I'm not sure what directory
should be specified on the --with-mysql part
./configure --with-apxs2=/usr/local/apache/bin/apxs
--with-mysql=/usr/include/m
Thanks for your help guys... I can't seem to locate the culprut though...
here is my line of code it refers to:
echo
"".$nav_bar_end;
all it does is close a table though... i hate to blame this error on
the PHP processor... but I am wonder
Durring the middle of the day our website stopped woking when I checked the
error logs in Apache I found this error:
FATAL: emalloc() : Unable to allocate 1073741824 bytes
Spammed three times, since then nothing we have tried has worked, played
with memory_limit and shutting down our gallery.
Hey people,
Am in the look out for a code analyzer for PHP...can somebody help me
out with that?Please...
Many Thankx
Ramya
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> FATAL: emalloc() : Unable to allocate 1073741824 bytes
I found this at http://us4.php.net/odbc_exec
I kept getting FATAL: emalloc() errors when using select statements
via odbc for MS SQL.
I had no control over the DB as it is a commercial CRM system.
I found that by 1st issuing an SQL query
George Balanos wrote:
> Durring the middle of the day our website stopped woking when I checked
> the
> error logs in Apache I found this error:
>
> FATAL: emalloc() : Unable to allocate 1073741824 bytes
What you have to figure out is why you are trying to allocate a GIGABYTE
of RAM on your homepa
I've found a number of PHP classes for parsing server logs, but I just
want to parse a single referer at a time. Anyone know of a class that
will do this?
1) Extract just the site from the full referer string,
2) Extract the query keyword (if any) no matter what search engine the
referer is fro
Binoy AV wrote:
> Could anybody please tell me how to read the data from an excel file ?
> It should work independent of the operating system. I don't want the csv
> format.
For your first step, you'll have to convince Microsoft to OpenSource their
code...
Oh, yeah.
You can't do that.
:-)
--
Vaibhav Sibal wrote:
> Hey ppl,
> I have a scenario wherein the people logging into the system have
> different kinds of status as in a person can either be a admin, a
> user, or a supervisor etc. Now I have different web interfaces for all
> these kind of people. What I want to know is what functi
N Deepak wrote:
> Is there a way to invoke C functions in a library (.so) from PHP?
> Like Xs in Perl?
Yes.
EVERYTHING in PHP, except for the core syntax of if/else/while can be
loaded this way.
Many times, it's compiled in static, but you can make most of the modules
be shared.
By definiti
David Freedman wrote:
> I am trying my FIRST php file with an attempt to connect
> to my mySql server.
>
> // Connecting, selecting database
> $link = mysql_connect('localhost', 'host', 'my_passqword')
>or die('Could not connect: ' . mysql_error());
Does this print out anything?
Is it more t
On Fri, 18 Feb 2005 12:10:32 -0500 (GMT-05:00), George A. Balanos
<[EMAIL PROTECTED]> wrote:
> Thank you Matt, I found that also but to be honest the person who built this
> server recently passed away. He was our php specialist and to be honest I
> have no clue on how to activate this change.
Sounds to me like you need to go out and hire a PHP programmer to go through
your code and get your site back up and running.
Then that same person can give someone in your organization some tutorials
on how to maintain your code so that this sort of thing does not continue to
happen.
http://www
Anyone know of any PHP based Excel Reader code that handles the
proprietary Microsoft 'hyperlink' field?
I found and tried two options already but neither handle the 'hyperlink' field:
http://www.zakkis.ca/products/index.php?s=1&p=32
http://sourceforge.net/projects/phpexcelreader/
TIA
--
Gre
Sebastian wrote:
> Hello,
> im working on an article system and looking to avoid running three
> queries.
> example, i have this query:
>
> SELECT id,title FROM articles WHERE id=$_GET[id]
>
> now say $_GET[id] = 5
>
> I would like to get the previous id 4 and the next id 6 (if there is one)
> so i
Chris wrote:
> Hi, I've been trying to get these 2 compiled together for a while, and
> have had no luck.
>
> WHere my problem lies, I think, is that I'm not sure what directory
> should be specified on the --with-mysql part
Here's the deal:
"configure" needs to find *BOTH* 'mysql.h' files and
'm
I am developing an application. When the user signs in a Session ID is
created (for argument sake: 123). I have a sign out page that has the script
session_destroy() on it. This page directs me to the sign in page. When I
sign the same or any other user in again I get the same session id (123).
On Thu, 2005-02-17 at 23:21, Jacques wrote:
> How can I determine which users have signed in and are still on-line during
> the first minute after they have signed in? My sql statement currently
> reads:
>
> SELECT * FROM tblusers WHERE usignedin = "yes" AND utimesignedin = (time() -
> 60)
>
>
I created a new user, and assigned privileges. Then tried to connect to the
server
and was denied access, because of a conflict between the mysql CLIENT
version
and the mysql server code due to the password encryption scheme installed in
version
4.1 of mysql. Running the following line fixed the pr
> I am developing an application. When the user signs in a Session ID is
> created (for argument sake: 123). I have a sign out page that has the script
> session_destroy() on it. This page directs me to the sign in page. When I
> sign the same or any other user in again I get the same session id (1
[EMAIL PROTECTED] wrote:
> On W3K you could use this as the run line in
> Scheduled Tasks and probably the same in XP
> although I have not tested this. The same
> components exist in the W2K version although
> may be in different locations/names.
>
> Run: cmd /c "c:\php\php.exe -q c:\path\to\php\
Does anyone know how to force PHP to require all local variables to be declared
prior to use or if this is even possible?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Chris wrote:
./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr
--with-mysql-include-dir=/usr/include/mysql
--with-mysql-lib-dir=/usr/lib/mysql --with-mysqli=/usr/bin/mysql_config
it might work. I've managed to stave of the need for the mysql
extension for a week or two, but
error_reporting(E_ALL);
Then you will get a notice when you try to read a variable which
doesn't exist.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Richard Lynch wrote:
Here's the deal:
"configure" needs to find *BOTH* 'mysql.h' files and
'mysql.so'/'mysql.lib' files *UNDER* the directory you feed it.
Figure out where your mysql.h files are.
Figure out where your mysql.lib/mysql.so files are.
.
Thanks for the response, in fact I can't find
Thank you very much for that solution however I need something slitely
different. This is a CMS for distribution... not everybody that's
going to use it can go in and edit the config files. I've heard of a
command called ini_set(); which temporarily changes it just for the
script. Would you
62 matches
Mail list logo