On Monday 20 September 2004 10:11, Afan Pasalic wrote:
> I have right now on my server php 4.3.4 without GD2 support. Actually,
> doesn't have GD support at all (nothing on phpinfo(); ).
> How can I "turn it on"? :)
You can try performing an erotic dance in front of it or you can read manual >
I
On Monday 20 September 2004 11:44, Jason FB wrote:
> Hereis my script, I copied and pasted Example 1 from this page:
>
> http://us4.php.net/manual/en/function.readdir.php
>
>
> You will see that the only way that I changed I initialize two
> variables at the very top that set the directory of the
are we still on top posting.. shessh. i only top post cuase im lazy...
J
"Octavian Rasnita" <[EMAIL PROTECTED]> wrote:
>
>
> - Original Message -
> From: "John Nichel" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, September 20, 2004 7:06 AM
> Subject: Re: [PHP] List Et
- Original Message -
From: "John Nichel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 20, 2004 7:06 AM
Subject: Re: [PHP] List Etiquette
> Octavian Rasnita wrote:
>
> > In other words it's easier for you to reach your Delete key when you top
> > post than when yo
Thanks to everyone for their input -- my Amazon wishlist is a lot
fatter right now :)
---
Justin French
http://indent.com.au
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Greg-
Hey, thanks.
Yea I suppose I am relatively new to PHP, been working with for about
a year and a half now, so sometimes there are gaps in my knowledge,
like this one. I'm fairly good at different debugging techniques, but
I get this error when I run the script from the manual which is why
Parse error: syntax error, unexpected T_BOOLEAN_AND in c:\TSW\pages\testing2.php on
line 3
My code should do what you want? It uses authenticate? Any how :) I think you are
missing acouple of brackets?
if (
($_POST['user'] == 'Andrew') && ($_POST['pass'] == 'pass')
)
{
echo "Welcome, Andrew.";
}
Gerard Samuel wrote:
I could have sworn that references and I used to get along...
In the menu::hasChild method, I cant seem to reference $this->_data.
$this->_data is supposed to be a reference to the original array $array
in the local scope.
The only way to make this script work is to call on the
I could have sworn that references and I used to get along...
In the menu::hasChild method, I cant seem to reference $this->_data.
$this->_data is supposed to be a reference to the original array $array
in the local scope.
The only way to make this script work is to call on the $GLOBALS array
in me
Octavian Rasnita wrote:
In other words it's easier for you to reach your Delete key when you top
post than when you bottom post ???
--
Ok, I have bottom posted, and have trimmed the end of the message. But this
was a little text only, while the header of this message is still there, and
it is bigg
PHP General List,
Regarding my the previous post -- the script had another bug in it
which I felt silly for having posted since it's so obvious at the
very top (a misisng "=" sign).
However, I am still having a problem with this script practically
copied and pasted from the PHP manual.
The rev
Jason Fb wrote:
$root_dir = "/Users/jason/Sites/";
$folder_on_server "test";
This should be:
$folder_on_server = "test";
T_CONSTANT_ENCAPSED_STRING is a long way of saying a string that doesn't
have any fanciness in it like "test" or 'hello', but not "this $way"
because $way is a variable that w
PHP General List,
I am trying to read the contents of a directory on a server and
perform imagemagick operations on each JPG found inside the
directory. The area where I am stuck currently is not the image
manipulation but the PHP function readdir().
Can anyone explain why I am having this beha
if youdo
if($var) {
}
and var doesnt exist at all, thats an error.
if(isset($var)) {
}
will test to see if $var exists, but will not test the value of var, so
$var could be blank...
Jason
"Pat" <[EMAIL PROTECTED]> wrote:
>
> So, you have to know, first, what is your meaning of your empty
hi,
I have right now on my server php 4.3.4 without GD2 support. Actually,
doesn't have GD support at all (nothing on phpinfo(); ).
How can I "turn it on"? :)
Afan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Now moving on to using password protecting with more than one factor.
I'm trying to figure out how to password protect with more than two factors:
username and password. Here's the form:
http://www.thesonicworld.net/pages/testing2.php";>
Username:
http://www.thesonicworld.net/pages/testing2.php
So, you have to know, first, what is your meaning of your empty variabe:
null, 0, "", array()?
For example, "$var = 0;", empty($var) says true... but you?
"Jason Davidson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> as suggeted the isset and empty functions are usefull,
> or if
Marek Kilimajer wrote:
your children function can return only one child, and one parent can
have more children. You should create an array of all children and loop
that.
As always, thanks for the nudge in the right direction.
I was in the middle of rewriting it, and applied your suggestion to it
I'm using this code to dynamically retrieve windows
media files and send it to the browser. I thought the
cache header would prevent the file from being cached.
The only problems is the .wmv file still ends up in my
IE temp files folder. How can I prevent this from
happening?
--
From: "John Nichel" <[EMAIL PROTECTED]>
> Easier for reading? Yes, you're right. Do you read a book from the
> bottom of the page up? Trimming a message is easier if you top post?
> That's pretty weak. Follow a top posted thread, you'll see that most
> top posters just leave everything in ther
From: "Chris Shiflett" <[EMAIL PROTECTED]>
This is like arguing that people choose to use IE instead of Firefox.
Surely the flaws of this argument are obvious. For people who bother to
make a choice, Firefox is a clear winner. The same is true for formatted
email. People (who care) tend to agree o
Teddy
- Original Message -
From: "-{ Rene Brehmer }-" <[EMAIL PROTECTED]>
To: "Octavian Rasnita" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, September 20, 2004 1:12 AM
Subject: Re: [PHP] List Etiquette
At 16:57 19-09-2004, Octavian Rasnita wrote:
>Hi,
>
>From: "John Nichel"
No one?
> I had an $array, with a list of authors and an entry number. Below is the code I
> used. Now I
> have compiled it all into a table. I don't know how to re-code these lines:
>
> foreach (array_count_values ($authors) as $author=>$count)
> foreach ($author_list[$author] as $ausid)
>
> --
No one?
> I had an $array, with a list of authors and an entry number. Below is the code I
> used. Now I
> have compiled it all into a table. I don't know how to re-code these lines:
>
> foreach (array_count_values ($authors) as $author=>$count)
> foreach ($author_list[$author] as $ausid)
>
> --
Try this. Add it to the very beginning.
[EMAIL PROTECTED] wrote:
> You were right, my display_error function was turned off. I turned it on and
> get this:
>
> Parse error: syntax error, unexpected T_IS_EQUAL in c:\TSW\pages\testing2.php
> on line 3
>
> So it isn't working. How do I get to let
as suggeted the isset and empty functions are usefull,
or if you know it may be set, but could be empty, how about just
if($variable) {
}
that is the same as
if($var == "")
"Chris Mach" <[EMAIL PROTECTED]> wrote:
>
> What is the best way to determine if a variable is empty?
>
> I have a feel
At 01:54 20-09-2004, Chris Mach wrote:
What is the best way to determine if a variable is empty?
I have a feeling there is a better way than the way I'm doing it now...
if ($variable == "")
there's 2:
if (isset($variable))
or
if (isempty($variable))
what's most appropriate depends on how the variab
What is the best way to determine if a variable is empty?
I have a feeling there is a better way than the way I'm doing it now...
if ($variable == "")
You could try the empty() or isset() functions, depending upon exactly
what you're wanting to test. See the manual for descriptions of both.
Larry
What is the best way to determine if a variable is empty?
I have a feeling there is a better way than the way I'm doing it now...
if ($variable == "")
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.766 / Virus Database: 513 - R
your children function can return only one child, and one parent can
have more children. You should create an array of all children and loop
that.
Gerard Samuel wrote:
Im trying to dynamically construct a multidimensional array
to be used with PEAR's HTML_Menu.
http://pear.php.net/manual/en/pack
At 16:57 19-09-2004, Octavian Rasnita wrote:
Hi,
From: "John Nichel" <[EMAIL PROTECTED]>
Do the words get smaller at the bottom? Having to scroll thru line
after line of message doesn't deal with top vs. bottom posting...that
stems from people not trimming non-releative parts out of the message.
-
I think it might be best to let this topic die. The original question did
not seem to be an attempt to start a debate but rather to hear why
experienced users dislike "top posting." I think I gave such reasons in my
initial reply, so there's no longer a question that needs to be answered.
This is
[EMAIL PROTECTED] wrote:
You were right, my display_error function was turned off. I turned it on and
get this:
Parse error: syntax error, unexpected T_IS_EQUAL in c:\TSW\pages\testing2.php
on line 3
So it isn't working. How do I get to let me make comparisons between the post
data and somethi
On Sun, 2004-09-19 at 14:49, John Nichel wrote:
> Check the headers of this email. I'm using a Windows box right now, and
> my cursor was automatically at the end when I clicked reply. Again,
> it's laziness if one doesn't want to configure their client to put the
> cursor at the end, or to ma
uh huh.. was it your firewall :) :) it was wasnt it.. im so bad, im so
bad it hurts, but i solved your problem, so come on, a cookie or
something..pat on the head, or how about, thanks for helping.
Jason
"Sam Hobbs" <[EMAIL PROTECTED]> wrote:
>
> "Jason Wong" <[EMAIL PROTECTED]> wrote in messa
> i haven't paid a lot of attention to your setup. are you running this
> through your web server or via the php-cli?
Basically I have a file that connects to a database, before the loop, and
then checks the database for new messages. If there are, it displays them
accordingly
> if via php throu
Im trying to dynamically construct a multidimensional array
to be used with PEAR's HTML_Menu.
http://pear.php.net/manual/en/package.html.html-menu.intro.php.
Basically, Im pulling the data from a DB table, and trying to
attempt to convert the original array to what is needed for HTML_Menu.
If you l
Sam Hobbs wrote:
"Raditha Dissanayake" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Sam Hobbs wrote:
I have posted over 12,000 messages in the CodeGuru.com Visual C++ forum,
Do you have a life ?
I hope the moderators protest posts such as this.
Moderators? You're in the land o
Octavian Rasnita wrote:
The rules should be made to make the reading process easier for the readers
and the top posting versus bottom posting has nothing to do with the
trimming of the messages.
It is much easier to trim a message when top posting, just as I explained
you.
Easier for reading? Yes,
"Jason Wong" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Would you mind spilling the beans? I'm sure everyone is dying to know what
> the
> resolution of this thread is.
I definitely mind. I don't believe in rewarding bad behavior. It is
reasonable to contribute to the produ
"Sam Hobbs" <[EMAIL PROTECTED]> wrote:
>
> "Raditha Dissanayake" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Sam Hobbs wrote:
> >
> >>
> >>I have posted over 12,000 messages in the CodeGuru.com Visual C++ forum,
> > Do you have a life ?
>
> I hope the moderators protest po
"Raditha Dissanayake" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Sam Hobbs wrote:
>
>>
>>I have posted over 12,000 messages in the CodeGuru.com Visual C++ forum,
> Do you have a life ?
I hope the moderators protest posts such as this.
--
PHP General Mailing List (http://www.
You were right, my display_error function was turned off. I turned it on and
get this:
Parse error: syntax error, unexpected T_IS_EQUAL in c:\TSW\pages\testing2.php
on line 3
So it isn't working. How do I get to let me make comparisons between the post
data and something else? I figure if I ca
Hello,
On 09/19/2004 09:49 AM, Martin Justra wrote:
I finally managed to grab the website via curl. Now the problen is that I
want to have a small piece of that site. I tried to cut that site by
explode. Now the browser hangs. He says "waiting for www.domain.de" and
does nothing.
Here is my
On Sun, 2004-09-19 at 11:36, revDAVE wrote:
>Q: here is what I am unclear of: since I do not know PhP - how do I get the
>main display page to read this part of the URL?
>
> - how do I write this?
>
> thanks in advance for your help
Since you do not know PhP, how about picking up a book or try
> I even started writing all of my functions in classes/objects because
> I thought that's what I was supposed to be doing, but never really
> understood why.
>
> Then I got a cheap paperback book called THE OBJECT-ORIENTED THOUGHT
> PROCESS by Matt Weisfeld, and it *finally* all made sense! This
* Thus wrote Octavian Rasnita:
> Hi,
>
> I have a very strong reason for top posting and a very strong one for not
> agreeing too much bottom posting at all, and this is the fact that I am
> blind and if I need to read a bottom post, I need to read again and again
> the whole original message, eve
[EMAIL PROTECTED] wrote:
I appreciate the help, but unfortunately it still doesn't work. I changed
testing2.php, the action page to do this:
if ($_POST['user']) == me {
echo "Andrew";
} else {
echo "not me";
}
?>
I still get a blank page. What's more I turned on Display Errors and
resta
::
:: Personally, I think you're taking the wrong approach to solve your
:: problem. PHP scripts were meant to execute in short fashion, to get
:: over and done with. If you need something that checks for changes,
:: don't make the PHP script run from now until doomsday, set it up as a
:: schedu
> Although I'm not certain how well known this is, I thought I'd share
> this with everyone who might have wondered if there was a benefit to
> using or not using quotes when referencing associative arrays.
The benefit to using quotes is that it's the right thing to do, unless
you're looking for c
On Sunday 19 September 2004 23:36, revDAVE wrote:
[snip]
You have started a new thread by taking an existing posting and replying to
it while you changed the subject.
That is bad, because it breaks threading. Whenever you reply to a message,
your mail client generates a "References:" header that
hi,
And I just realize that if we use text/plain instead of
application/x-www-form-urlencoded; gives error. When I use
application/x-www-form-urlencoded no problem to send single data
"Catalin Trifu" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> > $str = "DATA=abc&DATA=123
Hi,
When I send only one data such as
$str = "DATA=abc";
it is working fine. So that I think, I do not need to use rawurlencode.
I made folowing change according your post; again same, when I post only one
data field, it works fine. But when use three of them, server comes with
error. I think s
Martin Justra wrote:
Hi,
Did you want to
a) redirect the user to https://www.domain.com/...
or
b) display the contents of https://www.domain.com/...?
I want to redirect the user. But as soon as I try with fopen (https://)
I get the following error:
Warning:
fopen(https://tto.deutschepost.de
I appreciate the help, but unfortunately it still doesn't work. I changed
testing2.php, the action page to do this:
I still get a blank page. What's more I turned on Display Errors and
restarted the server, but still got no error message.
I don't know what the problem is, maybe there is somet
I would like to set up a situation where I have one main page with a bunch
of thumbnail pictures on it. Each will have a link to a larger photo.
However, rather than just simply loading a raw JPEG to a blank page, I
would like to use PHP, so that each link will point to 1 main php display
page
Maybe something like this:
http://dev.mysql.com/doc/mysql/en/TRUNCATE.html
"John Taylor-Johnston" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> MySQL question:
>
> DROP TABLE IF EXISTS
>
> Instead of dropping the table, I want to truncate the table if it contains
something. ANyone
On Sunday 19 September 2004 21:47, [EMAIL PROTECTED] wrote:
> I'm trying to password protect a page with PHP, using forms and $_POST data
> and all that stuff.
I strongly suggest you search out a few tutorials on this subject.
google > php authentication tutorial
would be a good start.
--
J
* Thus wrote [EMAIL PROTECTED]:
>
> This page shows up ok, with the form generating just fine. The problem is
> when I get to the action page, testing2.php. Here is that:
>
>
> if ($_POST['user']) == me {
>
> echo "it's me!";
>
> } else {
>
> echo "not me";
>
> ?>
You have a parse error,
Hi,
From: "John Nichel" <[EMAIL PROTECTED]>
Do the words get smaller at the bottom? Having to scroll thru line
after line of message doesn't deal with top vs. bottom posting...that
stems from people not trimming non-releative parts out of the message.
---
The rules should be made to make the re
Merlin wrote:
Hi there,
A few months ago I have written a php file which is activated daily by a
cronjob run by user: www
Now I cant find that cron job to disable it.
/var/log/messages shows following entry:
Sep 19 06:00:00 server /USR/SBIN/CRON[28397]: (www) CMD
(/usr/local/bin/php /home/www/fo
On Sunday 19 September 2004 22:47, Merlin wrote:
> A few months ago I have written a php file which is activated daily by a
> cronjob run by user: www
> Now I cant find that cron job to disable it.
>
> /var/log/messages shows following entry:
> Sep 19 06:00:00 server /USR/SBIN/CRON[28397]: (www) C
Hi there,
A few months ago I have written a php file which is activated daily by a cronjob
run by user: www
Now I cant find that cron job to disable it.
/var/log/messages shows following entry:
Sep 19 06:00:00 server /USR/SBIN/CRON[28397]: (www) CMD (/usr/local/bin/php
/home/www/follow_up_new_me
* Thus wrote Brandon Goodin:
> Greetings,
>
>
> In the following example when I run the myscript.php I pass the $myarr into
> the addVal function of the MyClass class. The var_dump in the addVal
> function appropriately displays all of the elements of the array a,b,c and
> d. However, the var_du
* Thus wrote bskolb:
>
> Benchmark results:
>
> Function assocArrayWithQuotes() ran 50 times in 4.4331 seconds.
> Function assocArrayWithoutQuotes() ran 50 times in 6.4170 seconds.
>
> The only difference in the two functions is the use of quotes, one with and
> the other without.
Th
Octavian Rasnita wrote:
Hi,
I have a very strong reason for top posting and a very strong one for not
agreeing too much bottom posting at all, and this is the fact that I am
blind and if I need to read a bottom post, I need to read again and again
the whole original message, even though most of the
On Sun, 19 Sep 2004 14:29:54 +0300, Magdy <[EMAIL PROTECTED]> wrote:
> my problem is with date( ) function which is display a GMT time which is different
> from my zone with 3 hours,,,how can i correct this.
The date() function, gets the system current date/time if you don't
pass the second para
Hello,
I'm trying to password protect a page with PHP, using forms and $_POST data
and all that stuff. However, I'm running into problems setting it so that if
the POST is equal to a certain thing, it'll do this or that (using if...else
commands) and also problems with just getting blank pages w
On Sat, 18 Sep 2004 22:33:09 +0800, in php.general
[EMAIL PROTECTED] (Jason Wong) wrote:
>> Ok, it is like I thought, but if it is made in PHP is
>> there a way to catch all the ID sent to the main page
>> of tinyurl.com and then query the database?
>
>If your webserver is apache you could use its
On Sunday 19 September 2004 20:49, Martin Justra wrote:
> I finally managed to grab the website via curl. Now the problen is that I
> want to have a small piece of that site. I tried to cut that site by
> explode. Now the browser hangs. He says "waiting for www.domain.de" and
> does nothing.
>
Hello,
I finally managed to grab the website via curl. Now the problen is that I
want to have a small piece of that site. I tried to cut that site by
explode. Now the browser hangs. He says "waiting for www.domain.de" and
does nothing.
Here is my listing:
https://www.example?benutzer=aaa&p
On Sunday 19 September 2004 19:36, Octavian Rasnita wrote:
> I have a very strong reason for top posting and a very strong one for not
> agreeing too much bottom posting at all, and this is the fact that I am
> blind and if I need to read a bottom post, I need to read again and again
> the whole o
BTW, does anyone know if there is a program or script that can "listen" to
the stream and save it into a file?
I know this can be done using a program for recording the sound, but that is
not a very professional solution and it depends on the quality of the sound
card, the speed of internet connect
Hi,
I have a very strong reason for top posting and a very strong one for not
agreeing too much bottom posting at all, and this is the fact that I am
blind and if I need to read a bottom post, I need to read again and again
the whole original message, even though most of the time I remember what w
Hi,
i'm pleasure to write to u and hope to finde an answer..
my problem is with date( ) function which is display a GMT time which is different
from my zone with 3 hours,,,how can i correct this.
Thanks in advance.
Magdy
"Top posting"
Whats that?
hehehe
--- -{ Rene Brehmer }- <[EMAIL PROTECTED]>
wrote:
> Most mail programs have their default settings set
> for top posting ...
> while most news clients are set for bottom posting
> which way is the
> most preferable depends on what's most useful for
> your
On Sunday 19 September 2004 18:02, Martin Justra wrote:
> yes that works. But the problem is that I don't want that the one who opens
> the site can see the whole link in the navigation line of the browser
> (where you type your adress in).
>
> In your solution I get the whole link
If you want to
On Sun, 19 Sep 2004 01:07:25 +0200, Martin Justra <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I want to write a script which does the following:
>
> You enter http://www.test.com/test.php?number=123456
>
> and the script shows the site
> https://www.domain.com/direct_access.do?usert=test&password=te
On Sat, 18 Sep 2004 19:48:37 -0500, Stephen Craton
<[EMAIL PROTECTED]> wrote:
> Here's what I'm doing in a nutshell: Loop infinitely, checking for changes
> to a database, flushing the data, sleep, and repeat the loop. It all goes
> well and I'm getting it to work correctly. However, I'm not sure o
Hi,
$str = "DATA=abc&DATA=123&DATA=xxx"
I believe you should encode the string with http://www.php.net/rawurlencode
but make sure u don't encode the & and = signs.
$len = strlen($str);
$p = "POST /httpsmspp/servlet/sms HTTP/1.0\r\n";
$p.= "Host: 123.31.228.206\r\n";
$p.= "Content-
Hello Robert,
yes that works. But the problem is that I don't want that the one who opens
the site can see the whole link in the navigation line of the browser (where
you type your adress in).
In your solution I get the whole link
Martin
--
PHP General Mailing List (http://www.php.net/)
To
On Sun, 2004-09-19 at 02:29, Martin Justra wrote:
> Hi,
> > Did you want to
> >
> > a) redirect the user to https://www.domain.com/...
> >
> > or
> >
> > b) display the contents of https://www.domain.com/...?
> >
> I want to redirect the user. But as soon as I try with fopen (https://)
> I get
Hi,
> Did you want to
>
> a) redirect the user to https://www.domain.com/...
>
> or
>
> b) display the contents of https://www.domain.com/...?
>
I want to redirect the user. But as soon as I try with fopen (https://)
I get the following error:
Warning:
fopen(https://tto.deutschepost.de/next
hi, I've currently been looking for a mysql news server where I could post
some questions on mysql database design (cause they shurely wouldn't fit
here) and I have yet to find one. Can anyone help?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
That's because you're moving the variable from the main scope to the
function scope. When you're there, you import the VALUES (that is, make
a COPY) of the variables supplised via the function call. If you change
a variable inside the function, it will only be changed in the function
scope, and
Dear Sirs,
I need to post 3 string data to destination adres. But I see first time, the
name of the variables are same such as DATA. I ask the destination ovner is
there any error. Should be the form fields name such as DATA1, DATA2 and
DATA3.
According him, his form is working fine and fields ar
Greetings,
This is a little difficult to explain. So, below is an example I will work
from. Forgive my ignorance here. I am a java developer using php4 and trying
to figure out a particular scenario.
In the following example when I run the myscript.php I pass the $myarr into
the addVal func
87 matches
Mail list logo