Hi
Can anyone please help me with a following problem.
There's a script which uses PEAR library (namely, DB class)
getMessage());
var_dump($db);
?>
When i execute it everything is ok.
BUT when i access this script via redirect by mod_rewrite
it throws an error that open_basedir settings do
Hi Miguel,
I can go in for a php based listener, yes, but this system is already in
a production environment and there will be major changes required to get
it done.
If I get a chance to redevelop this, that is probably what I'll go in
for.
Tx,
Vinod.
-Original Message-
From: Miguel Cr
Hello,
Can anyone please tell me how to create a mailing archieve list
Thanks in advance
Uma
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tuesday 28 May 2002 07:33, DevilKin wrote:
> On Monday 27 May 2002 22:59, Rasmus Lerdorf wrote:
> > You cannot change the upload limit in your script because the file upload
> > happens before your script is executed. You need to set it in your
> > php.ini, httpd.conf or .htaccess
>
> Aha. How
On Monday 27 May 2002 22:59, Rasmus Lerdorf wrote:
> You cannot change the upload limit in your script because the file upload
> happens before your script is executed. You need to set it in your
> php.ini, httpd.conf or .htaccess
Aha. How do i set this from .htaccess anyway?
And this might be w
Or something easier...
width = $size;
HTML;
?>
Just make sure the "HTML;" bit is all the way on the left margin,
regardless of tabstops in your code.
cheers,
Brad
Boyan Nedkov wrote:
>Try something like that:
>
>//$size = GetImageSize ("images/$resim");
>$size = 222;
>echo "";
> echo "
Hello again all,
I'm using the Mac OS X binary of PHP 4.2.1 provided by Mark Liyanage
(http://www.entropy.ch/software/macosx/php/), and I am starting to notice
some oddities, I was wondering if anyone else had seen these errors in other
ports.
I'm getting some base php functions that seem to be
> I DO NOT want to prompt the user for username and password with header
> calls to the browser. I don't want the authenticate dialog box to pop up
> on the client browser; I want to collect the username and password on a
> PHP or HTML page--I need to collect more data than just username and
> pa
what harm will it make if i declear a value as VARIABLE where i should make
it as CONSTANT actually??
how about if i declear 100 values as VARIABLEs where all are CONSTANTs
actually?
thx
HPS
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.ph
Two way's I can see
1. Use session variables
2. Use client side cookies
Martin
-Original Message-
From: Laura Harley [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 28, 2002 2:02 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Setting PHP Authentication manually?
I am trying to build a login pa
I am trying to build a login page for client project review site.
I DO NOT want to prompt the user for username and password with header
calls to the browser. I don't want the authenticate dialog box to pop up
on the client browser; I want to collect the username and password on a
PHP or HTML
Another thing you may want to try is the following line:
$query = "select * from news WHERE id = '" . $_get['id'] . "'";
Matt
On Mon, 27 May 2002 [EMAIL PROTECTED] wrote:
> I know it is probably something obvious but the following gives me a parse error and
>as a newbie I am having trouble l
try this:
$query = "select * from news WHERE id = '$_get['id']'";
the double quote right before the $ is ending the string, from that point
on everything is an error.
Matt
On Mon, 27 May 2002 [EMAIL PROTECTED] wrote:
> I know it is probably something obvious but the following gives me a par
No, you should be fine with leaving off the MyISAM. It is the default in 3.23
anyways.
On Tuesday 28 May 2002 06:04 am, r wrote:
> Greetings All,
> Thank you for guiding me in the last doubt and special thanks to Juan Pablo
> for the link.
>
> Just one question, since I have taken out that MyIS
Hello J,
I try to change the gc probability in the .htaccess (php_value
session.gc_probability = 10) but it didnt work :-(
Is there any other ideas ? maybe it a bug in PHP ?
THANKS,
Dima.
"J Smith" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> It might ha
exec wont work if you need to use stdin and read from stdout. You can try
php.net/pcntl but that is disabled by default, and probably wont be enabled
oun your host. I don't even know if it existed in 4.0.6...
--
If there is no higher reason--and there is none--then my own reason must be
the
see this page:
http://www.php.net/manual/en/language.types.integer.php
Jule
On Monday 27 May 2002 22:52, Jule wrote:
> ps: sorry for all the typos...
>
> Jule
>
> On Monday 27 May 2002 22:51, Jule wrote:
> > Dunno if it's a bug, but it's 2147483648 to max for an integer? doesn't
> > bigint supp
*** REPLY SEPARATOR ***
On 27/05/2002 at 9:00 PM Ragnar [EMAIL PROTECTED] [gregausit/phplist] wrote:
>Is it possible to display images in a browser that are stored as a blob
>column in a mysql table? Or is it better to store images in a direcotory
>and
>display them "from" the
ps: sorry for all the typos...
Jule
On Monday 27 May 2002 22:51, Jule wrote:
> Dunno if it's a bug, but it's 2147483648 to max for an integer? doesn't
> bigint support higher numbers than that?
> i'm not sure but i think that's why your number gor cut down.
>
> Jule
>
> On Monday 27 May 2002 22:3
Dunno if it's a bug, but it's 2147483648 to max for an integer? doesn't
bigint support higher numbers than that?
i'm not sure but i think that's why your number gor cut down.
Jule
On Monday 27 May 2002 22:36, zhaoxd wrote:
> Hello all:
>
> Not long ago I wrote some php code i
Hello all:
Not long ago I wrote some php code in my computer which had a apache server,and my
php version is 4.0.5.The code as followed:
$num = 2886732778;
settype($num, integer);
echo $num;
And I found the num is -2147483648.attention,please:the
this is what I use to get rid of "line" from the url
$qs = ereg_replace("&$", "", ereg_replace("line=[^&]*&?", "",
$QUERY_STRING));
HTH
MArtin
-Original Message-
From: Scott Reismanis [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 28, 2002 12:00 PM
To: [EMAIL PROTECTED]
Subject: [PHP] R
Hey All,
I am just begining to learn regex functions in PHP. Anyhow I am trying
to code a preg_replace function which basically cleans a URL.
What I mean is say a url is index.php?page=hello&list=10&start=4 you
pass that URL and say 'list' to the function (shown below) Anyhow I
want that to t
on 16/05/02 12:24 PM, k spellman ([EMAIL PROTECTED]) wrote:
> The code for form.html is
>
> and the code for the HandleForm.php is
>
>
>
> Form Results
>
>
>
> /* This page receives and handles the data generated
> by "form.html". */
> print "Your first name is $FirstName.\n";
> print "Yo
Okay,
You REALLY need to read the manual(s) before posting. A quick search for
MyISAM on the MySQL site would have told you what you need to know.
a) it's mysql
b) it's easy to find the answer yourself
So don't ask here.
Justin
on 28/05/02 10:22 PM, r ([EMAIL PROTECTED]) wrote:
> Hey guys,
> I have two files (f1.php,f2.php) that each take about 90%
> and 90% of differient functions from the first
> file(func.php), would my files (f1.php,f2.php) load faster
> if I defined the functions in each file instead of including
> it or is this helping?
It might, but the difference
Hey all,
I have a file that is totally filled with PHP functions, its around 15 k.
(func.php)
I have two files (f1.php,f2.php) that each take about 90% and 90% of
differient functions from the first file(func.php),
would my files (f1.php,f2.php) load faster if I defined the functions in
each fi
Greetings All,
Thank you for guiding me in the last doubt and special thanks to Juan Pablo
for the link.
Just one question, since I have taken out that MyISAM bit when i made the
table/s, so will it be missing anything?
Com on guys, just on this list I get a load of emails I cant join the MySql
have a look on the mysql list for this :)..
-Original Message-
From: r [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 28 May 2002 10:22 PM
To: [EMAIL PROTECTED]
Subject: [PHP] A bit confused
Hey guys,
I just got this code (from "PHP BlackBook" pg:213") to make a table in MySql
via a PHP scri
Hey guys,
I just got this code (from "PHP BlackBook" pg:213") to make a table in MySql
via a PHP script, I though I knew SQL till I saw this
CREATE TABLE sh_indexPages (
ID int(11) NOT NULL auto_increment,
Page varchar(255) NOT NULL default '',
PRIMARY KEY (ID)
) TYPE=MyISAM;
What the
thanks again
echo "
width="; echo $size[0]; echo ";";
I mean, problem's solution is "echo" :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanyou very much guys,
I is working boyan, but your suggestion seems like a long way? he?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Try something like that:
";
echo "width="; echo $size; echo ";";
echo "";
?>
Cheers, boyan
--
Boyan Nedkov
[EMAIL PROTECTED]
> -Original Message-
> From: burak delice [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 27, 2002 11:59 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] php's
Hi folks, sorry for the off topic post.
I'm a semi frustrated cobalt xtr user, and I'm thinking about another 1u rack mount
server.
Does anyone have any experience building them? Any good vendors for parts? Any how-to
websites/books? Any other brands you'd recommend?
The cobalts seem to wor
On Tuesday 28 May 2002 05:59, burak delice wrote:
> I want to make a php that include javascript that use a php variable. Code
> is below:
No need to post twice.
> $size = GetImageSize ("images/$resim");
> echo "
> wdth=";$size;echo";";
> echo "";
> ?>
That code looks broken to me.
> (I a
burak delice wrote:
>hi everyone,
>
>I want to make a php that include javascript that use a php variable. Code
>is below:
>
>$size = GetImageSize ("images/$resim");
>echo "
> wdth=";$size;echo";";
> echo "";
>?>
>
>
I didn't get the third line.. That's no JavaScript..
Isn't this supposed to
John,
Thanks, the code does actually read this but I'm afraid I removed it so the
servers ip is not exposed to the mail list.
The script runs correctly and opens and creates the page, however it cannot
find the include files I have in the page as the variable
$SITE_DOCUMENT_ROOT requires a sessi
a VERY newbie question, just how do I get data into a listbox? In mysql it
was pretty easy with mysql_fetch_row, but for oracle I am totally lost.
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I'm trying to setup an include directory for my site using .htaccess but
I'm having some difficulties.
The command I'm typing is as follows:
php_value include_dir ".:/path/to/my/site/includes"
When I try this, I get an error 500 with Apache. Have I typed something wrong?
Here's my setup:
hi everyone,
I want to make a php that include javascript that use a php variable. Code
is below:
wdth=";$size;echo";";
echo "";
?>
(I am calling that php file as below)
http://localhost/Aksu/web/getimage.php?resim=K00.jpg
But explore gives me an javascript error that syntax error. Why? a
hi everyone,
I want to make a php that include javascript that use a php variable. Code
is below:
wdth=";$size;echo";";
echo "";
?>
(I am calling that php file as below)
http://localhost/Aksu/web/getimage.php?resim=K00.jpg
But explore gives me an javascript error that syntax error. Why? a
On Mon, 27 May 2002, Jonas Hörnblad wrote:
> Hi there,
> I've only been PHPing for some week and ofcours I've ran into my first two
> problems.
>
> 1. I'm building this community thing and I have a text file with the users
> that is currently logged in. When they press logout there name is del
Jonas ? wrote:
> 1. I'm building this community thing and I have a text file with the
> users that is currently logged in. When they press logout there name
> is deleted from the textfile, but if they just close there browser or
> surf to another site there name is still in the text-file until
Hi there,
I've only been PHPing for some week and ofcours I've ran into my first two
problems.
1. I'm building this community thing and I have a text file with the users
that is currently logged in. When they press logout there name is deleted
from the textfile, but if they just close there br
php-general Digest 27 May 2002 21:01:57 - Issue 1370
Topics (messages 99345 through 99398):
Re: Ora_Fetch_Into function problem
99345 by: Michael P. Carel
99347 by: Michael Virnstein
Re: Program execution stops at exec()
99346 by: Tom Mikulecky
99356 by: Dav
You cannot change the upload limit in your script because the file upload
happens before your script is executed. You need to set it in your
php.ini, httpd.conf or .htaccess
-Rasmus
On Mon, 27 May 2002, DevilKin wrote:
> Hello,
>
> As stated in the topic: PHP 4.1.2 balantly ignores max_upload_
I managed to be somewhat succesfull while trying to get PHP4 and IMP to get
quota information from my IMAP server (Vircom's VOPMail for Windows
NT/2000 - available from www.vircom.com).
I changed the script a little bit to talk right to Vircom's IMAP server but
its response differs a little from
I think you meant changing \r\n doesn't work?
Did you make necessary changes to the php.ini file:
[mail function]
; For Win32 only.
SMTP = localhost
; For Win32 only.
sendmail_from = [EMAIL PROTECTED]
; For Unix only. You may supply arguments as well (default: 'sendmail -t
-i').
;sendmail_path
There is also a user note at the bottom of the documentation:
I tried to put "\r\n" at the end of each header line and Netscape
4.7 didn't work properly. I changed to "\n" and it worked well.
So, I tried it on Outlook Express 5.5 and Eudora 5.1 and it worked too
with "\n" only.
I hope it helps...
Dear fellars at php.net
It appears to me that there is something wrong with the mail() function,
I've got an Apache 2.0.36 webserver in an Windows XP environment,
now everythin seems to work just fine until I try to execute this:
mail("[EMAIL PROTECTED]", "My Subject", "Line 1\r\nLine 2\r\nLine
Hello,
As stated in the topic: PHP 4.1.2 balantly ignores max_upload_filesize
paramter. I've been trying - without solution - to get php 4.1.2 (compiled as
module for apache 1.3.xx) to accept a file upload (via post) of more than 2
mb. Files <= 2mb work great, but when I go above this php retu
On Mon, 27 May 2002, Ragnar wrote:
>-Is it possible to display images in a browser that are stored as a blob
>-column in a mysql table? Or is it better to store images in a direcotory and
>-display them "from" there?
IMHO it is better to let a file system store the image files and let MySQL
refe
Is it possible to display images in a browser that are stored as a blob
column in a mysql table? Or is it better to store images in a direcotory and
display them "from" there?
-Ragnar
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Good day,
I have a command-line PHP script that connects to an LDAP database and does
some queries.
To increase security, I would like to not put the bind password into the
program, and instead have the user type it in. But, I'd like to have this
done so that the password is not echo'd to the s
I don't have example code, but what you want is the exec() function. Be
careful passing user variables to a command line program.
www.php.net/exec
---John Holmes...
> -Original Message-
> From: ing.Martin Prášek [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 27, 2002 1:21 PM
> To: [EMA
It's called $HTTP_POST_VARS or $HTTP_GET_VARS, depending on the method
of your form. It's an array that holds all of the data that was send
through the form. In PHP 4.1+ you can use $_POST and $_GET.
Use print_r($HTTP_POST_VARS) to see the contents of it in one of your
scripts.
---John Holmes..
Hi.
> Code:
>
> generate page script:
>
> $pge = create-page.php
> $pd = $HTTP_GET_VARS['pd'];
>
> # Set the files
> $crtPge = "/". $pge ."?pd=". $pd; # the url of the dynamic page to
write
> the
> output page
> $targetfilename = $SITE_ DOCUMENT_ROOT . $outPge; # the output page
>
> # delete
Problem. I have a php 4.0.6. on linux as Apache module. I need to do folowing:
I have in my script some value, for example "$value"
and
in /bin on my linux box c language program called "something". (I need speed) .
I need to parse $value thru stdin /bin/something program to get from its std
You could use a transaction block if your database supports it, or just use
some sort of auto-numbering field, such as SERIAL in Postgres,
auto_increment in MySQL, etc. Then you wouldn't have to worry about
retrieving the next cno before inserting a new row.
J
R wrote:
> Hi,
> In java serv
It might have something to do with the way the session extension in PHP
performs garbage collection. There's a setting in php.ini that basically
controls how often garbage collection is performed. The value is a
percentage, and determines how often the GC should be done over a random
number o
Hi...
Is there a function getSize() of ming or libswf?
I want to send Flash imagens to server to put them
into HTML, but I need the width and height of the
image, and I don`t want to ask this for the user!!
thanks,
Augusto
__
if I am not mistaken the equivalent in asp is
Request.Form();
/j
"Jose Jeria" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have a page that creates form elements dynamically. Every time the
amount
> of form elements is different.
>
> So to the page that I
Hello,
I have very wierd problem :
I use session to manage users and I have this structure of the page :
-
include("db.php");
include("header.php");
bla bla
include("footer.php");
-
in the db.php I have :
session_start();
#some mysql connect stuff
I use session with the $_SESS
I have a page that creates form elements dynamically. Every time the amount
of form elements is different.
So to the page that I submit to I need to see how the whole request object.
Is that possible?
/Jose
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www
Dietmar Thamm <[EMAIL PROTECTED]> wrote:
> hmmhh,
>
> in the PDFlib feature-list there is written
> ...process existing PDF documents with the PDF import library PDI...
> any ideas what this "pdi" thing is about??
yeah it's not about getting pdf information :(
--
Henrik Hansen
--
PHP Ge
Hi,
In java servlets I used to use a "synchronised" block of code to make sure
it was thread safe...how do i do this in PHP?
Heres what should be thread safe
{
$r=select max(cno)+1 from MyTable;
(then i insert into the table the new cno plus my name)
insert into mytable ($r,'myname');
}
How to d
hmmhh,
in the PDFlib feature-list there is written
...process existing PDF documents with the PDF import library PDI...
any ideas what this "pdi" thing is about??
thanx
"Henrik Hansen" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:<[EMAIL PROTECTED]>...
> [EMAIL PROTECTED] (Dietmar Thamm) wr
Code:
generate page script:
$pge = create-page.php
$pd = $HTTP_GET_VARS['pd'];
# Set the files
$crtPge = "/". $pge ."?pd=". $pd; # the url of the dynamic page to write the
output page
$targetfilename = $SITE_ DOCUMENT_ROOT . $outPge; # the output page
# delete previous version of temp file if
Post some code. I don't understand completely what you're trying to do
or how you're trying to do it.
---John Holmes...
> -Original Message-
> From: Zac Hillier [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 27, 2002 9:20 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] fread and session vars
Hello!
I'm happy to announce the latest version of the Xdebug extension for PHP
4.2.1 and 4.3.0-dev. This new version has a lot of new and improved
functionality. This includes:
- improved support for arguments to user defined functions
- trace functions to trace function calls during the whol
[EMAIL PROTECTED] (Dietmar Thamm) wrote:
> hi,
>
> is there still an equivalent function to pdf_set_info() -> pdf_get_info();
> or another possibility to get the title, subject and author information out
> of an exsiting .pdf-file?
pdflib dont support getting information AFAIK.
--
Henrik
hi,
is there still an equivalent function to pdf_set_info() -> pdf_get_info();
or another possibility to get the title, subject and author information out
of an exsiting .pdf-file?
thanx
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Shouldn't it be
count($_REQUEST['animals'])
and
count($_REQUEST['animals'][2]), etc...
??
---John Holmes...
> -Original Message-
> From: Victor Spång Arthursson [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, May 26, 2002 1:29 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: [
Hi all,
I'm using the fread function to read one of my php scripts and then produce a static
page, within this script I'm using session variables.
If I browse to the script normally then all appears to work correctly, however when I
use the fread function the session variables are not being tr
When you get this working, can you post the IP address or web address of
your server? Thanks...
---John Holmes...
> -Original Message-
> From: Wayne [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 27, 2002 5:55 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] user password
>
> Hi Guys,
>
> D
> > -Original Message-
> > From: Jens Lehmann [mailto:[EMAIL PROTECTED]]
> > Sent: 27 May 2002 12:48
> >
> > > > -Original Message-
> > > > From: Jens Lehmann [mailto:[EMAIL PROTECTED]]
> > > > Sent: 24 May 2002 20:31
> > > >
> > > > time() returns the number of seconds since the
try echo Date("H:i:s");
roman
-Original Message-
From: Chris Grigor [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 27, 2002 2:43 PM
To: [EMAIL PROTECTED]
Subject: [PHP] time
howdi all
anyone know how to get a simple time print ? all the functions I have
looked at gmtime() time() don
Also note that variables are case sensitive in PHP. So $_get and $_GET
are not the same. If you're using the new "super-global" variables on
PHP, then you need to use $_GET['id']...
---John Holmes...
> -Original Message-
> From: Miguel Cruz [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May
On Monday 27 May 2002 20:42, Chris Grigor wrote:
> howdi all
>
> anyone know how to get a simple time print ? all the functions I have
> looked at gmtime() time() dont give the right thing ... all I want
> is a simple time print e.g 17:51
>
> I know that there is an easy way, Im just missing it so
What's the connection between the id and the random pages?
if you had 10 "html page" file names in a MySQL table, or an array, you'd be
able to pick one of them at random and include it.
eg SELECT file_name FROM files ORDER BY RAND() LIMIT 1
never had to do it with an array, but i'm guessing ar
howdi all
anyone know how to get a simple time print ? all the functions I have
looked at gmtime() time() dont give the right thing ... all I want
is a simple time print e.g 17:51
I know that there is an easy way, Im just missing it somewhere ...
Chris
--
PHP General Mailing List (http://www
> -Original Message-
> From: Jens Lehmann [mailto:[EMAIL PROTECTED]]
> Sent: 27 May 2002 12:48
>
> > > -Original Message-
> > > From: Jens Lehmann [mailto:[EMAIL PROTECTED]]
> > > Sent: 24 May 2002 20:31
> > >
> > > time() returns the number of seconds since the Unix Epoch to
> >
Hey all,
I'm calling a PHP "GimmeRandom.php?id=35557" and what this page does is take
the "id" and update the number in the database by +1 (till here no problem)
then what its supposed to do is give me ANY ONE of 10 prewritten html pages
in a random order.
I know this is pretty easy but my brai
David Freeman wrote:
> > What I don't understand is why my php script dies while
> > executing the shell script. Set_limit_time should make it
> > wait. The build.sh script completes well.
>
> Not the exact solution here but perhaps a work-around. How dynamic is
> the data you're generating w
Unix epoch is the number of secs since the start date in GMT regardless
of where your server is. The timestamp is a GMT value.
Matt Friedman
Web Applications Developer
www.SpryNewMedia.com
-Original Message-
From: Jens Lehmann [mailto:[EMAIL PROTECTED]]
Sent: Monday May 27, 2002 7:48
> > -Original Message-
> > From: Jens Lehmann [mailto:[EMAIL PROTECTED]]
> > Sent: 24 May 2002 20:31
> >
> > time() returns the number of seconds since the Unix Epoch to
> > the current
> > local time
> >
> > gmtime() should return the number of seconds since the Unix
> > Epoch to the
> >
> What I don't understand is why my php script dies while
> executing the shell script. Set_limit_time should make it
> wait. The build.sh script completes well.
Not the exact solution here but perhaps a work-around. How dynamic is
the data you're generating with your shell script? Perhap
Thank you for answer. I didn't expect ini_set('register_globals','Off') to
work, that's why I had a look at the documentation. There should be
PHP_INI_PERDIR, PHP_INI_SYSTEM but not PHP_INI_ALL
in the table (so it's a mistake in the documentation).
Anyway it may be possible to use this, if the va
> -Original Message-
> From: Jens Lehmann [mailto:[EMAIL PROTECTED]]
> Sent: 24 May 2002 20:31
>
> time() returns the number of seconds since the Unix Epoch to
> the current
> local time
>
> gmtime() should return the number of seconds since the Unix
> Epoch to the
> current GM-time
>
Hi there,
I would like to save images into a blob column. Works good if I use the tmp
file php has created after submitting the form.
But if I do some gd stuff like changing some colors with inside the image
and then save this immage, it does not work.
I used to save the image to a file with:
Anyone knows how I can get the name of an include'd/require'd file and not
getting the name of the main file.
My scenario is like this:
a.php:
require "b.php";
b.php:
echo $_SERVER['PHP_SELF'];
echo $_SERVER['SCRIPT_NAME'];
I get a.php when I want to have b.php.
(Please CC me since Im not a
Jose,
Try this:
for ($i = 0; $i < $whatever; $i++) {
$myArray[] = // ...
}
/bsh/
Jose Jeria wrote:
> in javascript i can build an array doing like this:
>
> for(i=0; i < whatEver.length; i++){
> myArray[myArray.length] = //
> }
>
> What is the equivalent to this in PHP?
> Is this
in javascript i can build an array doing like this:
for(i=0; i < whatEver.length; i++){
myArray[myArray.length] = //
}
What is the equivalent to this in PHP?
Is this the only way:
$myArray[count($myArray)] = //..
/J
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Have a look in the manual. It's something like createfrombmp(). Might be
imagecreatefrombmp(). It's in the images section of functions. You might
need to have the gd library installed for it to work.
You could always use fopen() and fread() to open and read the file. Use it
in binary mode for ima
Hi Guys,
Does anybody know how I can set a users password with php?
I tried using a system call with sudo but I get the error cannot lock
password file. I need to use php to change a users account password.
Any ideas?
Thanks,
Wayne
--
PHP General Mailing List (http://www.php.net/)
To unsub
if you are a newbie to oracle, don't forget to use bind variables in your
queries, if this is possible in your Oracle Version. bindvars are
placeholders
for values in an oracle query, to which you bind your value on runtime.
the advantage in using bind variables is, that oracle doesn't have to
com
I read in php manual that set_time_limit() affects in fact max_execution_time.
You can see in my example code
I wrote in my initial post that I set it to 100k secs. Php don't run in safe
mode so it should go fine.
What I don't understand is why my php script dies while executing the shell
script.
ooopp...sorry just found out why. I just need to have Ora_Commit()
function after all the queries to totally set the data to the database.
Im querying a data which is not commited yet to the oracle database.
Sorry for that I'm just a newbie in oracle.
Thanks to all..
mike
> I've
php-general Digest 27 May 2002 08:50:33 - Issue 1369
Topics (messages 99318 through 99344):
Re: Simulating a FORM POST thing (HELP!)
99318 by: Peter
99319 by: Georgie Casey
Problem with Includes and Variables
99320 by: Pete Rippe
--NEWBIE-- T_String parse error ??
I've recently found out that the Ora_Fetch_Into function cannot get a small
value of the tables data. We've tried to fetch other tables which have a
large amount data ,and it succeeds. The queried values echoed successfully.
Is there any idea why? im using PHP4.2.1 oracle7.3.3
Regards,
Mike
100 matches
Mail list logo