Using PHP/4.2.2 & Apache/1.3.26 on Linux 2.4.17
I'm trying to format a HEX value into an 8-byte string, that is
zero-padded to the left, using sprintf(). Simple enough.
$sprintf( "%08x", "fa23d" );
This should return "000fa23d". But it returns "".
Since that doesn't work, I'm using thi
Geez, how old is that one. Been receiving it for at least a year. And here is is, all
spammed up and everything! How did that creep in?
Troy May wrote:
> Sorry, I'm holding out for the 126 million. :)
>
> -Original Message-
> From: GEORGE EMEKA [mailto:[EMAIL PROTECTED]]
> Sent: Wednesd
On Thursday 21 November 2002 12:53, Rodrigo de Oliveira Costa wrote:
> Hi people, Im in a lot of trouble, Im doing a paging for a mySql
> database result it was going well until I tried it out.
But how did you know it was going well *before* you tried it ;-)
> It shows the
> right amount of re
Try this:
$content = implode('', file('../header.html'));
Or if you're running php 4.3.0 or greater:
$content = file_get_contents('../header.html');
Can't get much easier than that :)
-Mark
PS: That was in the user contributed notes Ed mentioned :)
- Original message -
From: "Troy May
Thanks Ed! Yes, another member here told me to use fread(), which is what
your link led to if you're not using the CVS version of PHP. (whatever that
is)
I got it working with this:
mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 16, 2002 9:29 PM
To: Troy May
Cc: [EMAIL PROTECTED]
Subject: R
Sorry, I'm holding out for the 126 million. :)
-Original Message-
From: GEORGE EMEKA [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 20, 2002 10:18 PM
To: [EMAIL PROTECTED]
Subject: [PHP] MY CLIENT
Importance: High
GOLDEN BUSINESS OPPORTUNITY
I am an Attorney and
GOLDEN BUSINESS OPPORTUNITY
I am an Attorney and close confidant of MRS. MARYAM
ABACHA, the former first lady and wife of the late
GEN. SANI ABACHA, the former head of state and
commander in chief of the armed forces of the Federal
Republic of Nigeria.
She (MRS. M. ABACHA), has as
Hi people, Im in a lot of trouble, Im doing a paging for a mySql
database result it was going well until I tried it out. It shows the
right amount of registries and it shows the next page link, but when I
click on the next page it says it is missing a variable, it is the one
that is sent by the f
Sorry, but I forgot to say the variables froming from part 2 to part 3 can be anything between 1 and 30 or any combination thereof.
will be no good here as it is too hard to pre-distringuish which variable names will be transferred
Thanks
Michael Benbow wrote:
Hi,
I currently have a page d
1. see php.net/include_once
2. Yes
$_SESSION['foo'] = new foo();
$myFoo = &$_SESSION['foo'];
$myFoo->var = 123;
/* page2.php */
$myFoo = &$_SESSION['foo'];
echo $myFoo->var;
-js
Michael Wai wrote:
> Hi everyone, I'm a newbie on PHP and MySQL. I've two questions that want to
> get some help.
Hi everyone, I'm a newbie on PHP and MySQL. I've two questions that want to
get some help.
1. How to solve the problem of nested include? That's mean A include B and B
include C.
2. Can I save the object in session?
Thanks for your great help!!
Regards,
Michael
--
PHP General Mailing List (h
at a guess would say have some hidden inputs on your form that echo the
var's pass from part 2 that way when your form is submitted in part 3 it
gets sent along with the new stuff
> -Original Message-
> From: Michael Benbow [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 21 November 2002 2:24
Hi,
I currently have a page divided into three areas, two of which are iframes.
The user selects a component out of part 1, which decides what is shown
in part 2. When something is clicked in part 2 the information updates
in the second iframe, or part 3. This is all working fine through
$P
I have a PHP script that logs someone in then takes them to
another page indicating their online status. However, when I try echoing out the
contents of the session variable, it says this:
Notice: Undefined
variable: _SESSION in c:\program files\apache
group\apache\htdocs\checker\membe
That's what my alternative was if there wasn't a way to do it in PHP with
some special leet attack. :-)
Thanks!
- Original Message -
From: "Matt" <[EMAIL PROTECTED]>
To: "Stephen" <[EMAIL PROTECTED]>
Cc: "PHP List" <[EMAIL PROTECTED]>
Sent: Wednesday, November 20, 2002 9:27 PM
Subject: R
Hello~.
I made a PHP script which resize GIF Image.
But, Animated GIF don't Animate ;-(
Manual says 'use imagecolortransparent() to format GIF89'.
But, I don't know how to use imagecolortransparent() ...
Somebody Help me~
My code likes follows
# cut here #
> From: "Stephen" <[EMAIL PROTECTED]>
> Cc: "PHP List" <[EMAIL PROTECTED]>
> Sent: Wednesday, November 20, 2002 8:52 PM
> Subject: Re: [PHP] Reading part of a file
> What I'm doing is having a PHP part, let's say that it's a calculator that
> adds module, that does the adding. The second part of
What I'm doing is having a PHP part, let's say that it's a calculator that
adds module, that does the adding. The second part of the file is the form
that the user uses to put in the numbers. That's what I want to do...
- Original Message -
From: "Matt" <[EMAIL PROTECTED]>
To: "Stephen" <
Justin,
Creative thinking to a smart solution. I will keep that in mind for future
sites.
Peter
At 10:35 AM 11/21/2002 +1100, Justin French wrote:
> If you know that your client base will ever only use IE, then go for
> it. Otherwise, you'll have to avoid the iframe.
That sounds a little hars
Hello,
reading manual did not help me answering this question.
Where does PHP get the correst host/user/password when sql.safe_mode is on?
--
Matus "fantomas" Uhlar, [EMAIL PROTECTED] ; http://www.fantomas.sk/
Warning: I don't wish to receive spam to this address.
Varovanie: Nezelam si na tu
On Thu, 21 Nov 2002 07:26:34 +1100
"electroteque" <[EMAIL PROTECTED]> wrote:
> anyone know of any good anti spam software for linux ?? and maybe be
> able to monitor it with php ?
SpamAsassin. You could probably set the spam to be fed to
a PHP script as well, but I just throw it all to a text f
You don't need the () around print.
print testfunction($var1, $var2, $var3, $var4);
Jason
On Wed, 2002-11-20 at 17:48, Tracy Finifter Rotton wrote:
> Try:
>
> $meat = testfunction ($var1, $var2, $var3, $var4);
> echo $meat;
>
>
> Or, alternatively,
>
> print (testfunction ($var1, $var2, $va
Hello,
working by an ISP, I'd like to force my users to use given databases -
force the hostname, user, password and database too.
I thought I can do that with defining "sql.safe_mode On" but as it seems
now, it is not possible to do this.
Any idea about how to do it?
--
Matus "fantomas" Uhla
Try:
$meat = testfunction ($var1, $var2, $var3, $var4);
echo $meat;
Or, alternatively,
print (testfunction ($var1, $var2, $var3, $var4));
hope this helps.
--t
On 11/20/02 8:40 PM, "Beauford 2002" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have form that a user would input information and that
I'm making a module system. I need to make the actual module then a form to go along
with it. The only way I can think of doing this is makign a file and then sectioning
the file so that the first part is read and put somewhere on a page them the other
part is put on the same page later on or on
In CLI you can use readline
See the readline section in the PHP manual at
http://www.php.net/manual/en
Jason
On Wed, 2002-11-20 at 06:42, Larry Brown wrote:
> Does anyone know of a method to pause during the processing of a script to
> prompt a user for information and then incorporate the user'
-- Virus Warning Message (on lakdiva)
Policy.scr is removed from here because it contains a virus.
-
At 23:37 20.11.2002, Dennis Gearon said:
[snip]
>Would this prevent other PHP users from including files in my include
>directory?
[snip]
No - even if _they_ cannot read your include files, they add the include()
dir
At 20:23 20.11.2002, Mr. BuNgL3 said:
[snip]
>Hi...
>I'm with a little sintax problem...
>The question is that i have two search fields (titulotxt and cdstxt) and i
>want to create an mysql condition... i trying:
>
> $sql1=($titulotxt) ? "titulo like '%".$tit
What exactly are you doing? The code you posted doesn't explain much.
-Kevin
- Original Message -
From: "vernon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 20, 2002 4:13 PM
Subject: [PHP] Session Not Registering on Page it is Set On
> These pup session are go
on 21/11/02 7:56 AM, Support @ Fourthrealm.com ([EMAIL PROTECTED])
wrote:
> Hi Eddie,
> iFrames do offer a really nice solution, but they are an IE only
> tag.
they are part of the HTML spec... so, conforming browsers (NN6, NN7, Opera I
think, etc) all have iframe support. The real problem is
Hi,
I don't have the answer, but when that happens, the first thing I do is dig
around in phpMyAdmin(.org)... it's a web based GUI for MySQL, and most of
the time, when you do something (like copy a table), it shows you the query
used to do it... then you just need to copy it, and integrate it int
What I'm wondering is if you are calling the graphic's placing into the page
correctly. I believe the class will probably work.
I have a page that includes a graph that I generate using mySQL and PHP.
This is the code I use to actually display the graphic (not what generates
it).
ImageJPEG($pic
Hi,
on 21/11/02 3:00 AM, Edward Peloke ([EMAIL PROTECTED]) wrote:
> I have a large amount of data to present to the user. Currently, I am just
> putting it in a table and displaying it on the page, if it is more than a
> page of course the page just scrolls. Is there a way o, without using
> fr
on 21/11/02 2:25 AM, David Russell ([EMAIL PROTECTED]) wrote:
> strip_tags($_POST['Duplicate'], '
> ');
>
> OK, so this is cool. I got this list from the Slashdot allowed tags
> list, which I would assume is ok.
Whoa there... NEVER assume because someone else does something that it'
Thank you :)
From: Ray Hunter <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: "Easystreet.com" <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED]
Subject: Re: [PHP-QA] Newbie Issue blank result for .php correct displayfor
.html version
Date: 19 Nov 2002 18:18:47 -0700
This is really not the lis
These pup session are going to drive me nuts!
I can't seem to get this session to register on the same page it is set. For
instance I load a record, then set a session right after it using:
session_register("suckered");
$suckered = $row_rouser['ID'];
The session is set throughout the site, but n
> thats the thing the urls should be able to parse http:// or www or both
and
> i have to unfortunatly clean up a forced port and directory in the url
> aswell for gethostname to work
Well, your original question should of said that and we wouldn't be wasting
time.
preg_match("%\.([^.]+\.[a-z]+)%
Would this prevent other PHP users from including files in my include directory?
11/20/2002 1:45:08 PM, Ernest E Vogelsinger <[EMAIL PROTECTED]> wrote:
>At 19:49 20.11.2002, Dennis Gearon said:
>[snip]
>>Please B/CC me, thank you.
>>
>>I am on a site that h
Yes, I have an exit() immediately following header...
Could these statements in any way affect the session? Or session update?
"Jason Wong" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Wednesday 20 November 2002 06:36, Baumann Reto wrote:
> > Hi all
> >
>
This does work... No problem at all...
The BIG problem is that it has to have something to do with the environment,
as the error is not always there. Only if a certain combination of POST/GET
request and or browsers as well as session operations occur.
Bur figuring out a certain logic is nearly i
It's mainly MSIE 5.0 for MacOS or MSIE 5.5 for Win9x
"Bigdog" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> What browsers are having the problems?
>
> On Tue, 2002-11-19 at 15:36, Baumann Reto wrote:
> > Hi all
> >
> > Does somebody know if there is a potentia
--- Dan Rossi <[EMAIL PROTECTED]> wrote:
> some urls will have http://www. some will only have www. some will
> have :1023 for forced ports and they all will have /directory
> afterwards i just need domain.com for example :|
Out of curiosity, did you not read the replies to your initial
question?
getting really annoying one url will work where another one wont
//$formatted_url = preg_replace("/\b((http(s?):\/\/)|(www\.))\b/i", "",
$url);
//$formatted_url =
preg_replace("/\b((http(s?):\/\/)|(www\.))([\w\.]+)([\/\w+\.]+)\b/i", "$5",
$url);
$formatted_url = ere
At 19:49 20.11.2002, Dennis Gearon said:
[snip]
>Please B/CC me, thank you.
>
>I am on a site that has all the files in both the /home/sitename/www/
>directory and a directory
>we'll call /home/directory/includes/ with the following permisssions:
>
> rw
"Nick Eby" <[EMAIL PROTECTED]> wrote :
> that will work just fine. think of it this way- the array $item is
> registered (and maybe unregistered) with the session, but its elements
> aren't individually registered with the . just
register/unregister the
> array, and otherwise work with
this is fine but it didnt parse in just www.domain.com
-Original Message-
From: Chris Shiflett [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 21, 2002 7:41 AM
To: electroteque; [EMAIL PROTECTED]
Subject: Re: [PHP] preg_replace question
--- electroteque <[EMAIL PROTECTED]> wrote:
> h
> i need to output
> &row0=article__2||tipo 1:&row1=art2|b|Tipo 2
> how can i achieve this?
I believe you can just use urlencode() and urldecode() on the values.
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hey,
http://www.php.net/manual/en/function.mysql-fetch-array.php
regarding, jb at stormvision dot com dot na's post (below)
i need to output
&row0=article__2||tipo 1:&row1=art2|b|Tipo 2
how can i achieve this?
This might be usefull for people that work with lots of rows and want to
pla
At 18:24 20.11.2002, Jami said:
[snip]
>I have code that says:
>
>if($_GET['sc'] != '2' OR '8'){
>do this.
>}
[snip]
besides all other good examples, you could also
if (in_array($_GET['sc'], array('2','8')
At 19:15 20.11.2002, ROBERT MCPEAK said:
[snip]
>I've got a variable - $email_body, that contain's other variables. For
>example, echo "$email_body," might look like this:
>
>$name, $address, $phone, $blah
>
>
>I want those variables to interpreted with cor
thats the thing the urls should be able to parse http:// or www or both and
i have to unfortunatly clean up a forced port and directory in the url
aswell for gethostname to work
-Original Message-
From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 21, 2002 7:48 AM
"@ Nilaab" <[EMAIL PROTECTED]> wrote:
> Hello,
> How do I unregister a single array item from an array? For example:
>
>
> session_start()
> session_register("item");
>
> $item['name'] = "Some Name";
> $item['img'] = "some_image_name.jpg";
> $item['desc'] = "Some Description";
> $item['price'] = 40
Hello,
How do I unregister a single array item from an array? For example:
session_start()
session_register("item");
$item['name'] = "Some Name";
$item['img'] = "some_image_name.jpg";
$item['desc'] = "Some Description";
$item['price'] = 400;
// Now I want to get rid of the desc array item.
// I
I'm making a module system. I need to make the actual module
then a form to go along with it. The only way I can think of doing this is
makign a file and then sectioning the file so that the first part is read and
put somewhere on a page them the other part is put on the same page later on or
Hi Eddie,
iFrames do offer a really nice solution, but they are an IE only
tag. Although I can't vouch for the latest Netscape, I know that the older
versions simply ignore the tag, and leave a blank spot in its
place.
If you know that your client base will ever only use IE, then go for
it.
> --- electroteque <[EMAIL PROTECTED]> wrote:
> > if ($_GET['sc'] !== '2' || $_GET['sc'] !== 8) {
> >
> > for me single equals seem to assign the variable with the value
> > double equals seem to check the variable for the value
>From the, imagine this, Manual:
$a != $b Not equal TRUE if $a
looks like it returns www in the host array a bit silly when i need just the
bits afterwards to do a gethostbyname
-Original Message-
From: Chris Shiflett [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 21, 2002 7:41 AM
To: electroteque; [EMAIL PROTECTED]
Subject: Re: [PHP] preg_replac
> --- electroteque <[EMAIL PROTECTED]> wrote:
> > how could i remove http://www. ot of a url string using
> preg_replace?
>
> No need to reinvent the wheel for this. Just use parse_url() instead:
>
> http://www.php.net/manual/en/function.parse-url.php
>
Or just str_replace(). No need for regula
--- electroteque <[EMAIL PROTECTED]> wrote:
> if ($_GET['sc'] !== '2' || $_GET['sc'] !== 8) {
>
> for me single equals seem to assign the variable with the value
> double equals seem to check the variable for the value
A "single equals" is "=" not "!=". Otherwise, you would be correct.
Chris
--
--- electroteque <[EMAIL PROTECTED]> wrote:
> how could i remove http://www. ot of a url string using
preg_replace?
No need to reinvent the wheel for this. Just use parse_url() instead:
http://www.php.net/manual/en/function.parse-url.php
Chris
--
PHP General Mailing List (http://www.php.net/)
$sql1 = "titulo like '%$titulotxt%'"
$sql2 = "cd like '$cdstxt'";
$sql = "SELECT * FROM divx WHERE $sql1 AND $sql2 ORDER BY titulo";
I think you are getting the error because of the ($titulotxt) ? portion of
your sql statements. You really only need the two statements listed above
and then put in
anyone know of any good anti spam software for linux ?? and maybe be able to
monitor it with php ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
add to that i'd do this
if ($_GET['sc'] !== '2' || $_GET['sc'] !== 8) {
for me single equals seem to assign the variable with the value double
equals seem to check the variable for the value
"Jonathan Wright" <[EMAIL PROTECTED]> wrote in message
20021120184141.GA12806@chef">news:20021120184141.G
how could i remove http://www. ot of a url string sing preg_replace ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
A sincere thanks to John for the prompt and succinct answer. I've seen many
answers from John on this list and am much appreciative of his generosity.
Best regards, verdon :)
On 11/20/02 3:07 PM, "1LT John W. Holmes" <[EMAIL PROTECTED]> wrote:
>> I have a form that is...
...
>> Which will ret
> On Thursday 21 November 2002 03:53, Mr. BuNgL3 wrote:
> > Hi...
> > I'm with a little sintax problem...
> > The question is that i have two search fields (titulotxt and cdstxt) and
i
> > want to create an mysql condition... i trying:
> >
> > $sql1=($titulotxt) ? "titulo like '%".$titulotxt."%'":
Try going direct to the image's URL, this might show any PHP errors. If that
doesn't work, you can request the page via telnet and see if any errors are
appearing
Andrew
- Original Message -
From: "James Hatridge" <[EMAIL PROTECTED]>
To: "PHP-GEN" <[EMAIL PROTECTED]>
Sent: Wednesday, Novem
> I have a form that is being passed to a mail function when submitted. It
is
> working OK, except that I am having trouble with values from arrays such
as
> checkbox lists. For example, I have a list such as:
>
> .eps
> .jpg
> .tif
> .gif
> .png
> .psd
> .bmp
> other
>
> I am using somethi
you can use the implode() function:
for ($z=0;$z wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi All :)
>
> I have a form that is being passed to a mail function when submitted. It
is
> working OK, except that I am having trouble with values from arrays such
as
> checkbox lists.
On Wednesday 20 November 2002 20:37, Van Andel, Robert wrote:
> More information would be helpful. Perhaps the code to the page that is
> causing you trouble (i.e. the one where you are using the class you
> downloaded yesterday). Perhaps you are missing a key piece there.
>
> Robbert van Andel
On Thursday 21 November 2002 03:53, Mr. BuNgL3 wrote:
> Hi...
> I'm with a little sintax problem...
> The question is that i have two search fields (titulotxt and cdstxt) and i
> want to create an mysql condition... i trying:
>
> $sql1=($titulotxt) ? "titulo like '%".$titulotxt."%'":"";
> $sql2=(
Hi All :)
I have a form that is being passed to a mail function when submitted. It is
working OK, except that I am having trouble with values from arrays such as
checkbox lists. For example, I have a list such as:
.eps
.jpg
.tif
.gif
.png
.psd
.bmp
other
I am using something like:
for (
Hi...
I'm with a little sintax problem...
The question is that i have two search fields (titulotxt and cdstxt) and i
want to create an mysql condition... i trying:
$sql1=($titulotxt) ? "titulo like '%".$titulotxt."%'":"";
$sql2=($cdstxt) ? "cds like '$cdstxt'":"";
$sql="SELECT * FROM divx WHERE
I understand that the Javascript will not pause the page from loading;
however, it should, like you stated, modify the page and hence change what
the client is seeing interactively which could include hiding/revealing
different questions based on their input. This should ultimately present a
form
More information would be helpful. Perhaps the code to the page that is
causing you trouble (i.e. the one where you are using the class you
downloaded yesterday). Perhaps you are missing a key piece there.
Robbert van Andel
-Original Message-
From: James Hatridge [mailto:[EMAIL PROT
If you can, use PHP 4.0.6 for server processing like that. It is the
last version that worked in our experience. A script using 4.0.6 can run
for months for us. Anything newer will die after a few hours/days. Not
sure where the problem is. May not be MySQL extension. Could be
anywhere.
Unless you
"Larry Brown" <[EMAIL PROTECTED]> wrote:
> The idea is to have the script start to load, prompt for a question or
more,
> then use the data from the response to complete loading the page and avoid
> having to post all of the variables from page to page to get all of the
> responses back. A lot o
Please post code.
-js
James Hatridge wrote:
> Hi all,,
>
> I d/l'ed a class for graphs last night. When I got the class working instead
> of a line graph I got the netscape symbol for no picture, ie a broken box. I
> must have missed something. Could someone give me a clue what I'm doing
> w
Hi all,,
I d/l'ed a class for graphs last night. When I got the class working instead
of a line graph I got the netscape symbol for no picture, ie a broken box. I
must have missed something. Could someone give me a clue what I'm doing
wrong?
Thanks
JIM
--
Jim Hatridge
Linux User #88484
Hi...
I'm with a little sintax problem...
The question is that i have two search fields (titulotxt and cdstxt) and i
want to create an mysql condition... i trying:
$sql1=($titulotxt) ? "titulo like '%".$titulotxt."%'":"";
$sql2=($cdstxt) ? "cds like '$cdstxt'":"";
$sql="SELECT * FROM divx WHERE
On Thursday 21 November 2002 03:34, Edward Peloke wrote:
> I apologize, I meant to add a new message, not respond to the copy tables
> message.
When you want to start a new topic please don't do so by replying to an
existing one. Because if you do:
-
You have
I apologize, I meant to add a new message, not respond to the copy tables
message.
-Original Message-
From: Edward Peloke [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 20, 2002 2:30 PM
To: PHP
Subject: RE: [PHP] copying tables
Is anyone using php and iframes? I have a php script
Is anyone using php and iframes? I have a php script
";
?>
The script within the frame, auction.php, has buttons that when clicked
sends parameters back to this iframe script which calls the auction.php
script again with the new parameters. Everything works fine, the only
problem is as I cli
--- Steve Buehler <[EMAIL PROTECTED]> wrote:
> What I am trying to do is to copy a mysql table to a new table
name
> in a PHP script.
An SQL statement similar to this might be what you are looking for:
create table tmp_foo as select * from foo
I believe this will fail to create any keys, indece
Quoting Jason Wong <[EMAIL PROTECTED]>:
> On Thursday 21 November 2002 01:34, Ryan Gallagher wrote:
>
> > Try:
> >
> > if( ( $_GET['sc'] != 2 ) OR ( $_GET['sc'] != 8 ) ){
> > /*
> >* Do Foo provided sc is anything but a 2 or 8
> >*/
> > do foo;
> > }
> >
> > Assuming of course that yo
--- Jason Wong <[EMAIL PROTECTED]> wrote:
> On Thursday 21 November 2002 01:34, Ryan Gallagher wrote:
> > if( ( $_GET['sc'] != 2 ) OR ( $_GET['sc'] != 8 ) ){
> > /*
> >* Do Foo provided sc is anything but a 2 or 8
> >*/
> > do foo;
> > }
> >
> > Assuming of course that you meant to excl
Using PHP and MySQL.
I have looked and can't find the answer to this problem. What I am trying
to do is to copy a mysql table to a new table name in a PHP script. The
reason for this is to keep the original table the way it is and editing the
copy. Now, I know that I can go through a loop rea
Warning: imap_open(): Couldn't open stream {192.168.0.1:143}INBOX in /www/imap.php on
line 4
can't connect: Certificate failure for 192.168.0.1:
self signed certificate:
/C=--/ST=SomeState/L=SomeCity/O=SomeOrganization/OU=SomeOrganizationalUnit
[EMAIL PROTECTED]
Any suggestions?
--
Jochen Kae
Duh!!! Thanks! Being a newbie hurts sometimes.
>>> Chris Shiflett <[EMAIL PROTECTED]> 11/20/02 01:50PM >>>
--- ROBERT MCPEAK <[EMAIL PROTECTED]> wrote:
> I've got a variable - $email_body, that contain's other variables.
> For example, echo "$email_body," might look like this:
>
> $name, $addre
--- ROBERT MCPEAK <[EMAIL PROTECTED]> wrote:
> I've got a variable - $email_body, that contain's other variables.
> For example, echo "$email_body," might look like this:
>
> $name, $address, $phone, $blah
>
> I want those variables to interpreted with corresponding values set
> earlier in the s
Please B/CC me, thank you.
I am on a site that has all the files in both the /home/sitename/www/ directory and a
directory
we'll call /home/directory/includes/ with the following permisssions:
rwxr-x--r
The group I have in /etc/group does not have anyone in it, including me.
The server r
The idea is to have the script start to load, prompt for a question or more,
then use the data from the response to complete loading the page and avoid
having to post all of the variables from page to page to get all of the
responses back. A lot of the questions are formed based on the answers to
<>
Not sure I get this but, again, I can't use $_REQUEST
or explode or in_array at this point. The entire
process needs to happen in the shell_exec() command,
because I'd much rather have that handle the whole
shebang than PHP.
__
Do you Yahoo!?
Yah
Heheh. Maybe I wasn't clear, or maybe I'm missing
something.
> Well, one way without regex would be to explode()
> numbers on a comma and use in_array() to see if
> you're value exists.
> That should look for your number, preceded by either
> the beginning of the string or a comma and followed
>
On Thursday 21 November 2002 01:34, Ryan Gallagher wrote:
> Try:
>
> if( ( $_GET['sc'] != 2 ) OR ( $_GET['sc'] != 8 ) ){
> /*
>* Do Foo provided sc is anything but a 2 or 8
>*/
> do foo;
> }
>
> Assuming of course that you meant to exclude cases of 2 or 8. It's a bit
> hard to tell wh
Not sure what your saying, but like:
$email_body = $name . ", " . $address . ", " . $phone . ", " . $blah;
?
On Wed, 2002-11-20 at 13:15, ROBERT MCPEAK wrote:
> I've got a variable - $email_body, that contain's other variables. For example,
>echo "$email_body," might look like this:
>
> $name
I've got a variable - $email_body, that contain's other variables. For example, echo
"$email_body," might look like this:
$name, $address, $phone, $blah
I want those variables to interpreted with corresponding values set earlier in the
script. So, in effect, where name=bob, address=101 east
Thanks all for the prompt responses. In case someone else searchs on the
list, the following code worked:
if($_GET['sc'] != '2' AND $_GET['sc'] !='8'){
do this.
}
Thanks Jason, Jonathan W., John H, Ryan G., and Tony B.!
- Original Message -
From: "Jami" <[EMAIL PROTECTED]>
To:
> Sorry to repost this, but I haven't found a solution
> and it's still nagging me. Maybe some of you can come
> up with something I can't. Here was my original post:
>
> I've made myself an tag that
> contains in the value attribute a list of
> comma-delimited numbers. I need to find if a certai
1 - 100 of 182 matches
Mail list logo