Hi there,
i am not getting it. How can I read out the magical __FILE__ constant inside
an _extension_ (a loadable module) ? Its not in symbol_table, so where is
it?
bg
Sam
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
And I still don't see how your proposed method handles the problem you
mentioned above with Image2...
RDB
Now, first, what would you prefer? Second, I hope you understand how the new
feature would address the issue (and that you know what the issue is - if i
explained it clearly, of course)
As
I want to have a link on a php page that when opened, has to be closed
in order to move on. I have done this on pages using a button and
_javascript_ as follows:
When the button is clicked, the form is *NOT* submitted - this is what
I want.
However, if I use an anchor, the form is submitte
Hi -
Got PHP4 running on IIS as a testing server (only used internally for my
own testing purposes). It suddenly just flurbed on pages it worked fine
on minutes ago. Now suddenly it gives me this error (with popups telling
me about the missing files):
Security Alert! The PHP CGI cannot be acce
Todd Cary <[EMAIL PROTECTED]> wrote:
> [...]
> However, if I use an anchor, the form is submitted. Is there a way to
> prevent this? Here is the code I tried:
>
>
I believe you can put something like (not tested):
>
> Todd
> --
Curt
--
--
PHP General Mailing List (http://www.php.net/
Try this (note the "return false;" addition at the end):
--
Aaron Gould
Web Developer
Parts Canada
- Original Message -
From: "Curt Zirzow" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 16, 2003 2:15 PM
Subject: Re: [PHP] Opening a Window with JavaScript
> Todd C
I see this randomly on my little server. Just hit the refresh button :P
J
-Original Message-
From: Shena Delian O'Brien [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 16, 2003 10:57 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Odd Error (PHP4 & IIS)
Hi -
Got PHP4 running on IIS as a testin
Tried. Didn't work then, isn't working now.
Johnny Martinez wrote:
I see this randomly on my little server. Just hit the refresh button :P
J
-Original Message-
From: Shena Delian O'Brien [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 16, 2003 10:57 AM
To: [EMAIL PROTECTED]
Subject: [PHP
I tried that, but there is no error to stop the script at this point.
The script continues past this point and to the end of the script -
there are just no values in the variables for the second query, which
obviously gives me the wrong results.
-Original Message-
From: Marek Kilimajer [ma
Hi guys,
I want to convert my old java greetings programs into php scripts but am
stuck on one little thing.
I have a bunch of thumbnails in a 3 directories, the problem is the number
of thumbnails in each directory is differient...how do i first make the
script look into the directory, display (ma
Hello,
Well I am doing by first reg ex operations and I am having problems which I just
cannot figure out.
For example I tried
echo eregi_replace ("(\s*)\s*\s*purchasing power parity", '%POWER%', 'sdsdssPurchasing power parity');
and this worked perfectly,
but when I chnaged that to
echo eregi_
Wow thats strange?? I am using PHP 4.3.2 as well and I don't see that happening where
it serializes the object when assigning it to the $_SESSION. I am using the dbg
debugger and nusphere PHP editor and I can step through the code and as I do
it shows that the session var is not serialized. Howe
Has anyone had any success with using variables in a regex shown below??
$foo = 3;
$bar = 4;
preg_match('/^[a-z0-9\-_\.]+\.[a-z0-9]{$foo, $bar}$/', $some_string)
or even
preg_match('/^[a-z0-9\-_\.]+\.[a-z0-9]{' . $foo . ', ' . $bar . '}$/',
$some_string)
but this would work
preg_match('/^[a-z0-9
Gerard Samuel <[EMAIL PROTECTED]> wrote:
> Has anyone had any success with using variables in a regex shown below??
>
> $foo = 3;
> $bar = 4;
> preg_match('/^[a-z0-9\-_\.]+\.[a-z0-9]{$foo, $bar}$/', $some_string)
You have single quotes, so php wont expand the variables inside.
>
> or even
> pre
Hi List
Just want to make sure:
Is there no way for me to easily determine the byte size occupied by a
variable (regardless of type)?
It might be trivial, or I'm missing the point (as per usual)...
I would like to find the actual byte size that is transmitted when say a
$_POST variable is sent,
Curt Zirzow wrote:
Gerard Samuel <[EMAIL PROTECTED]> wrote:
or even
preg_match('/^[a-z0-9\-_\.]+\.[a-z0-9]{' . $foo . ', ' . $bar . '}$/',
$some_string)
that should work.
Unfortunately it doesn't for some reason. Don't know why.
but you could do this:
$pattern = "/^[a-z0-9\-_\.]+\.[a-z
I am new to all this, but here is the basic code:
$link_titles = file('links/master.txt');
$links_include = $link_titles[$point]; // path to directory
include $links_include;
If I echo the value of $links_include just prior to the include() function
it contains what I would expect it to conta
Sid <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Well I am doing by first reg ex operations and I am having problems which I just
> cannot figure out.
>
> For example I tried
> echo eregi_replace ("(\s*)\s* size=\"2\">\s*purchasing power parity", '%POWER%', 'sdsdss bgcolor="#f8f8f1">Purchasing power
Hello All---
I'm having some trouble getting PHP to communicate with my Windows 2000 MS
Exchange Server... I'm running PHP 4.3.2 on a Win2000 machine serving with Apache 1.3.
The code I'm using is:
$mbox = imap_open("{x.x.x.x:143}","admin","adminpass", OP_HALFOPEN);
$err = imap_errors();
Gerard Samuel a écrit:
Curt Zirzow wrote:
Gerard Samuel <[EMAIL PROTECTED]> wrote:
or even
preg_match('/^[a-z0-9\-_\.]+\.[a-z0-9]{' . $foo . ', ' . $bar .
'}$/', $some_string)
I think, you Forgot, a \ before the $ at the end of the expression...
that should work.
Unfortunately it doesn'
Hey,
Am just getting into PHP cookies and have gotten a problem...(surprise
surprise)
Am trying to set a basic cookie to see exactly how things work before I
start using it in my apps, heres the code i am using:
(SetCookieEx.php)
This is the output I am getting:
**
Warning: s
First, the prob you got : WARNING
comes from the following error:
(\s+face=\"Verdana, Arial, Helvetica, sans-serif\"|)>
After the | (OR) sign, you must define another case, example:
echo eregi_replace ("(\s*)\s*\s*purchasing power parity", '%POWER%',
'sdsdssPurchasing power parity');
Secondl
But what's your prob ?
When you say the second one seems to never be executed ...
Does the line:
$row = mysql_fetch_array($result2);
launches a Php Error ?
And pay attention, because you're using mysql_fetch_array and
mysql_fetch_row, be sure that
you are not treating the result in the same way ;-
"Ryan A" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
> Hey,
> Am just getting into PHP cookies and have gotten a problem...(surprise
> surprise)
>
> Am trying to set a basic cookie to see exactly how things work before I
> start using it in my apps, heres the code i am us
--- Ryan A <[EMAIL PROTECTED]> wrote:
> Am just getting into PHP cookies and have gotten a problem...(surprise
> surprise)
>
> Am trying to set a basic cookie to see exactly how things work before I
> start using it in my apps, heres the code i am using:
> (SetCookieEx.php)
> setcookie("name1","1
>Wow thats strange?? I am using PHP 4.3.2 as well and I don't see that
>happening where it serializes the object when assigning it to the
>$_SESSION.
It doesn't do it when you assign it into the $_SESSION array, it does it
when the script completes and updated session data is written to the
sessi
Of course on the official page ;-)
http://www.php.net/manual/en/funcref.php
Each extension defines functions which can easily be recognised by their
prefix:
example:
xslt_create => xslt extension
bzwrite => bzip2 extension
"Brenton Dobell" <[EMAIL PROTECTED]> a écrit dans le message de
news: [EMA
Hi...
are your sure your Exchanger server has imap enabled and port 143 is open ?
If you've got the message "connection refused", it can be :
- not imap server is running
- your login/password couple is wrong
or
- you can't connect to the port 143...
regards,
P.E. Baroiller
"Charles Vos" <[EMAI
Hi,
when you call your script, is $point defined somewhere ?
if $point is empty, you'll get an empty string for $links_include and
include $links_include will not work.
Regards,
P.E. Baroiller
"Dougd" <[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
> I am new to all this, bu
Hi,
did you try count($value) and strlen($value) ?
count($value) will give size of an array, and strlen($value) size of a
string ...
Regards,
P.E. Baroiller
"Petre Agenbag" <[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
> Hi List
> Just want to make sure:
>
> Is there no w
[EMAIL PROTECTED] (John Manko) wrote in
news:[EMAIL PROTECTED]:
Does it apply also to MSSQL = Microsoft SQL Server?
> Look here
> http://www.mysql.com/doc/en/BLOB.html
>
> Actually, if you don't care if the images can be view from outside the
> DB, you can do what I do.
> I simplely put the nam
yes, I should have mentioned: $point is defined in the URL string
http://something.com/index.html?point=12
"Baroiller Pierre-Emmanuel" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> when you call your script, is $point defined somewhere ?
> if $point is empty, you'll get
|Valentin wrote:
|
|>Hi, is any way to pass a $Var from one to other php pages without using
|> and Cookies?
|>
|>Thanks,
|>
On Jul 16, 2003, "John Manko" claimed that:
|page1.php
|$_SESSION['myvars_VARNAME'] = $varname;
|the 'myvars_' is just for identification purposes, so avoid over-writing
|a
I also know with the javascript open window, you can force the print window
to popup, what do you have to add to this link below??
Thanks
-Original Message-
From: Aaron Gould [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 17, 2003 3:48 AM
To: Curt Zirzow; [EMAIL PROTECTED]
Subject: Re: [P
--On Monday, June 23, 2003 08:30:19 AM -0600 "Johnson, Kirk"
<[EMAIL PROTECTED]> wrote:
So what is the diffirent between :
session_start ();
$_SESSION['eventid'] = 'arma2';
and
session_start ();
session_register('arama2');
Use the first method to create session variables when
register_global
Hi Mike
Yes your right about when the session data is updated. The problem then
lies in when I try to read the object from the session var. I include at
the top of the file the class definition.
Not to get sidetracked but when you say you wrote another layer, are you
talking
about utilizing the
On Thursday, July 17, 2003, at 12:17 AM, Curt Zirzow wrote:
Excellent point! I find my self using regex's a bit to often when there
are other solutions available.
btw, have you ever tested the difference between
if(ereg('^[0-9]{6}$',$str))
if(preg_grep('^[0-9]{6}$',$str))
I've be
This my problem:
I have this insert statement in my code that works fine for all strings
except strings that include the following characters:
' "
Any ideas?
Thanks,
Dale
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
This is a reply to an e-mail that you wrote on Thu, 17 Jul 2003 at 01:13,
lines
prefixed by '>' were originally written by you.
> This my problem:
> I have this insert statement in my code that works fine for all
> strings
> except strings that include the following characters:
> ' "
Have
Not sure what the problem was, but I dug up a similar script I used for
something else and modifed it for this project, and voila. I then put
the two side by side and I still can't see where the problem is.
Thanks for the input.
-Original Message-
From: Nomadeous [mailto:[EMAIL PROTECTED
hello,
how do you make a bcc on php on a form 2 email settings..
--
Thank you,
Louie Miranda ([EMAIL PROTECTED])
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Just include Bcc in the extra headers. Take a look at
Example 4. Sending complex email
http://www.php.net/manual/en/function.mail.php
-Original Message-
From: Louie Miranda [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 16, 2003 5:47 PM
To: [EMAIL PROTECTED]
Subject: [PHP] bcc on php
Hi
I need your help.
Can you please visit a site
http://sspsoft.com/test/ip2ll.php (in case if you cannot get it, please
click on http://ns1.webhostdns.us and then click on the website link.)
which should identify your Country, State, City. Please click on one of the
buttons to provide feedback
Sven, thanks for the info!
"sven" <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...
> a pdf-page can have almost every format you want.
>
> originally you work with postscript-dots, where 72 dots are 1 inch.
> it's easy from that point to calculate from metric system, where 1
>
Hello,
This is a reply to an e-mail that you wrote on Thu, 17 Jul 2003 at 02:02, lines
prefixed by '>' were originally written by you.
> I need your help.
> Can you please visit a site
> http://sspsoft.com/test/ip2ll.php (in case if you cannot get it,
> please
> click on http://ns1.webhostdns.us a
i never tried FPDF but just downloaded it. i'll try in a while..
have you tried making a business card using this?
i've testing the pdflib it works great, but the sad thing is i have to pay
for it.
--
Thank you,
Louie Miranda ([EMAIL PROTECTED])
- Original Message -
From: "Enda Nagle
> http://nanoweb.si.kz/
>
thanks for this link, it will helps me alot.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi there,
I read this interesting thread and come up with some
questions.
1. How efficient is to use XML+XSLT solution? Does it
add processing overhead to the system?
2. Do you have some examples which can describe the
separation of layers using the XML+XSLT technology?
3. Currently i am stori
hi there i have a little problem writing files on a php3 server this code
worked yesterday but isnt
$handle = fopen("/www_tools/apache/htdocs/phptest/temp_real/test.inc",'a');
$buffer = "test";
echo fwrite($handle,$buffer,4000);
fclose($handle);
i get a filesize of 0 and nothing writes to it what
On Thursday, July 17, 2003, at 11:38 AM, Louie Miranda wrote:
i never tried FPDF but just downloaded it. i'll try in a while..
have you tried making a business card using this?
i've testing the pdflib it works great, but the sad thing is i have to
pay
for it.
What's the problem with paying for
I have used pdflib EXTENSIVELY for over a year. I develop products for a
company who sells web based tools that allow medium/large corporations to
automate the creation of advertising materials. These tools are used by the
companies dealers and franchieses. We chose pdflib because of a few uni
> What's the problem with paying for something if
nothing.. nothings wrong, but if the free GNU software can do it also, i
switch to free software.
Like php is :) At first not that mature but look at it now..
people have different opinions, and i respect yours.
--
Thank you,
Louie Miranda ([E
Hi All,
I have a system that allows a person to upload photos to the server
via an admin web form.
I have been using the code for about a year with no problem. I
designed it specifically for a client of mine that has just started
cruising on a sailboat for a few years.
They tryed uploading a
hmtldoc rulez , i have tried fpdf and is tedious u have to draw the tables
>> What's the problem with paying for something if
>
> nothing.. nothings wrong, but if the free GNU software can do it also,
> i switch to free software.
>
> Like php is :) At first not that mature but look at it now..
>
>
I've got this new server running with folks from all over uploading PHP
code. I don't know all the folks, so I've turned on safe_mode, set an
open_basedir to each user's documentroot, and left register_globals at
its default.
And now I'm getting scads of requests to turn on register_globals from
why not build a GET QUERY_STRING, save it in a database along with the
session_id, the read it on the second page, parsing the string.
Jeff Harris wrote:
|Valentin wrote:
|
|>Hi, is any way to pass a $Var from one to other php pages without using
|> and Cookies?
|>
|>Thanks,
|>
On Jul 16, 2003,
--- Paul Chvostek <[EMAIL PROTECTED]> wrote:
> I've got this new server running with folks from all over
> uploading PHP code. I don't know all the folks, so I've
> turned on safe_mode, set an open_basedir to each user's
> documentroot, and left register_globals at its default.
>
> And now I'm get
This is only my stubborn opinion...
I would turn it on for now with a warning that it will be turned off
soon...
I work for a company which is strictly Microsoft/Domino Technology and
until I arrived, many have not heard of PHP and for the few that did,
well let's just say that sloppy, unstable,
My question is regarding strings in php. I have this form in which the user
fills in a description. The problem is that if the user uses any
aprostrophe's or any other unusual characters in the form, the string can
not be inserted into my ms sql database.
Any ideas?
Thanks,
Dale
--
PHP Genera
Given this problem..
I have this html form that has a "State" option and it list all the US
states. And i also have a "State/Province" field if ever he does not live in
the US.
My problem is how will i recognize both? I Mean, i will pass it over to a
php program and ofcourse the php will parse the
I've googled for it, but nothing came up. How do I display code on a page
without it being executed?
i want the page to display HTML code as it would look if you typed it into
an editor (not encoded), and the code I want to display is being spit out by
PHP. Which functions should i look at? i
--- Jason Paschal <[EMAIL PROTECTED]> wrote:
> I've googled for it, but nothing came up. How do I display code
> on a page without it being executed?
Try htmlentities()
Chris
=
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.org/
--
PHP General Mailing
On Wed, Jul 16, 2003 at 11:42:29PM -0500, Jonathan Villa wrote:
>
> This is only my stubborn opinion...
>
> I would turn it on for now with a warning that it will be turned off
> soon...
At least in my case, it's never been on in the past, and the queries are
coming from folks who want me to ch
Hi folks,
I currently have an interesting dilemma - any help is appreciated (if
possible, CC directly to [EMAIL PROTECTED] as well as the list).
What Ive got is a PHP wrapper script that performs authetication, and uses
"readfile()" to return the requested file. So a user requests
/path/to/fil
--- Dan Goodes <[EMAIL PROTECTED]> wrote:
> What I want is for the PHP script to read ALL the headers for the
> request (in particular, RANGE headers), and then return the relevant
> portion of the file. Can this be done fairly simply?
I think you will find all header in the $_SERVER array. It is
Ryan A <[EMAIL PROTECTED]> wrote:
> Hey,
> Am just getting into PHP cookies and have gotten a problem...(surprise
> surprise)
>
> Am trying to set a basic cookie to see exactly how things work before I
> start using it in my apps, heres the code i am using:
> (SetCookieEx.php)
> setcookie("name1"
Don't really understand the problem but htmlspecialchars() will convert:
Justin & Co
into
Justin & Co
... which will solve half your problem... not sure what to do with php
code... perhaps the same thing...
Or, you may want to look at show_source() and highlight_file() as
well...
Jus
On Thursday 17 July 2003 12:56, Louie Miranda wrote:
> Given this problem..
> I have this html form that has a "State" option and it list all the US
> states. And i also have a "State/Province" field if ever he does not live
> in the US.
>
> My problem is how will i recognize both? I Mean, i will
Ralph Guzman <[EMAIL PROTECTED]> wrote:
> Just include Bcc in the extra headers. Take a look at
>
> Example 4. Sending complex email
> http://www.php.net/manual/en/function.mail.php
>
um.. don't use that example, it is the incorrect way to send a bcc. for
one it wont work and two the people will
Louie Miranda <[EMAIL PROTECTED]> wrote:
> hello,
>
> how do you make a bcc on php on a form 2 email settings..
I would suggest:
http://phpmailer.sourceforge.net/
Curt
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thursday 17 July 2003 13:06, Paul Chvostek wrote:
> Perhaps that's where I need advice. Currently, a .htaccess file with:
>
> php_flag register_globals on
>
> gets the error "php_flag not allowed here". I see from the comments at
> http://www.php.net/register_globals that I need AllowOver
On Thursday 17 July 2003 09:46, [EMAIL PROTECTED] wrote:
> hi there i have a little problem writing files on a php3 server this code
> worked yesterday but isnt
>
> $handle = fopen("/www_tools/apache/htdocs/phptest/temp_real/test.inc",'a');
> $buffer = "test";
> echo fwrite($handle,$buffer,4000);
>
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> hi there i have a little problem writing files on a php3 server this code
> worked yesterday but isnt
>
> $handle = fopen("/www_tools/apache/htdocs/phptest/temp_real/test.inc",'a');
Test your $handle to see if you successfully opened the file.
if (!
On Thursday 17 July 2003 02:44, Ryan A wrote:
> I want to convert my old java greetings programs into php scripts but am
> stuck on one little thing.
> I have a bunch of thumbnails in a 3 directories, the problem is the number
> of thumbnails in each directory is differient...how do i first make t
got it working..
--
Thank you,
Louie Miranda ([EMAIL PROTECTED])
- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 17, 2003 1:49 PM
Subject: Re: [PHP] state (Field Problem)
> On Thursday 17 July 2003 12:56, Louie Miranda wrote:
>
>
Paul Chvostek <[EMAIL PROTECTED]> wrote:
>
> I've got this new server running with folks from all over uploading PHP
> code. I don't know all the folks, so I've turned on safe_mode, set an
> open_basedir to each user's documentroot, and left register_globals at
> its default.
>
> And now I'm get
Dale Hersh <[EMAIL PROTECTED]> wrote:
> My question is regarding strings in php. I have this form in which the user
> fills in a description. The problem is that if the user uses any
> aprostrophe's or any other unusual characters in the form, the string can
> not be inserted into my ms sql databas
>From the official doc:
http://www.php.net/manual/en/function.setcookie.php
All the arguments except the name argument are optional. You may also
replace an argument with an empty string ("") in order to skip that
argument. Because the expire and secure arguments are integers, they cannot
be skippe
Actually, MVC works really well with XML technologies, however, there
needs alot of work in php's core to fully utilize the benefits of an mvc
paradigm.
--
BigDog
On Wed, 2003-07-16 at 04:12, Joel Rees wrote:
> > Hi Joel,
> >
> > Thanks for nice comments on the XML, XSL.
> >
> > I want to know
sorry guys the server was full again , doesnt return any error at all funny
hey
> On Thursday 17 July 2003 09:46, [EMAIL PROTECTED] wrote:
>> hi there i have a little problem writing files on a php3 server this
>> code worked yesterday but isnt
>>
>> $handle =
>> fopen("/www_tools/apache/htdocs/ph
Hi All,
I have a system that allows a person to upload photos to the server
via an admin web form.
I have been using the code for about a year with no problem. I
designed it specifically for a client of mine that has just started
cruising on a sailboat for a few years.
They tryed uploading a
Jason Paschal <[EMAIL PROTECTED]> wrote:
> I've googled for it, but nothing came up. How do I display code on a page
> without it being executed?
This has to do with how your webserver is set up, because it see's that
its a php file it runs it thruough php.
> i want the page to display HTML cod
no errors have come up yet, still getting the same problem too, I am pulling
out my hair :) everything else works nice and smoothly just this whole gd
thing...
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Do you get any error at apache start up or in error logs?
Nomadeous <[EMAIL PROTECTED]> wrote:
> From the official doc:
> http://www.php.net/manual/en/function.setcookie.php
> All the arguments except the name argument are optional. You may also
> replace an argument with an empty string ("") in order to skip that
> argument. Because the expire and secure
> 1. How efficient is to use XML+XSLT solution? Does it
> add processing overhead to the system?
The efficientcy is relative to many factors, however I can stress this.
The style sheets can be cached client side and then only xml data can be
sent to the user. This reduces bandwidth and allows the
101 - 185 of 185 matches
Mail list logo