Hi,
Thursday, May 27, 2004, 3:07:28 PM, you wrote:
AP On May 26, 2004, at 7:55 PM, Tom Rogers wrote:
Hi,
Thursday, May 27, 2004, 11:34:03 AM, you wrote:
AP I've checked the archives and several other sources, but still
can't
AP seem to make this work.
AP I have a form with checkboxes
* Thus wrote Louie Miranda ([EMAIL PROTECTED]):
I got what you mean, but can we do this on the whole directory instead by
files?
Like for example the whole / directory and /subdirectory/ so i wont be doing
that editing every files?
If you want a specific directory to be executed you're
Brian Dunning wrote:
How do I check for the presence of an optional $_GET param without
throwing a Notice: Undefined index when the param is not present?
Tried all three of these, they all produce the Notice when the param is
not passed:
if ($_GET['id'])
if ($_GET['id'] != )
if (isset
I'm having problems getting PHP to talk to Oracle, and I think it's caused by some
environment variables.
Using phpinfo(), it's clear that I've managed to change (for example) the
_SERVER[ORACLE_HOME] (server variable?) by using SetEnv statement in httpd.conf.
But, _ENV[ORACLE_HOME]
?php
echo Hello;
echo meta http-equiv=\Refresh\ content=\2;url=b.php\\n;
?
Is another option
Craig
Rick Fletcher [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
a file called a.php prints hello to the browser then calls
b.php which prints goodbye to the
Concatenate using: .
?php
$stringA = Hello from;
$stringB = over here!;
$stringC = $stringA . . $stringB;
?
HTH
Craig
Tommy Atherton [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
hi
I have a problem, I'm trying to combine the value of two strings
thanks.
fixed that with simple un/serialize().
somehow i assumed php would be capable of
recognizing automatically that it makes sense with
object to do this automatically (who really needs
unexplicitly a string instead of o valid object
when puttin them into a session-var?)
thanks anyway
m
--
PHP
Hello Listers,
I am very new to PHP and have a query.
The problem I want to solve is that I have 4 servers for a similar application in
different parts of the world.
Based on where the request comes from I redirect him to the closest server.
Now what I want to do is to have a Backup server
I'm trying to create thumbnails for my images and everything seems to
work correctly except for trying to save them. I've tried outputting
directly with imagejpeg($im) and that works, but when trying
imagejpeg($im, new.jpeg) it does not create a new image in the current
directory. I even tried
I am just looking for some different techniques on how server push is
done on PHP:
I am fascinated by the PHP Live! Support Solution
(http://www.phplivesupport.com). I would like to try to replicate this
functionality just to see how it works and maybe use it on my own
website. Does anyone know
At 15:10 27-5-04, you wrote:
I'm trying to create thumbnails for my images and everything seems to
work correctly except for trying to save them. I've tried outputting
directly with imagejpeg($im) and that works, but when trying
imagejpeg($im, new.jpeg) it does not create a new image in the
I used to work for a fairly major chat site that used software by iChat
to push slides -- and I'll be darned if I could figure out how they did
it. Some weird quirk of HTTP, I'd think.
Anyway -- getting a basic socket server up in running in the language of
your choice and using something like
Ok, here we go.
I would like to implement an XML-RPC server (a script of course) that
keeps the value of certain variables between the different invocations
of the script.
I think that it should be possible, but I dont know where to start
(none of the search in internet gave me a starting
If you use ISSET together with a hidden field when posting a form to itself
to enter a second-state, is there a way of using it again to get to a
third-state.
Basically, I'm trying to convert a 3 file script into a single file and
first I check to see if it's been submitted and then using ELSE I
[snip]
I would like to implement an XML-RPC server (a script of course) that
keeps the value of certain variables between the different invocations
of the script.
[/snip]
Could you store them in a file? Maybe a database.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
[snip]
I've had the script working with two states but can't get the third
state
working!!!
Any help or alternative ideas much appreciated as this is causing me a
serious headache!!!
[/snip]
Sessions would be a better way to handle this.
--
PHP General Mailing List (http://www.php.net/)
To
[snip]
Ok, here we go.
I would like to implement an XML-RPC server (a script of course) that
keeps the value of certain variables between the different invocations
of the script.
I think that it should be possible, but I don't know where to start
(none of the search in internet gave me a
[snip]
I'm new to PHP, so how would I go about using sessions?
I assume one needs to update _SESSION['name'] = $name; with the state of
the
form and then use IF ?
Then I'm stuck again!
[/snip]
start here http://www.php.net/session
P.S. Always reply to the list, you may not get a response. Your
Hello all. I have been reading much lately about the wonders of writing
self testing code for java, perl and others. Is this a feasible task to
accomplish in PHP? I have googled every search I can think of and there
just does not appear to be any information regarding self testing php
out
Jay Blanchard wrote:
[snip]
Ok, here we go.
I would like to implement an XML-RPC server (a script of course) that
keeps the value of certain variables between the different invocations
of the script.
I think that it should be possible, but I don't know where to start
(none of the search in
Hi,
I tried to use my own error handler to handle all non-fatal errors. But
to my surprise it seems to be impossible to handle E_STRICT level
notices. I don't know whether this is by design, not yet implemented or
a know bug that I overlooked - but it seems rather strange :).
To reproduce:
-
Hello all. I have been reading much lately about the wonders of
writing
self testing code for java, perl and others. Is this a feasible task
to
accomplish in PHP? I have googled every search I can think of and
there
just does not appear to be any information regarding self testing php
out
Brian Dunning wrote:
How do I check for the presence of an optional $_GET param without
throwing a Notice: Undefined index when the param is not present?
Tried all three of these, they all produce the Notice when the param is
not passed:
if ($_GET['id'])
if ($_GET['id'] != )
if (isset
So I'm trying to implement a simple wiki-like syntax for hyperlinking.
Basically I want to match stuff like [this], where the word 'this' gets
turned into a hyperlink. I have that working, but I want to be able to
escape the opening bracket, so that it's possible to do \[that] without
having
Shelby wrote:
Hi,
I would like to develope a desktop application using PHP.
I was wondering can the .exe program run on Win CE/Pocket PC?
Please don't spam the list, we saw the message the first time. Well in
order to run the application on a pocket PC you'd need a PHP binary for
your specific
Since you're invoking this as a static method the only solution that
comes to mind is to use the PHP5 builtin class Reflection_Method and/or
Refelction_Class. Perhaps something like:
?php
Class Test {
function Test() {
echo 'Test';
}
}
Class MyClass extends Test {
function Debug() {
I haven't done image manipulation much, but for good source code on how
to do it look at JpGraph. It creates image canvases and draws graph
images on top of a canvas, it's really quite impressive.
http://www.aditus.nu/jpgraph/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Oooh, wish you'd said Windows, I coulda given you a walkthru there. The
environment variable that you want to set cannot (AFAIK) be changed by
Apache. You'll need to change the variable in Solaris itself.
So sayeth google:
http://docs.sun.com/db/doc/806-7612/6jgfmsvrt?a=view
--
PHP General
Sounds like a pretty run-of-the-mill storage issue; or did you want to
save XML messages? In any case, storing the information in a session is
probably the easiest and most straightforward way to do this. Or store
the information in a database.
Jason
--
PHP General Mailing List
If you're trying to prevent hitting the database then just cache the
page result and store it as a temporary html file. Then serve the
temporary file whenever people visit (and update every 15 minutes).
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hi,
Can anyone help me with this one:
Is there a difference between include() and require() ?
Thanks for helping...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Bert Slagter wrote:
Hi,
I tried to use my own error handler to handle all non-fatal errors. But
to my surprise it seems to be impossible to handle E_STRICT level
notices. I don't know whether this is by design, not yet implemented or
a know bug that I overlooked - but it seems rather strange
This should work:
^\\ # Don't match if a backslash precedes
\[ # Open bracket
([^\]]+?) # Text, including whitespace
\] # Close bracket
By the way, using a tool called The Regex Coach I solved your problem in
about 10 seconds. For those having regex problems you might
include() will output warning message and the script continues
require() will output error message and will halt the script
-Original Message-
From: Lieve Vissenaeken [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 2:05 PM
To: [EMAIL PROTECTED]
Subject: [PHP] include and
Lieve Vissenaeken mailto:[EMAIL PROTECTED]
on Thursday, May 27, 2004 11:05 AM said:
Can anyone help me with this one:
Is there a difference between include() and require() ?
yes i can help you with it. go to www.php.net and search for include.
you will then find the answer you are
Can anyone help me with this one:
Is there a difference between include() and require() ?
http://php.net/require
http://php.net/include
require() and include() are identical in every way except how they
handle failure. include() produces a Warning while require()
I have an unusual situation where I have to communicate with an MS based
soap server. They have named one of their variables with a name leading
with a 1 such as 1variable. Nusoap loads the variable descriptions from the
wsdl document and compares the variable names I am trying to send with the
On Thu, May 27, 2004 at 09:59:05AM -0700, Dan Phiffer wrote:
So I'm trying to implement a simple wiki-like syntax for hyperlinking.
Basically I want to match stuff like [this], where the word 'this' gets
turned into a hyperlink. I have that working, but I want to be able to
escape the
[snip]
if($data[$currentVarNameInCycle])
{
do something
}
Is there some way force the recognition of the key when it leads with
a
digit?
[/snip]
not sure I follow 100% but you could use a regular expression to
detemine if it starts with a string.
if (preg_match('/^\d/',$array_key)) {
[snip]
not sure I follow 100% but you could use a regular expression to
detemine if it starts with a string.
if (preg_match('/^\d/',$array_key)) {
//do something
}
[/snip]
I mean starts with a digit, sorry for 2 emails. I should proofread.
--
PHP General Mailing List (http://www.php.net/)
To
Jason,
Please read my question a bit better :).
PHP indeed does report the E_STRICT notices fine, that's not my problem.
I know how error handling in PHP works :).
But I have my own error handler (see: set_error_handler()) and handle
all notices and warnings myself (and all other E_USER_* of
* Thus wrote Bert Slagter ([EMAIL PROTECTED]):
Hi,
I tried to use my own error handler to handle all non-fatal errors. But
to my surprise it seems to be impossible to handle E_STRICT level
notices. I don't know whether this is by design, not yet implemented or
a know bug that I
Rob Ellis wrote:
On Thu, May 27, 2004 at 09:59:05AM -0700, Dan Phiffer wrote:
So I'm trying to implement a simple wiki-like syntax for hyperlinking.
Basically I want to match stuff like [this], where the word 'this' gets
turned into a hyperlink. I have that working, but I want to be able to
Since PHP5 is going to feature OOP (Object Oriented Programming), will that mean PHP6
will feature AOP (Aspect Oriented Programming)...so far it seems AOP is only being
used for Java at the moment; but hopefully general programming and scripting languages
will start using them as well?!
Hello,
On 12/31/1969 09:00 PM, Michael Lauzon wrote:
Since PHP5 is going to feature OOP (Object Oriented Programming),
will that mean PHP6 will feature AOP (Aspect Oriented
Programming)...so far it seems AOP is only being used for Java at the
moment; but hopefully general programming and scripting
If you only need to persist a handful of request-agnostic variables you may
be able to make use of an extension I wrote. Note that it doesn't work under
Windows and I haven't tested it under PHP 4.3.x.
http://pwee.sourceforge.net/
Lance
-Original Message-
From: Santiago Peirano
I feel I'm so close.
I have a form with multiple database records with a checkbox to
indicate which records to update set up like so:
$name = ed[ . $row['id'] . ];
input type=\checkbox\ name=\ . $name . \ value=\Y\
Each text input is set up like so:
input type=\text\ name=\fname[]\
Hello,
I'm sure this is a newbie question but I don't know the syntax.
I want to create a series of variables within a php script at runtime with
a for loop.
eg
myVar1
myVar2
myVar3
etc
What is the proper syntax to do this?
Thanks,
Tim
--
PHP General Mailing List (http://www.php.net/)
To
Maybe others will catch on to your intention, but I think you need to
provide a bit more information. For example, what variables do you want to
create (drawn from a file source, or create on the fly)? Where will they
come from (a database, perhaps)? You could create a script that creates
Yikes!!
List members, I apologize for sending a reply-requested e-mail over this
list. Feel free to punish me by responding. What's worse: I took another
list member to task for the same thing!
Ego deflation commences in 5 ... 4 ... 3 ...
Dennis JackArse (the JackArse is silent)
[Original
Thanks for the reply Denis,
Let me elaborate a bit.
I have a php page which I want to pass a series of variables via a url string.
eg
myPage.php?dataPoint1=10dataPoint2=20dataPoint3=30
The thing is I won;t know until runtime how many dataPoints there will be
so I have also included 1 additional
I have some sites that I would like to view the user name that someone provided to the
basic authentication mechanism in apache.
Does php/apache provide a means for this?
52 matches
Mail list logo