Does anyone know how to create .PS or .PRN files from the *command line* or
PHP under Windows 2000 ???
Thanks.
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Steve Bradwell wrote:
is_int($f) will return true if $f is an integer, false otherwise.
is_int will return false in this case, because it's a string. You have to
use is_numeric
HTH
Erwin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hey all,
if im displaying pages with data from a database eg
www.domain.com/file.php?id=40
on that page i would like to have a previous and next link that would
take it to id 41 and 39 respectively, the only problem being what if 39
or 41 was empty? then i would want the link to be id=42 or
try
www.ozoneasylum.com
Elias
Christopher J. Crane [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Does anyone know of a Javascript forum like this one that I can post a
question to?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
I want to sort text strings, but how could i do this ?
Example:
04.09.2002
05.09.2002
19.03.1999
Is there a way to change the string to something like this ...
2002.09.04
2002.09.05
1999.03.19
Or is there a better way to solve this ??
Bård Tommy Nilsen
--
PHP General Mailing List
Hi There.
One way of doing this:
split each string into an array, delimited by the periods
$sDate = '04.09.2002';
$aDate = split( '.', $sDate );
this will give you an array like
array(
[0]='04',
[1]='09',
[2]='2002'
)
now reverse the array:
$aDate = array_reverse( $aDate );
join back into
Hello
i've uncommended the mcrypt and mhash line in c:\winnt\php.ini. then i
try to start the apache but encounter the following error msg
The procedure entry point _ecalloc could not be located in the dynamic
link library php4ts.dll
Unable to load dynamic library
Hello
(i've confirmed my email address but not sure if you will read my
previous mail, so i send it once more.)
i've uncommended the mcrypt and mhash line in c:\winnt\php.ini. then i
try to start the apache but encounter the following error msg
The procedure entry point _ecalloc could not be
php-general Digest 5 Sep 2002 10:40:19 - Issue 1567
Topics (messages 115239 through 115284):
Re: post doesn't work?
115239 by: Matt Zur
Returning Rows Question
115240 by: Christopher J. Crane
115242 by: Mike richardson
115244 by: Christopher J. Crane
Hello!
I am very new in php and i have a little dummy question ;D
I have a dropdown box with a entry in it called Coctail Blue
Now i want to put the selected string (Coctail Blue in this case) in to a
variable when i press the button below.
options.php is the page it should go after.
// ..SNIP
Hy,
I have an array make with a javascript.
How can I read values with PHP from it?
Kale.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi there.
The value from that dropdown will be returned to you in the variable
$_POST OR $_GET, depending on which method you used to submit the form.
Assuming you use POST, you can access the selected value like this:
$var_from_dropdown = $_POST['theme'];
Regards
-|Scott
-Original
You can't. Javascript happens on the client side AFFTER PHP has happend on
the server side. For PHP to ready variables made with javascrip,t you'd
have to submit those variables/arrays via POST of GET to the PHP file.
Justin
on 05/09/02 9:11 PM, kale ([EMAIL PROTECTED]) wrote:
Hy,
I have
Hi
To Assign values from an array in PHP to JavaScript,
you could try something like this.
$Array = array( 'one', 'two', 'three' );
Now in your JavaScript:
SCRIPT LANGUAGE=JavaScript
JSArray = new Array(?= sizeof( $Array )?);
?php
for ( $iSubscript = 0; $iSubscript sizeof( $Array );
var tmp,url;
url = 'http://site/script.php?';
while(tmp = myArray.shift()) {
url += 'phparray[]' + escape(tmp);
}
document.location.href = url;
In script.php, you'll find array named phparray
kale wrote:
Hy,
I have an array make with a javascript.
How can I read values with PHP from it?
Hi
How is possible to charge some products on E-Shop in php to users with VISA
cards???
Are there some good tutorials on net about this???
Or examples???
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Terence Lee wrote:
Hello
i've uncommended the mcrypt and mhash line in c:\winnt\php.ini. then i
try to start the apache but encounter the following error msg
The procedure entry point _ecalloc could not be located in the dynamic
link library php4ts.dll
Unable to load dynamic library
Hi
Since i moved from a Sun / Solaris Machine to a Compaq / Linux machine
I'm having weird problems with MySQL crashing while running reports written
in php.
The site is amazingly fast now on the Linux server but running a report
that locks the main tables for about 20 seconds raises the load
I forgot , the right version:
var tmp,url,separator;
url = 'http://site/script.php?';
while(tmp = myArray.shift()) {
url += separator + 'phparray[]' + escape(tmp);
separator = '';
}
document.location.href = url;
Marek Kilimajer wrote:
var tmp,url;
url = 'http://site/script.php?';
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hey,
If your php version is = 4.1.0 use:
$var_from_dropdown = $_GET['theme'];
else use:
$var_from_dropdown = $HTTP_GET_VARS['theme'];
You might want to change the method used to submit your form
from get to post, like:
// Start Dropdown
echo 'form
You have a JavaSript array on the client side, so you want to provide
some click here link or button.
The whole thing will look like this:
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
html
head
titleUntitled/title
script language=JavaScript
!--
var myArray;
var
Hi,
I tried it but i wasnt luck:
// Theme
echo '
form name=theme action=options.php target=right class=menu
nbsp;nbsp;select name=theme';
for($i=0;$isizeof($theme_name);$i++)
{
echo option value='.$i.'.$theme_name[$i]./option\n;
}
echo '/selectnbsp;nbsp;input type=submit name=get value=select
I am not sure, but my best guess is if you are using Apache and Php as a
module is that each request will be handled by a seperate child process
of Apache.
Perhaps someone can correct me if I am wrong.
Rodrigo Dominguez wrote:
Ok, thank you just one more doubt
Is it threading safe?
For
method is an attribute of form, not sure about input.
---
// Theme
echo '
form name=theme action=options.php target=right class=menu
METHOD=POST
nbsp;nbsp;select name=theme';
for($i=0;$isizeof($theme_name);$i++)
{
echo option value='.$i.'.$theme_name[$i]./option\n;
}
echo
[snip]
// Theme
echo '
form name=theme action=options.php target=right class=menu
nbsp;nbsp;select name=theme';
for($i=0;$isizeof($theme_name);$i++)
{
echo option value='.$i.'.$theme_name[$i]./option\n;
}
echo '/selectnbsp;nbsp;input type=submit name=get value=select
METHOD=POST';
// or:
echo
Actually, there ARE servers at both ends. And the one I am sending to is
cut off from the net except for the SMTP mail port so I can do whatever I
want to with it.
That's an excellent idea! *slaps head* Why didn't I think of that? :)
Thanks Justin!
Bob
- Original Message -
From:
Hi,
guys,
Just a short question,
I want to add cURL,libJPG and libPNG for my site and my hostscan you tell me where
you downloaded it if you used it and what version?
Thanks,
-Ryan.
[snip]
RAI want to add cURL,
http://www.google.com/search?hl=enlr=ie=UTF-8oe=UTF-8q=cURL
RAlibJPG
http://www.google.com/search?hl=enlr=ie=UTF-8oe=UTF-8q=libJPG
RAand libPNG
http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=libPNG
RAwhat version?
The latest one, of course.
[/snip]
I refer you
Go to www.mysql.com and make sure you are using the latest version of
MySQL.
Adam
On Thu, 5 Sep 2002, Boaz Yahav wrote:
Hi
Since i moved from a Sun / Solaris Machine to a Compaq / Linux machine
I'm having weird problems with MySQL crashing while running reports
Hey,
Thanks for your help dude,
even appreciate the sarcasm :-)
Cheers,
-Ryan.
- Original Message -
From: Jay Blanchard [EMAIL PROTECTED]
To: 'Ryan A' [EMAIL PROTECTED]; :[EMAIL PROTECTED]
Sent: Thursday, September 05, 2002 3:10 PM
Subject: RE: [PHP] cURL,libPNG,libJPG download
i want to format the filename of an uploaded file as follows :-
-- replace blankspace with _
-- remove any illegal characters.
Which string functions should I use to do this?
Thanks,
Javier
_
Join the worlds largest e-mail
$date = '04.09.2002';
$date = preg_replace('/(\d{2}).(\d{2}).(\d{4})/', '\\3.\\2.\\1', $date);
echo $date;
Output:
2002.09.04
Read up for more info.
http://www.php.net/manual/en/ref.pcre.php
regards
alan
Bård tommy nilsen wrote:
I want to sort text strings, but how could i do this ?
Here is a function that is used in the My_eGallery modules for PHP nuke.
function find_nom_dif($nom)
{
$nom=stripslashes($nom);
$nom=str_replace(',,$nom);
$nom=str_replace(\,,$nom);
$nom=str_replace(\,,$nom);
$nom=str_replace(,,$nom);
check out preg replace in the manual... particularly example 3 of this page:
http://www.php.net/manual/en/function.preg-replace.php
personally, i'd replace anything other than a-zA-z0-9 with _
Justin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
[snip]
i want to format the filename of an uploaded file as follows :-
-- replace blankspace with _
-- remove any illegal characters.
Which string functions should I use to do this?
[/snip]
http://www.php.net/manual/en/function.eregi-replace.php
HTH!
Jay
--
PHP General Mailing List
You shouldn't use str_replace as he said, but preg_replace() or
ereg_replace(), ereg are easier to use. take a look at
www.php.net/ereg_replace .
--
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet
Javier Montserat [EMAIL PROTECTED] a écrit dans le
Well, this is my original Code:
--
// Theme
echo '
form name=theme action=options.php target=right class=menu
METHOD=POST
nbsp;nbsp;select name=theme';
for($i=0;$isizeof($theme_name);$i++)
{
echo option value='.$i.'.$theme_name[$i]./option\n;
}
echo '/selectnbsp;nbsp;input
[snip]
Well, this is my original Code:
// Theme
echo '
form name=theme action=options.php target=right class=menu
METHOD=POST
nbsp;nbsp;select name=theme';
for($i=0;$isizeof($theme_name);$i++)
{
echo option value='.$i.'.$theme_name[$i]./option\n;
}
echo '/selectnbsp;nbsp;input type=submit
I use this, it includes also national characters
$name=strtr( $name,
`O}ao~¾YYµAÁÂAÄAAÇEÉEËIÍÎI?NOÓÔOÖOUÚUÜÝßaáâaäaaçeéeëiíîi?noóôoöouúuüýy
*!@#$%^()+=,
SOZsozlYYuAAACDNOOYsaaaconooyy_);
Javier Montserat wrote:
i want to format the filename
Why don't you take the guesswork out of it a bit, and NOT write to a file
just yet... instead, just echo the var to the screen. IF that works, then
we know it's not your form that is the problem, it's the exec().
Justin
on 06/09/02 12:08 AM, Mario Ohnewald ([EMAIL PROTECTED]) wrote:
Well,
hi,
thanks for your help again.
i've noticed that file function have two different behaviors.
i tested file function with the url and it seems that the file is
interpreted. But i tried the code u give me and without the
http://myurl.com/; at the beginning, a warning is raised :
Warning:
From: Jay Blanchard [mailto:[EMAIL PROTECTED]]
Did you put a closing form tag? /form
you are right, the closeing tag was missing, well, it still doesnt
work/stays emty ;/
// Theme
echo '
form name=theme action=options.php target=right class=menu
method=POST
nbsp;nbsp;select name=theme';
[snip]
Did you put a closing form tag? /form
you are right, the closeing tag was missing, well, it still doesnt
work/stays emty ;/
[/snip]
Does this form refer to itself, or another page? Also, like Justin said,
echo the variable before writing to a directory to see what is getting
written, if
oanda www.oanda.com had a service where you could socket into it , that is
now not free but they still have a free email service which i parse the
information out of the email and add it to a currency table in the database
which is run via a daily cron job
Justin French [EMAIL PROTECTED] wrote
hi there i am trying to pass error code vars within a page say i post to a
query string like ?action=upload i would like to be able to send an error
code if any back to the page and then it can bring it up the only way i can
think of it when i redirect back to the previous page is adding a
Hello,
I am looking for usefull pointers on how to install GD graphing libraries with PHP 4.0
on a windows 2000 system.
Thanks,
Adnane.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$filename = strtolower (eregi_replace ([^A-Za-z0-9_.], _, $filename));
seems to be what I want.
thanks to everyone for the help
Javier
_
Send and receive Hotmail on your mobile device: http://mobile.msn.com
--
PHP General
is there a way to do a dynamic screen capture of a website using gd ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm using version 6 of IE and Netscape
I'm allowing the user to open/dowload a file from a secure locaiton on our
server. Under Netscape it works great! Under IE, it doesn't work at all.
IE complains about not being able to read from the server.
Anyone know of any workarounds?
here's the
Hi,
I'm using GD to put a dinamic text in some buttons. The problem is that the
original image that I use has 8k and after i put a black text it jumps to
20K. What I'm doing wrong? there's a way to compact this?
Thank's
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Hi,
I have a resume system that put a rank in it resume at runtime. example: If
you do a serach for each match that it finds it atribute 1 point, now I need
to sort the generated list based in this rank, how can i do this, since this
rank is dinamic and isn't in database??
Thank's
--
PHP
stick the values in an array and use asort() to sort it.
-Original Message-
From: Rodrigo Peres [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 05, 2002 8:30 AM
To: PHP
Subject: [PHP] sort dinamic generated table
Hi,
I have a resume system that put a rank in it resume at runtime.
Rodrigo Peres wrote:
Hi,
I have a resume system that put a rank in it resume at runtime. example: If
you do a serach for each match that it finds it atribute 1 point, now I need
to sort the generated list based in this rank, how can i do this, since this
rank is dinamic and isn't in database??
Attach the two GIFs (pre and post text) in an email to me...
Justin
on 06/09/02 1:26 AM, Rodrigo Peres ([EMAIL PROTECTED]) wrote:
Hi,
I'm using GD to put a dinamic text in some buttons. The problem is that the
original image that I use has 8k and after i put a black text it jumps to
I seriously doubt it, because really, what you want to capture is how the
*browser* renders the HTML code... GC is not a browser, nor a parser of HTML
code.
This topic has been discussed a few times in various shapes and forms in the
archive... it'd be worth doing a search for screen grab and
I'm running Apache 1.3.26 and PHP 4.2.2 on a windows NT system. I've been
having problems with some scripts I got from a friend off the net. The
script runs an initial setup process and asks for a username and password
and e-mail address.. you submit the info and it will set up an admin account
[snip]
I'm running Apache 1.3.26 and PHP 4.2.2 on a windows NT system. I've been
having problems with some scripts I got from a friend off the net. The
script runs an initial setup process and asks for a username and password
and e-mail address.. you submit the info and it will set up an admin
yeh i was getting too deep into automation scripts on windoze but became
system intensive thanks
Justin French [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I seriously doubt it, because really, what you want to capture is how the
*browser* renders the HTML
The answer is compression - the image with text is more complicated, so
the compression ration is lower
Rodrigo Peres wrote:
Hi,
I'm using GD to put a dinamic text in some buttons. The problem is that the
original image that I use has 8k and after i put a black text it jumps to
20K. What I'm
Shouldn't be possible, as it would be a security risk.
electroteque wrote:
yeh i was getting too deep into automation scripts on windoze but became
system intensive thanks
Justin French [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I seriously doubt it,
If the variable is within a form you could do:
input type=hidden name='name_of_var' value=$err_code
This would pass to the next page, otherwise the ?name_of_var=$err_code mau be
the way to go?
-Brad
hi there i am trying to pass error code vars within a page say i post to a
query string like
Hello,
I just started to use some PEAR classes, by now, I'm dealing with PEAR::DB
that has a lot of examples and documentation but I can't find anything
similar for PEAR::HTML_QuickForm.
Where can I find documentation about this class ? I'm trying to learn it
just by trial and error but a list
On Thu, 5 Sep 2002, Javier Montserat wrote:
i want to format the filename of an uploaded file as follows :-
-- replace blankspace with _
-- remove any illegal characters.
Which string functions should I use to do this?
http://www.php.net/manual/en/function.ereg.php
Thanks. As you can prolbably tell, I am quite the beginner. Thanks for the
help!!!
--
Dion Munk
[EMAIL PROTECTED]
Jay Blanchard [EMAIL PROTECTED] wrote in message
003701c254f2$f3e5aed0$8102a8c0@000347D72515">news:003701c254f2$f3e5aed0$8102a8c0@000347D72515...
[snip]
I'm running Apache 1.3.26
Ereg() would be an excellent choice.
To move a step further, although it is a little more complex to become
familiar with, the perl regular expressions are considerably faster and
more efficient for anything with an expression, and str_replace() is
faster yet, if replacing a simple string.
I'm using 3.23.52-log
-Original Message-
From: Adam Williams [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 05, 2002 3:22 PM
To: Boaz Yahav
Cc: PHP General (E-mail)
Subject: Re: [PHP] PHP MySQL Apache on Linux vs. Solaris
Go to www.mysql.com and make sure you are using the
I haven't had any problems with mysql like you are having. I would
recommand you recompile the source rpm to the binary rpms and then install
them.
Adam
On Thu, 5 Sep 2002, Boaz Yahav wrote:
I'm using 3.23.52-log
-Original Message-
From: Adam Williams
Hey
I have a prob with my php file upload. i am using windows
my html file looks like
HTML
HEAD/HEAD
BODY
FORM ACTION=upload1.php3 METHOD=post
ENCTYPE=multipart/form-data
Upload the datafile here
INPUT TYPE=file NAME=file
brbr
INPUT TYPE=submit NAME=Submit VALUE=Submit Form
/FORM
/BODY
Take a look at
http://www.php.net/manual/sv/printwn/features.file-upload.php, your pages
should be named .php and not .php3 if you support PHP4.
--
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet
Ram K [EMAIL PROTECTED] a écrit dans le message de
You have to use recursive functions for this. You can write one..
function linkchecker($id)
{
$query=SELECT COUNT(*) AS mycount FROM tablename WHERE id=.$id.;
$result=mysql_query($query);
$row=mysql_fetch_array($result);
$nextid = $id + 1;
if (($row[mycount]) 0 )
{
I am trying to find out a way I can pass a variable that is basically
an XML document to xslt_process and make it all work. My script
works if I have:
$xp = xslt_create();
$result = xslt_process($xp, 'test.xml', 'test.xsl');
however, if I try to do:
$xp = xslt_create();
$result =
Hi,
I have Marc Robards article on XML Parsing with PHP
(wirelessdevnet.com).. which talks about parsing an XML FILE. My XML is
from a remote server (used curl to get it back to PHP as a variable).
How do I change the following while to read from variable instead of
file without getting
You should put the content into a file.
--
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet
Devin Atencio [EMAIL PROTECTED] a écrit dans le message de news:
067301c25516$ff18c4d0$[EMAIL PROTECTED]
I am trying to find out a way I can pass a variable
Hi:
I am attempting to calculate a mortgage payment using the following code.
?PHP
$P = 10;// principal outstanding
$I = 4.5; // annual interest rate percentage
$N = 20;// number of years
// The formula that I am using
On Thu, 5 Sep 2002, Devin Atencio wrote:
I am trying to find out a way I can pass a variable that is basically
an XML document to xslt_process and make it all work. My script
$xmldata = a whole boatload of well-formed XML;
$xsltArgs = array( '/_xml' = $xmlStr );
$xp = xslt_create();
$result =
Hi Mitja,
If I understand this right, the SWF file has to be a SWF file.
To make it work like you want, you need a script that
- writes the SWF from the db to a SWF file on the server,
- returns HTML with object/embed tags and the path to the SWF file.
Timo
--
PHP General Mailing List
Hi Jason,
have a look at Richard Lynchs reply posted at Sat, 31. Aug.
2002 03:08:39 Europe/Berlin with subject [PHP] Re: performing
searches with random entries
Timo
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I'm just wanna know why the session doesn't end when the user closes the
browser window and how can i make it.
Thanks
Raphael
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Because there is absolutely no way for PHP to know that the user has
closed the browser window. Nothing is sent from the browser to the server
on a window close. By using session cookies (cookies without a specified
expiry time) the session is effectively ended since the cookie is gone
once the
You can end the session by using function session_destroy().
See:
http://www.php.net/manual/en/function.session-destroy.php
For general information on how PHP handles sessions see:
http://www.php.net/manual/en/ref.session.php
Hope this helps.
Gurhan
On Thu, 2002-09-05 at 17:17, Raphael
Thanks,
But, if the client don't accept cookies?
And if the user open a new browser window with the same url, the new window
will use the same opened session.
I'm having trouble with this
Thanks,
Raphael
Rasmus Lerdorf [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL
Of course Gurhan,
I have read all the php manual.
How can I send a message when the user closes the browser to destroy the
session?
Thanks in advance
Raphael
Gurhan Ozen [EMAIL PROTECTED] wrote in message
1031261344.5091.266.camel@LOCALHOST">news:1031261344.5091.266.camel@LOCALHOST...
You
Ohhh, I see what you are looking for..
You have to play around with some javascript to do it.
Have a logout.php file, and destroy session in that file ...
And in the main page, have the javascript to open up a new window with
logout.php page.
Makes sense?
I hope this helps.
Gurhan
On Thu,
A little addition/clarification,
I mean in the main page, have the javascript open up a new window with
logout.php file when the user closes the browser.
Gurhan
On Thu, 2002-09-05 at 18:04, Gurhan Ozen wrote:
Ohhh, I see what you are looking for..
You have to play around with some javascript
Agreed,
This is quite a good engine.
I don't have very big log files as I just rolled them over a couple of weeks
ago, but you gan view sample live stats here:
http://www.nudenurd.com/stats/
Cheers,
Liam
- Original Message -
From: olinux [EMAIL PROTECTED]
To: tomba [EMAIL PROTECTED];
Hello all,
I am working on a LAN application and am interested in obtaining the user's
network card address to limit usage of the program. Is there a way to do
this in PHP?
I am on a network that uses DHCP so using the IP address probably wont work
and I am also worried about IP spoofing.
Hi,
The best way I think is to use exec() or system() to ask that to the system.
May be someone knows something better too.
--
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet
Chris Cook [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL
The best way IMHO, to debug problems like this is to echo out your
insert query to the screen and not actually run the query, or run it and
make sure you use:
$sql = INSERT INTO employees (first,last,address,position) VALUES
('$first','$last','$address','$position');
$result = mysql_query($sql)
I´m quite a newbie in making php, but I managed to run the test you
suggested,
but nothin happened. This time it was propably the code I did:
first I added the or die(Invalid query: $sql); part and ran the form,
but everything happened just like when refreshing a page.
Then I did this:
Hi,
I'm trying to use Pear stuff but don't know if I should post to that list as just a
user.
I'm lost when it comes to Auto Building. It has an example of that and I tried
to do it on a local linux box where I'm root but it failed
all to undefined function: getstaticproperty
and I found
Why not unregistered the session variables first, destroy the session
second and redirect the user with a header location to a plain html page
that includes a one line JavaScript in the body tag like
onload+thiswindow cloase or something like that, and a message that
please closes this window for
using exec() or system() will only be able to execute commands on the
machine php is installed on. I sometimes wonder how universities and
broadband isp's do this. I'd be interested in seeing how it works.
Sorry, I'm not much help anymore.
tyler
On Fri, 6 Sep 2002 01:24:07 +0200
[EMAIL
hello
i've tried to read a line from a text file by fgets($fp,8192). it work
fine. however, there is a line over 8192 char and i tried to increase
the 2nd parameter (e.g. 8193, 16384, 88192) still only 8192 char are
read to my string variables.
is it a limit of fgets or length of a string? any
PHP will not allow me to do this because safe_mode is on. I've been trying for
the past two weeks to turn it off. Nothing I do changes it. I've changed,
You'll have to re-compile without safe mode in the ./configure
--
Like Music? http://l-i-e.com/artists.htm
--
PHP General Mailing List
?php
$str = 'hi bmy friend/b! br / this message uses html entities a
href=http://www.trini0.org;test/a!';
$str = preg_replace('/(a href=http:\/\/.*.*\/a)/',
htmlspecialchars($1), $str);
Maybe I'm missing something here, but can't you just do:
$str = htmlspecialchars($str);
--
Like Music?
I'm getting multiple backslashes in data I get out of a mysql database.
That's crazy...
You'd have to be adding an awful lot of backslashes *before* you put it in
there.
MySQL eats up one (1) set of \s when it reads data.
1. $string = stripslashes($string); - Doesn't do anything
Sure it
Fatal error: Call to undefined function: snmpwalk() ... ... and this
for all snmp functions.
This means that the --with-snmp part of ./configure didn't really work.
Go back and do the ./configure again, only like this:
./configure --with-snmp ... 21 configure.output
You can use:
tail -f
Hi,
I am new to PHP. I am running the module version 4.2.2 from Marc
Lyanage (entropy.ch) on OS X 10.1 and noticed that my
/usr/local/lib/php.ini is empty!?
Is there a way
Just copy the php.ini-dist from the PHP source tarball or wherever you can
find it into there.
--
Like Music?
if ($REQUEST_METHOD=='POST') {
$name = escapeshellcmd($name);
$group = escapeshellcmd($group);
$to = [EMAIL PROTECTED];
$from = FROM: $name, $group;
$subject = The subject of this mail\n\n;
$body = Name: $name\t;
$body .= Group: $group\n;
$body .= \n\n$comments\n\n;
Printing works fine, however 2 problems:
1. linefeed (\n) doesn't work
2. escape sequences to print BOLD, ITALIC, UNDERLINE,
NARROW don't work
Probably the same problem, really.
$lp = popen(lpr -Plp1, w);
I'm guessing that popen uses the shell or something, and it's eating your
control
1 - 100 of 122 matches
Mail list logo