Hi,
Saturday, February 22, 2003, 12:35:15 PM, you wrote:
AC> My apologies in advance if this too basic or there's a solution easily
AC> found out there, but after lots of searching, I'm still lost.
AC> I'm trying to build a regexp that would parse user-supplied text and
AC> identify cases wher
if you're already building dynamic pages, just roll your own... set a GET
var to trigger a simple page view (simple layout, less HTML, very little
CSS, no tables, etc etc) which uses the same CONTENT but keeps it simple for
printing.
justin
on 23/02/03 8:28 AM, Sebastian ([EMAIL PROTECTED]) wr
Hi,
Saturday, February 22, 2003, 12:35:15 PM, you wrote:
AC> My apologies in advance if this too basic or there's a solution easily
AC> found out there, but after lots of searching, I'm still lost.
AC> I'm trying to build a regexp that would parse user-supplied text and
AC> identify cases wher
> I am developing some light pages on the web basically for access by
PDAs.
> I need to put and alert for some members so that as soon as they log
in,
> the next page will show a flashing alert on the page.
>
> Can anyone suggest how I can make text flash on a PDA considering that
the
> PDA browse
Hello,
I'm having a few problems with deleting items. When I do the unlink()
function, it gives me a permission denied error. For example..here's the
code:
unlink($this->currentfolder().'/packs/'.$title.'/'.$intname);
Here's the error returned:
Warning: unlink() failed (Permission denie
Hello,
I'm having a few problems with deleting items. When I do the unlink()
function, it gives me a permission denied error. For example..here's the
code:
unlink($this->currentfolder().'/packs/'.$title.'/'.$intname);
Here's the error returned:
Warning: unlink() failed (Permission denie
Hi,
Sunday, February 23, 2003, 9:13:16 AM, you wrote:
CH> Hey Tom.
CH> Thanks for the idea; however, since we're not hosting the site on our own
CH> server, we don't have permissions for altering the php.ini file..
CH> --Noah
It only sets the ini path for the current document, it does
Yes, I have noticed some performance issues as well, but we need to nail
it down better before we can start really going after this. Could we call
on the collective masses of php-general users to run some benchmark tests?
Just build yourselves a libphp4.so for both 4.2.x and 4.3.x and switch the
Assuming that you do want to replace "[p]" with "", the code you posted
worked for me. The following printed: "leadingtexttrailingtext" to the
screen
');
$text = "leadingtext[p]trailingtext";
$words = str_replace ($find, $replace, $text);
print $words;
?>
"Al" <[EMAIL PROTECTED]> schreef in b
Hi,
how can I write to a COM-Port on OS/2 using PHP 4.3.0 with Apache 2.0.44?
With
$fp = fopen ("COM1", "w+");
$string = chr($OutCmd) . chr($Platine) . chr($OutData) . chr($OutPruef);
fputs ($fp, $string );
fclose ($fp);
it seems not to work ($fp returns "Resource id #2"), and
$fp = fopen ("COM
On February 22, 2003 04:38 pm, Denis L. Menezes wrote:
> Hello friends.
>
> I am developing some light pages on the web basically for access by
> PDAs. I need to put and alert for some members so that as soon as
> they log in, the next page will show a flashing alert on the page.
>
> Can anyone sug
Hello friends.
I am developing some light pages on the web basically for access by PDAs. I need to
put and alert for some members so that as soon as they log in, the next page will show
a flashing alert on the page.
Can anyone suggest how I can make text flash on a PDA considering that the PDA
you could consider configuring a prebuild html editor (just WYSIWYG)
without any problems of users having to write code at all
check out: http://www.interactivetools.com/products/htmlarea/
"Andy Crain" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> My apologies in advance if this t
> Here is my problem. I am using the following two lines to get
multiple
> values from a form field select statement.
>
> while (list($key,$val) = each($_POST[Restrictions])) {$Restrictions .=
> "$val,";}
>
> Restrictions$Restrictions
>
> The problem is when it fills out the table, it adds "Arr
make your own. what could be simpler?
If you have data that is generated with php, just
change the output to just send very basic html page.
olinux
--- Sebastian <[EMAIL PROTECTED]> wrote:
> Greetings all.
>
> I am looking for a simple print page script. I tried
> just about all the print scr
I'm betting this is related...
I upgraded to 4.3.0 on my production linux servers and began to have
serious socket connection issues. Rolling back to 4.2.3 cleared
everything up. I also saw an increase in script execution times with
4.3.0, which became much better using 4.2.3. I noticed some
A "subjestion" would be to use the mail() function to. You can find the mail
fuction at http://www.php.net/manual/en/function.mail.php.
-Original Message-
From: Luis A [mailto:[EMAIL PROTECTED]
Sent: Saturday, February 22, 2003 5:42 PM
To: [EMAIL PROTECTED]
Subject: [PHP] sending results b
I have been using mail() to send SMS messages to my phone but the From
address never seems to work as I set it. When it arrives in my email client
it works fine but when it gets to my phone it does. I have set headers like
so:
"From: $from_email\r\nReply-To: $from_email\r\nReturn-path: $from_email
how can i make the server email me
the results of this form __
no
any subjestion
Hello:
Here is my problem. I am using the following two lines to get multiple
values from a form field select statement.
while (list($key,$val) = each($_POST[Restrictions])) {$Restrictions .=
"$val,";}
Restrictions$Restrictions
The problem is when it fills out the table, it adds "Array" prior
Thanks again John for the informative reply.
Now I follow what you're doing.
Get some sleep ;--)
--Noah
- Original Message -
From: "John W. Holmes" <[EMAIL PROTECTED]>
To: "'Noah'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Saturday, February 22, 2003 1:56 PM
Subject: RE: [PHP] Sit
I upgraded my development system from PHP 4.1.2 to PHP 4.3.0 last week and
the performance of my scripts took a dive. Specifically, the average time
to parse my scripts (time from executing first line of code to executing
first line after includes) went from about 100ms to about 200ms, and, very
o
Good point, and I might end up doing just that if I can't find a
solution. The problem is that I'm considering using for some forms a
wysiwyg replacement (e.g.,
http://www.interactivetools.com/products/htmlarea/ or
http://www.siteworkspro.com) that results in HTML output. And I wanted
to check the
> We've got a site makes several queries to our MySql db in every site
page.
> Should we be using persistent connections, or are we better off
opening
> and
> closing connections on each query?
You should open a connection at the beginning of your page, run your
multiple queries, and then close it
Well, like someone else said, it's hard to look for and match stuff that
isn't there. In addition to the security benefit, it's just easier to
code something that looks for [b](.*)[/b] and replaces those tags with
and (or and if you want to be technically
correct).
Honestly, if you've got a s
Hey all.
We've got a site makes several queries to our MySql db in every site page.
Should we be using persistent connections, or are we better off opening and
closing connections on each query?
Thanks for any leads,
--Noah
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscrib
> Hey John.
>
> Do you ever sleep? You've got a zillion posts in this news
> group..
Sleep is for the weak...
> To answer your question, it's not that I'm afraid of absolute paths,
it's
> that I don't properly understand how to implement them.
>
> I understand why the path references
Ernest,
Thanks very much. This is pretty close to what I'm looking for. The only
problem is that it doesn't catch nested tags. For example, "some text
some text some text" makes it through without error since, I
think, preg_match resumes matching at the after spotting and then
checking its first m
John,
Thanks. I'm considering that, but the application I'm working on is for
a small intranet that will be for only a small group of supervised
users, so vulnerability isn't such a large concern.
Andy
> -Original Message-
> From: John W. Holmes [mailto:[EMAIL PROTECTED]
> Sent: Saturday,
Don't have access to php.ini -- we're in a shared hosting
environment...
I can make it work with $my_include_path = $DOCUMENT_ROOT .
"includes/file.inc";
Then I just prepend include files with $my_include_path. A little more
work, but better than chucking all my files in the root directo
> From: Al <[EMAIL PROTECTED]>
>
> I can't find a way to replace \r\n codes with in a text file.
>
> I'm reading a text file that was prepared with windows notepad
> The hex code shows OD OA for CR/LF as I expect.
>
> I'd like to replace the OD/LF with s.
>
> I spent hours trying every User No
Slightly off topic, but I have some PHP also ;-)
I am trying to make search engine friendly URLs for a site, but want this to
be fairly dynamic and work with any new script and vars.
If anyone would be willing, I need help on a mod_rewrite rule or rules? I'm
thinking it should be fairly simple,
Greetings all.
I am looking for a simple print page script. I tried just about all the print scripts
at hotscripts.com and not one works (at least for me).
Does anyone know of one that works under php v 4.2.3 with register globals off?
thanks in advance.
I don't know if it helps... but you should take a look at the ini_set()
function. Perhaps you can set the appropriate stuff using that.
Cheers,
Rob.
CF High wrote:
>
> Hey Tom.
>
> Thanks for the idea; however, since we're not hosting the site on our own
> server, we don't have permissions for
I can't find a way to replace \r\n codes with in a text file.
I'm reading a text file that was prepared with windows notepad
The hex code shows OD OA for CR/LF as I expect.
I'd like to replace the OD/LF with s.
I spent hours trying every User Notes in the PHP Manual for this simple
operation.
As long as your headers/footers are static, you could define them as
constants, include just the script that defines the constants, and do a
print(SOME_FOOTER_NAME); where you want them to appear.
-Original Message-
From: CF High [mailto:[EMAIL PROTECTED]
Sent: Saturday, February 22, 2003
is there a possibility to implement bcpowmod() in a
version prior than PHP5?
bcpowmod() ist the only way to calculate a blind signature
as described by David CHAUM 1982 -> digicash
(openssl does not work here).
now I use the "shell_exec" command and an external java applet.
(btw. java has a grea
I have a simple str_replace function that obviously has a syntax
problem. The [p] in the $find array ignores the brackets. Every "p" in
my text is replaced by a . Just for the heck of it, I've tried "
instead of ', and preg_replace(), etc.
$find= array('& ','W&OD', '"&"', chr(146), '[p]');
$
I do the following and it seems to work OK:
I put the following two lines at the top of each script:
$defsPath = "[my include path]defs/";
include_once($defsPath."globals.php3");
...and later a call to a function I wrote ( printNavLinks() ) that outputs
whatever I want in the head
that results an error
Method Not Allowed
The requested method POST is not allowed for the URL /1/x.php.
Apache/1.3.26 Server at x.x.x.comPort 80
Hmm
Sounds like a good idea, but we've got quite a few includes in our site, not
to mention variable image paths (i.e. images/headers, images/groups, etc.)
Seems like a lot of work to create & maintain this config file + load the
references on each page.
Maybe I'm just lazy, but I won
my friend Google told me this is explained at
http://www.thickbook.com/extra/php_email.phtml !
how can i make the server email me
the results of this form __
no
Hey Tom.
Thanks for the idea; however, since we're not hosting the site on our own
server, we don't have permissions for altering the php.ini file..
--Noah
"Tom Rogers" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> Sunday, February 23, 2003, 6:14:32 AM, you wrote
Hi all,
I have been creating some dynamic images, with text. Some fonts seem to work
fine, but some give the right number of characters, but each character is
just a square box.
What's causing this. I know the fonts are there (there is an entirely
different error message when the fonts are not th
Is it possible to define a constant that is an array of other predefined
constants? If so, what would the syntax be? I'm trying something like the
following (all items prefixed with an uppercase "G" are constants) without
success:
define("GaNavButtons", array(
GnavSectionHome => array (
hi pals
how can i make the server email me
the results of this form __
no
any subjestion
Hey John.
Do you ever sleep? You've got a zillion posts in this news group..
To answer your question, it's not that I'm afraid of absolute paths, it's
that I don't properly understand how to implement them.
I understand why the path references are not working when I move beyond the
root
Hi,
Sunday, February 23, 2003, 6:14:32 AM, you wrote:
CH> Hey All.
CH> Got a perhaps easy question here:
CH> How can I create a global header and footer include to my site pages where I
CH> don't rely on absolute paths to include and image files?
CH> I'm having trouble including my header and f
What I did on my site is made a file called config.php, I then made a
variable for all the files that need to be included, example, header,
footer, leftnav, rightnav, etc..
My config file looks like this:
Then I simply call config.php into all my pages and when I want to include a
file I just d
Robert,
I am fairly new to php as well, but I think I may be able to help.
Unless you need to modify the images when you display them, you
should be able to just use html to display them as thus:
--Start Code Here
/* These variables would be filled in by the information you have
from your fla
> Just a little curious. Is there any other way other than cron to do
> this. Is it possible to run a PHP script in an endless loop and when
the
> clock strikes, run another script?
Yeah, I think so, but it'd be worth the effort to just learn cron. You
can use set_time_limit() to zero and run your
> How can I create a global header and footer include to my site pages
where
> I
> don't rely on absolute paths to include and image files?
>
> I'm having trouble including my header and footer .inc's within a
> multi-level directory structure -- the relative paths to images (and
to
> includes wit
> I am having some difficulty getting a list of check boxes to work
> properly. I have dug through the list archives, usenet, PHP Manuals,
> etc. and still I am unable to process multiple checkboxes from a form
> submission properly. The following is what I am running into.
>
> Form:
>
>
>
>
>
Just a little curious. Is there any other way other than cron to do
this. Is it possible to run a PHP script in an endless loop and when the
clock strikes, run another script?
- Sid
> -Original Message-
> From: John W. Holmes [mailto:[EMAIL PROTECTED]
> Sent: Saturday, February 22, 2003 9
I am having some difficulty getting a list of check boxes to work
properly. I have dug through the list archives, usenet, PHP Manuals,
etc. and still I am unable to process multiple checkboxes from a form
submission properly. The following is what I am running into.
Form:
PHP:
for ($i = 0; $
I had the same problem. This is due to bad documentation I think. Just
ImageCreateFromxxx to imagecreatefromxxx and DW MX will show it as a
valid func AND more importantly, it will work.
Let me know if this helps
- Sid
> -Original Message-
> From: Robert Stermer-Cox [mailto:[EMAIL PROTEC
Robert,
The image functions do indeed work, check the PHP docs for more info:
http://www.php.net/manual/en/ref.image.php
However, your server must have the GD libraries installed and PHP must be
properly configured. The docs should be a good starting point if nothing
else.
---Matt
-Origin
Greetings, All,
I'm a newbe to php and am trying to develop a routine to display artwork on
my wife's site. I want to load from a flat file information about the
artwork and image file names of the pieces. Then using the image file name,
I want to display the image to the browser. I've figured
Michael --
...and then Michael Sims said...
%
% On Sat, 22 Feb 2003 11:49:09 -0500, you wrote:
%
% >checking the making of a temp file or digging into UID/GID and group
% >membership and so on...
%
% I wouldn't know of any other way to do it except for the two that you
Oh, well. Thanks for th
On Sat, 22 Feb 2003 11:49:09 -0500, you wrote:
>The real problem still remains, however; if it's not writable for all,
>then I need to see whether or not its writable, and preferably without
>checking the making of a temp file or digging into UID/GID and group
>membership and so on...
I wouldn't
Hey All.
Got a perhaps easy question here:
How can I create a global header and footer include to my site pages where I
don't rely on absolute paths to include and image files?
I'm having trouble including my header and footer .inc's within a
multi-level directory structure -- the relative paths
Michael --
...and then Michael Sims said...
%
% On Sat, 22 Feb 2003 07:23:20 -0500, you wrote:
%
% >How can I tell if a directory is writable? It seems that is_writable
% >only works on file, and the mode I get out of stat() is [in this case,
% >anyway] '16895' for a 0777 dir.
%
% The 16895 is
You can use the curl libs to call an external script.
Josh.
On February 22, 2003 11:05 am, Steve Vernon wrote:
> Hiya Greg or anyone else!
> I realise that PHP does not have inherent thread support as yet. But is
> it possible to simulate threads?
>
> What I would like is for the user in a
Hiya Greg or anyone else!
I realise that PHP does not have inherent thread support as yet. But is
it possible to simulate threads?
What I would like is for the user in a web site in a rare condition to
cause a long script to be completed. Now as far as I can make out you can
make it not ti
> i want to automate some activities by date. on a certain date i want
to
> do
> some specific processing. the application is web based using apache. i
> guess
> i would need some way of calling the program daily to see if "today is
the
> day." thread/daemon? any suggestions appreciated.
Use cr
> Do you mean you run win 2000 + PHP + MySQL?
Yes, with IIS as the web server.
> For MySQL to run properly, will the standard binary downloaded from
the
> website suffice or do I need to purchase some other version of MySQL?
Also
> is there a good MySQL GUI for Windows machines?
The regular wi
hi.
i want to automate some activities by date. on a certain date i want to do
some specific processing. the application is web based using apache. i guess
i would need some way of calling the program daily to see if "today is the
day." thread/daemon? any suggestions appreciated.
mike
--
P
O.K. Thanks, so it could be an active X control then ?
"Ernest E Vogelsinger" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> At 23:12 21.02.2003, Ian said:
> [snip]
> >Is it possible to read information on the client serial port and return
it
On Sat, 22 Feb 2003 07:23:20 -0500, you wrote:
>Hi, all --
>
>How can I tell if a directory is writable? It seems that is_writable
>only works on file, and the mode I get out of stat() is [in this case,
>anyway] '16895' for a 0777 dir.
The 16895 is in decimal. Use decoct() to convert it to octa
My company researched on the topic sometime back. We even did a test run
(on our local machines where there are no user restrictions set). The
machine running this will need IE 5.x or above and another software
(um... forgot its name) that uses this IE engine to capture whatever IE
see into an .jpg
Hello,
I am a bit new to the concept of a proxy server. Could someone tell me
how to
a) Connect to a Web Server and retrieve data from it
b) Connect to an mail server and send an e-mail (via a proxy)
I know how to do these tasks without a proxy server, but not behing one.
Thanks
- Sid
--
PH
At 15:03 22.02.2003, Chris Hayes said:
[snip]
>Since PHP 4.1 form data are not automatically available as variables in the
>followup file.
>
>http://nl.php.net/release_4_1_0.php explains it all, for now it's enough
>to say
>- either turn register_globals on
thank you |Tom :)
That helped me out a lot
"Tom Rogers" <[EMAIL PROTECTED]> schreef in bericht
news:[EMAIL PROTECTED]
> Hi,
>
> Saturday, February 22, 2003, 12:29:36 PM, you wrote:
> HP> Im trying to write a poll script that is easy to intergrate into other
> HP> documents of a site and thought th
- Original Message -
From: "X" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, February 22, 2003 7:36 AM
Subject: [PHP] what's the matter?
index.php:
choice your gender
male
female
x.php:
but at last it said that the gender had not been
Hello John. Thanks.
Do you mean you run win 2000 + PHP + MySQL?
For MySQL to run properly, will the standard binary downloaded from the
website suffice or do I need to purchase some other version of MySQL? Also
is there a good MySQL GUI for Windows machines?
Thanks very much.
Denis
Thanks
denis
right - I was thinking more along the lines that php
would loop thru URL database and then trigger IE
somehow (have to be on windows box but not production
server)
The macro idea sounds like the best bet. Thanks
olinux
--- Justin French <[EMAIL PROTECTED]> wrote:
> on 22/02/03 5:55 PM, olinux (
Hi,
The question is mainly for the developers of SRM, but I'm sure there are
others who use it.
I'm implementing a caching method where cached data is stored in hashes. Now
it works with file storage, files' names are the keys and the values are
stored in within the files. I'm considering making
At 14:36 22-2-2003, you wrote:
index.php:
choice your gender
male
female
x.php:
but at last it said that the gender had not been defined???
help me!
"by your command."
( a 'please' would be nice, X!)
Since PHP 4.1 form data are not automatically available as variables in the
followup fi
On Sat, 22 Feb 2003 15:25:36 +0300, you wrote:
>I need forward a html file in my php.
>
>If I use include, it comes a part of .php result. In the navigation window
>shows that myscript.php
>
>But I want to show that destination.html.
Not absolutely sure what you're asking for, but I think you wan
Dear Sirs,
I need forward a html file in my php.
If I use include, it comes a part of .php result. In the navigation window
shows that myscript.php
But I want to show that destination.html.
I can not find good procedure in the manual, can you help; how can I do?
Best Regards
--
PHP General
index.php:
choice your gender
male
female
x.php:
but at last it said that the gender had not been defined???
help me!
thank u!~
on 22/02/03 11:46 PM, Patrick Teague ([EMAIL PROTECTED]) wrote:
> I ran into something interesting & the only thing I can figure out is that
> functions won't use any variables other than globals, those past to the
> function, or those created inside the function?
exactly :)
you bring the array
php-general Digest 22 Feb 2003 13:05:48 - Issue 1898
Topics (messages 136577 through 136619):
ssi problem
136577 by: Hans Prins
Re: ob_gzhandler problems under 4.3.0???
136578 by: Gerard Samuel
Re: including in shtml
136579 by: Tom Rogers
136581 by: Hans Pri
At 13:46 22.02.2003, Patrick Teague said:
[snip]
>here's what I had that didn't print anything other than 3 blank lines for
>this section of code -
>
>$byteSize[0] = "bytes";
>$byteSize[1] = "kb";
>$byteSize[2] = "mb";
>
>function getMaxSize( $maxSize )
>{
>
I ran into something interesting & the only thing I can figure out is that
functions won't use any variables other than globals, those past to the
function, or those created inside the function?
here's what I had that didn't print anything other than 3 blank lines for
this section of code -
$byte
Hi, all --
How can I tell if a directory is writable? It seems that is_writable
only works on file, and the mode I get out of stat() is [in this case,
anyway] '16895' for a 0777 dir.
TIA & HAND
:-D
--
David T-G * There is too much animal courage in
(play) [EMAIL PROTECTE
Cookies are loaded the next time the page is loaded. So you may have to
refresh the page to see the cookie...
or
Submit to a html page which will redirect to the page which shows cookie
value...
Hope this helps...This should work...
Lord Loh
--
PHP General Mailing List (http://www.php.net/)
At 03:35 22.02.2003, Andy Crain said:
[snip]
>My apologies in advance if this too basic or there's a solution easily
>found out there, but after lots of searching, I'm still lost.
>
>I'm trying to build a regexp that would parse user-supplied text and
>identi
"David Otton" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On 22 Feb 2003 03:28:22 -, you wrote:
>
> >Let's say I need to take one of 20 actions depending on a form selection.
I
> >could use a switch statement with 20 cases, but I could also do something
> >like:
> >
> >// Pre
Just replace the name of your element to "select[]" , and you'll
get all the selected values as a php array under the name of
$_GET['select'].
"Mike Walth" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello:
>
> I'm trying to get the value from the following form field.
>
>
>
For help with getting MSSQL to work with php, check the comments for
the mssql_execute and mssql_bind functions in the online php manual.
You need some extra dlls.
Leo
On February 21, 2003 09:43 pm, John W. Holmes wrote:
> > I wish to run PHP on a Win 2000 server, MS SQL and IIS. Can
> > someon
Hi,
I'm doing a small project at work with php, ms sql server on w2k IIS5.
All the data access is done through stored procedures. This seems to
be working fine, the record sets are returned and the stored
procedures execute without error however I can't get any return
values from them.
For
on 22/02/03 5:55 PM, olinux ([EMAIL PROTECTED]) wrote:
> Hi all -
> While I know that this is not possible with PHP alone,
> Does anyone know how to capture website screen shots
> using PHP. I have recieved many spam mails featuring a
> screen shot of our company website and I imagine that
> it w
93 matches
Mail list logo