on 29/06/02 2:53 AM, Kevin Stone ([EMAIL PROTECTED]) wrote:
> John I hate to critisize you since you are one of the most active members on
> this list. But are these types of comments really useful?
> -Kevin
No, I'm with John on this one. I'd say I type "no, JavaScript is
client-side, and PHP
on 29/06/02 3:20 AM, Tamas Arpad ([EMAIL PROTECTED]) wrote:
>> I was thinking if you use 90 character long filenames, assuming you only
>> use the letters of the alphabet and the digits then you would have 62^90
>> different filenames, which is roughly 2E161 (2 followed by 161 zeros),
>> which is
I think there is also a directive in php.ini to ALWAYS include a certain
file at the top of each script, transparently.
Perhaps you could dynamically write to this file as needed, or dynamically
write to a MySQL table which is called/queried by this script.
This may or may not help, depending on
PHPLib has session functions, and was essentially "what people used" before
PHP4. It will of course require a fair bit of work to port your scripts
across.
Personally I'd change to another host :)
Justin French
on 29/06/02 2:17 PM, Cysec ([EMAIL PROTECTED]) wrote:
> I have already scripted
Hi people,
Just a question, I'm building components for a customer who wants some
interactivity within his site, but still wants to build the site himself.
One thing that would be interesting would be Session management. Now, if I
just tell him to make all his own pages with .php ext instead o
I have a switch in a script I'm working on. I need to have case 1 and 2
both to to case 3, but without case 1 going through case 2. Is this
possible?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all.
I know its Sunday morning and that Im NOT getting many responses right
now ;-)
I connected to the net, opened my browser, pointed it towards an e-mail
script Ive installed this afternoon in my site (SquirrelMail) qnd got
into the INBOX
once there, I opened my MS Outlook and receive
I realise its a longshot but is it possible to use PHP (or any other
web-based languages) to combine multiple ZIP files into a single ZIP file?
and any scripts i can download to do it.
Any help with this is most appreciated. ;-)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
At 5:18 AM -0400 6/30/02, Leif K-Brooks wrote:
>I have a switch in a script I'm working on. I need to have case 1
>and 2 both to to case 3, but without case 1 going through case 2.
>Is this possible?
No, but you can do it this way:
switch ($foo) {
case 1:
...
do_something(
Can you post the code on here?
There must be some headers somewhere because the mail has been sent to
you -> to header.
Have you clicked on the email in Outlook and looked at the headers / message
source?
"César aracena" <[EMAIL PROTECTED]> wrote in message
002a01c22019$21a0c210$dfc405c8@gateway"
enable-trans-sid appends a session id to URLs, but it works in conjunction
with php's session functions. Simply compiling with --enable-trans-sid or
appending it to the URL yourself will not maintain session.
using functions like session_start() and the registering of session
variables ($_SESSIO
Hi Justin,
Thx for the reply
Justin French wrote:
> using functions like session_start() and the registering of session
> variables ($_SESSION['something'] = "foo";) will establish/maintain a
> session.
Yes, I understand. Sessions need to be started. But once they have started,
do I need to r
Hello,
i discovered bug in sessions:
when using unset($_SESSION[...]) insted session_unregister(...) and
before calling read _$SESSION[...] variable WILL NOT unset.
please try these examples and see result.
here is method how to produce this bug (you must have cookies enabled):
1. run script
2
Hi,
I am trying to write a program that is very modular in nature & one of the
features I need the user to be able to do is install/uninstall or
enable/disable the module though the interface.
I have though of 2 ways this could be done, either when the module is
installed it adds additional line
Hi
One way to achieve the same effect:
fallthru = 0;
switch($whatever){
case "1":
do something1;
$fallthru = 1;
case "2":
if(!$fallthrough){
do something2;
}
case "3"
on 30/06/02 9:04 PM, Tim Stoop ([EMAIL PROTECTED]) wrote:
> Yes, I understand. Sessions need to be started. But once they have started,
> do I need to re-affirm the session on every page, or will it hold for a few
> pages, until the session-variables will be used again ...
Well, you really need
On Sunday 30 June 2002 03:03, Mike Tuller wrote:
> To let everyone know, I did apologize to Mr. Wong. I misunderstood what he
> was trying to ask me. I took it as he was saying "It's easy, what is "your"
> problem" rather than "What "is" your problem" .
Thanks. But no need to call me "Mr" though
On Sunday 30 June 2002 15:32, Tony Harrison wrote:
> I realise its a longshot but is it possible to use PHP (or any other
> web-based languages) to combine multiple ZIP files into a single ZIP file?
> and any scripts i can download to do it.
>
> Any help with this is most appreciated. ;-)
If you
On Sunday 30 June 2002 19:04, Tim Stoop wrote:
> Hi Justin,
>
> Thx for the reply
>
> Justin French wrote:
> > using functions like session_start() and the registering of session
> > variables ($_SESSION['something'] = "foo";) will establish/maintain a
> > session.
>
> Yes, I understand. Sessions
Hi Justin,
Thx again for the answer.
Justin French wrote:
> Well, you really need to check out a decent article/tutorial on sessions,
Nah, I think I explain my question a little wierd and that's why you don't
understand me... I've worked with sessions lots of times (although mostly
in Java S
On Sunday 30 June 2002 03:09, Nookie wrote:
> Hi,
>
> I want to write function which change variable in ie. config.php file ...
> Here is code:
>
>
> include "config.php";
>
> $file = fopen("config.php", "w+");
>
> $content = fread($file, filesize("config.php"));
>
> $content = str_replace("\$opt
Maybe I am just doing it incorrectly but I am unable
to get anything displayed with imageellipse in
gdlib2.0.
Can anyone give me a simple php script to test it
with? I am using php with Sablotron.
Thank you.
--
Bill
Amsterdam, NL
--
PHP General Mailing List (http://www.php.net/)
To unsubscrib
php-general Digest 30 Jun 2002 13:48:29 - Issue 1436
Topics (messages 104544 through 104572):
Re: Usiing FOREACH to loop through Array
104544 by: Brad Melendy
104548 by: Steve Edberg
104550 by: Brad Melendy
mcrypt
104545 by: charlesk
Re: Getting IP from beh
Same for me (PHP4.2.1 on Win). Unset removes the variable from the
session for the duration of the script, but doesn't actually remove it
from the session. Using session_unregister() does remove the variable
from the session. You should post it as a bug, Michal, or tell them to
change the document
Why not create a cookie for that poll. When the vote check for the cookie.
Unless a user clears the cookie himself, you basically limit votes to one
per computer or one per computer per user.
Bruce Karstedt
President
Technology Consulting Associates, Ltd.
Tel: 847-735-9488
Fax: 847-735-9474
---
Leif K-Brooks wrote:
> I have a switch in a script I'm working on. I need to have case 1 and
> 2 both to to case 3, but without case 1 going through case 2. Is this
> possible?
Does "case 3" have to be in the switch? If not, just leave it to execute
just after the end of the switch.
Othe
Hi
Going through some literature, it seems like the use of registered
globals can cause security issues. Now, the dilemma, all my previous PHP
installations ( for the last year or so ) have come with register
globals = on in the php.ini file by default, and users on my system has
happily coded
It is rather trivial to turn off cookies. It's not a matter of clearing
cookies, the user simply turns it off. Heck, many users browse with
cookies turned off by default.
-R
On Sun, 30 Jun 2002, Bruce Karstedt wrote:
> Why not create a cookie for that poll. When the vote check for the cookie.
Here ! Here ! Everyone's time is valuable, and therefore the more we all
respect each other's time and opinions, the more valuable a resource this
will become.
Bruce Karstedt
President
Technology Consulting Associates, Ltd.
Tel: 847-735-9488
Fax: 847-735-9474
-Original Message-
From: Ju
The pear.php.net site seems to have a problem with no MySQL server
running. I need to download PEAR in a hurry. Can someone get the site
back up or tell me if I can get PEAR from somewhere else??
Thanks
Paul
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www
On Sunday 30 June 2002 23:12, PHPCoder wrote:
> Hi
> Going through some literature, it seems like the use of registered
> globals can cause security issues. Now, the dilemma, all my previous PHP
> installations ( for the last year or so ) have come with register
> globals = on in the php.ini file
Hello,
I am having some problems parsing XML with PHP. Here is an example of my
problem:
Example 1:
SOME TEXT
When I try to use the expat XML functions I cannot parse TAG1 in the above
example. I simply get nothing. However with the following example:
on 30/06/02 11:33 PM, Tim Stoop ([EMAIL PROTECTED]) wrote:
> Ah yes, I forgot about that... I need to resume the session, of course.
> Would session.auto_start set to 1 work without these session_start()'s?
I believe so... and Jason Wong has sent an email suggesting this.
> The
> thing is, I n
You could leave the setting to ON in your php.ini, and impose OFF on a
per-directory (account, domain, etc) basis with a .htaccess file (or
vice-versa), assuming you have Apache.
This will mean all new clients will have the setting to OFF, and will do
things "the right way" from day 1. It will a
Tim,
You might want to look into a good templating solution, too. You can
make it so the customer can maintain all of the HTML and you maintain
the PHP, and it's all kept separate. It's would be similar to what it
looks like you are doing now.
Instead of telling the client to put , you could do
Hello,
Is there anyway I can do fopen to try to open a connection to a domain
name, if it cant try opening it to the IP? For some weird reason today
a domain name wont resolve and Iam getting this error:
Warning: php_network_getaddresses: getaddrinfo failed: Name or service
not known
Thanks.
Can't you write it this way?
switch( $bar) {
case 2:
...
case 1:
...
case 3:
...
}
On Sun, 30 Jun 2002, Leif K-Brooks wrote:
> I have a switch in a script I'm working on. I need to have case 1 and 2
> both to to case 3, but without case 1 going through case 2. Is th
Thanks for the help guys. The one-line include is definitly a very good
idea, which I'll use.
Templating is very interesting, although, only if it works exactly as you
say, with HTML-like tags. I looked at Smart, patTemplate en some others,
but they all use {} or [] style tags. In that case, I
The manual shows fopen("http://www.php.net/","r";) works. If you are
saying it is only today that it is not working then I wonder if the
server (or dns server for it) is down.
If on unix, does "dig domain.com" give an ANSWER section with ip
address? If on NT, does "nslookup domain.com" give an
>Well, I'm deeply moved by your concern - I don't think I was either
>hostile or impatient however - I was just stating the obvious and
>implying a question (why isn't it straightforward).
That was my problem with your post--why imply the question, and leave
it open to interpretation? Why not
On Sun, Jun 30, 2002 at 05:58:59PM +0200, Sebastian A. wrote:
>
> I am having some problems parsing XML with PHP. Here is an
> example of my problem:
The answer hasn't changed since the last time we had this same
discussion back in early May. Search groups.google.com for message id
[EM
> > names of companies that charge a reasonable rate, that you can use you
own
> > shopping cart and work well with PHP
My company's site uses Innuity as a gateway with PHP pages. You can do
whatever you want to get the totals, then POST the charge to their secure
server which can return all
"Justin French" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 1. Name all included files .inc
If you name them *.php then put anything in them inside a function, then
when the user browses to that file he/she won't see anything at all.
- Steve Yates
-
Perhaps we could agree on a standard response when someone asks about doing
javascript in php. Then when someone asks that question, the first one to
send out that canned response wins 1 php credit. John and Jason would be
php millionaires by the year out I think.
-Original Message-
F
Steve Yates wrote:
>"Justin French" <[EMAIL PROTECTED]> wrote in message
>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
>
>>1. Name all included files .inc
>>
>>
>If you name them *.php then put anything in them inside a function, then
>when the user browses to that file he/she won't see a
This is one of the mails headers:
/dev/cdrom595M 596M 0 100% /mnt/cdrom
bash-2.05$ rpm -q redhat-release
redhat-release-7.2-1
X-UIDL: =aK"!>16"!7o9"!jCB!!
**
And this is it's content:
System: Linux angel 2.4.7-10 #
You were right, I found the following:
# Declare the function that runs each time
# character data is encountered.
function CharacterHandler($Parser, $Line) {
global $CData;
# Place lines into an array because elements
# can contain more than one line of data.
$CData[] = $L
Well Tim, I don't have much time working with PHP, but I did study the
template format made by Ying Zhang. I found it when searching for a
shopping cart - PHP made - script. If you want to look at it, search
hotscripts for "mymarket". To give you an idea, I make just one page
with session_start()
why not assign your user a unique id when they first visit you site and this
is registered in a database. The unique id is then passed from page to page
in the URL (i.e. get method)
when they submit their vote, the PHP page:
1: check to see if that Unique ID is stored in the database (checks it
ha
Hi,
I have a little problem I am trying to solve but right now I have no idea where to
begin. I am preying that someone out there might be able to help me.
In my MySQL database I have a group of figures, one for each record. Through PHP I
have concluded at a 'magical' number which I will ne
Hi,
I have a little problem I am trying to solve but right now I have no idea
where to begin. I am preying that someone out there might be able to help
me.
In my MySQL database I have a group of figures, one for each record.
Through PHP I have concluded at a 'magical' number which I will need
> I am trying to write a program that is very modular in
> nature & one of the
> features I need the user to be able to do is install/uninstall or
> enable/disable the module though the interface.
I have, in the past, stored such information in a database. In projects
that have need of suc
We are seeing a rare bug that seems to imply that there is a bug in PHP's
global variables across httpd processes. To make a long story short, it
appears that on rare occassions our script gets the value of a HTTP_GET_VARS
variable from another user's process. Is this possible? BTW, it seems to o
I don't see how. But if what you are saying is actually happening, then
it is a Linux kernel-level bug if memory is leaking from one process to
another. No matter how badly we screwed up in PHP, the kernel prevents
such a screwup from infecting a separate process.
I'd suggest having a close loo
Well I'm not good enough at SQL to do this, but how about you get PHP to
figure out all the combinations, ie
1, 3, 5, 2, 6, 5&2, 3&2, 3&2&1, 5&1, 6&1, 2&1, 3&1
Then do a set of
SELECT * FROM table WHERE number=1
SELECT * FROM table WHERE number=3
SELECT * FROM table WHERE number=3 OR number=
The only question I could possibly have asked to leave it open enough to
all the possibilities was basically the one I asked. That's because
possible reasons for not writing his own function may have been:
- he wanted a very basic gradient, but he was such a newbie in PHP that
he didn't know ho
Hi Vicki:
I'm not going to cover everything in the email. BUT, the essence of
the solution is right here. I made a little test script based on the
values you said were in the cart array at the top of the page and the
variables contained in the form...
#! /usr/local/bin/php -q
$value
By this point, I am trying to speak generally. Not trying to pick on
Bogdan specifically, since communication can always be improved.
>Please tell me what would be a question which would leave all these
>answer opportunities open while also being brief and obviously not
>being hostile?
Hmm...
You guys are over-complicating this. If you want to help someone and don't
understand their question, just say so. People asking for help are usually
more than happy to provide additional information or rephrase their
question.
Be careful when using the question, "Are you new to PHP?". It has
Hi People,
I was wondering if there is anyway to combine these two IF statements
into one:
if (preg_match("@siteUserList.cgi?group=site177@", $QUERY_STRING))
and:
if (preg_match("@siteUserList.cgi?group=site177&@", $QUERY_STRING))
In other words I need it to match if the query string HAS o
try this
if (preg_match("@siteUserList.cgi?group=site177&?@", $QUERY_STRING))
(I added a "?" after get "&")
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 01, 2002 11:29 AM
To: [EMAIL PROTECTED]
Subject: [PHP] How to put these 2 IF statements in
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
wrote:
> I was wondering if there is anyway to combine these two IF statements
> into one:
>
> if (preg_match("@siteUserList.cgi?group=site177@", $QUERY_STRING))
>
> and:
>
> if (preg_match("@siteUserList.cgi?group=site177&@", $QUERY_STRING
php-general Digest 1 Jul 2002 02:16:39 - Issue 1437
Topics (messages 104573 through 104611):
Re: bug in sessions
104573 by: John Holmes
Re: Getting IP from behind proxies
104574 by: Bruce Karstedt
104577 by: Rasmus Lerdorf
104598 by: Peter
Re: Two cases goi
I am trying to compare a given date string (i.e. June 30, 2002 is
20020630). I want to make sure that the input string that is given is not
greater than today (i.e. if today is June 30, and you ask for 20020701, I
want to be able to throw an error).
I'm a newbie, so I'm not sure th
Hi,
As discussed a few months back, I'm interested attempting to recreate PHP's
enable_trans_sid feature, for users without cookies.
ONLY if cookies are UNavailable, I want to open the output buffer, build the
page, then run a reg exp or something over the output to append SIDs to all
URLs (GET)
Hi
enable_trans_sid does exactly what you are trying to re create, if no
cookies are available it modifies all the urls automatically.
and transparently
Tom
At 12:48 PM 1/07/2002 +1000, Justin French wrote:
>Hi,
>
>As discussed a few months back, I'm interested attempting to recreate PHP's
>ena
Is there a way to bypass the print popup window within linux?
I wish to run a print job of 200 or so invoices and don't want the promp for every
page I print..
Is any one able to point me in the right direction..
Thanks in advance..
---
Martin,
I said I'd let you know how I got on.
It's all working, but only realistically for no more than 500 or so records.
When I feed it 1+ records, the machine chokes.
So I'm back to textbooks just looking for clues on really fast sorting and
searching algorithms. I've written a mostly wo
On Monday 01 July 2002 11:16, Chris Kay wrote:
> Is there a way to bypass the print popup window within linux?
That's a function of whatever browser you're using!
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Intern
Sorting - are you sorting the array keys or the values ?
If you're sorting the keys, maybe it would be better to have another array
that holds a list of keys, sort that, and then use that as a "pointer" to
the actual array.
If you're sorting the values, then php has a good sort function (uses th
g to compare a given date string (i.e. June 30, 2002 is
> 20020630). I want to make sure that the input string that is given is
not
> greater than today (i.e. if today is June 30, and you ask for
20020701, I
> want to be able to throw an error).
>
> I'm a newbie, so I'
I'm aware of this. What I'm trying to do is emulate this process on servers
which have not compiled with --enable_trans_sid. I thought that was pretty
clear, but perhaps not.
In the ideal world, enable_trans_sid would have been compiled, but I'm yet
to find many shared hosts where this has been
On Sun, 30 Jun 2002, John Holmes wrote:
> $today = date("Ymd");
> if($input_date > $today)
> { echo "Date must be before today!"; }
*thwaps self*
DUH! Thanks... been staring at this for too long.
> It looks like you're dealing with MySQL dates. There are a ton of useful
> functions you can u
Sire:
On Sun, Jun 30, 2002 at 10:21:40PM +0200, Sebastian A. wrote:
>
> Later on, you make the $Cdata a string, $temp, and then the next time you
> use it: $Temp = $Data['TRADE-DATETIME']
> You re-assign it again without using the data. Did I miss something?
Yes. Further down was the default ca
Quick question?
Is their anything in Apache or PHP that would keep styles from working. Both
external (CSS) and inline styles are ignored.
Environment :
Win XP Pro
Apache 2.0.39
PHP 4.2.1
Writing & Debugging on Homesite 4.0.1
Bruce Karstedt
President
Technology Consulting Associates, Ltd.
Tel
if in-line styles aren't working (and you can see them when you do a "view
source") then it's nothing to do with apache.
(unless there's a header() command I don't know about that stops them from
working...)
Martin
-Original Message-
From: Bruce Karstedt [mailto:[EMAIL PROTECTED]]
Sent:
Bruce...
there is nothing stopping it from working unless they are turned off in the browser's
settings... just be mindful that CSS works slightly differently in netscape to ie..
-Original Message-
From: Bruce Karstedt [mailto:[EMAIL PROTECTED]]
Sent: Monday, 1 July 2002 2:32 PM
"Chris Shiflett" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Steve Yates wrote:
> >If you name them *.php then put anything in them inside a function, then
> >when the user browses to that file he/she won't see anything at all.
> >
> I think this is a very p
On 30 Jun 2002 at 22:31, Timothy J. Luoma wrote:
>
> I am trying to compare a given date string (i.e. June 30, 2002 is
> 20020630). I want to make sure that the input string that is given is
> not greater than today (i.e. if today is June 30, and you ask for
> 20020701, I wan
On Mon, 1 Jul 2002, Peter J. Schoenster wrote:
> On 30 Jun 2002 at 22:31, Timothy J. Luoma wrote:
>
> > I am trying to compare a given date string (i.e. June 30, 2002 is
> > 20020630). I want to make sure that the input string that is given is
> > not greater than toda
Checking "view source" was the first thing I thought of. The inline code
"appears" OK, style sheets, I only see the link of course.
Bruce Karstedt
President
Technology Consulting Associates, Ltd.
Tel: 847-735-9488
Fax: 847-735-9474
-Original Message-
From: Martin Towell [mailto:[EMAIL P
Hi
Ok probably the easiest is just to add
to the end of each url, if cookies are supported SID will be an empty string.
Tom
At 01:59 PM 1/07/2002 +1000, you wrote:
>I'm aware of this. What I'm trying to do is emulate this process on servers
>which have not compiled with --enable_trans_sid. I
1. when you say "the link", you're talking about the tag right?
if so, are you sure your syntax is correct - this tag is something I
keep stuffing up
(using src instead of href, forgetting rel="stylesheet" [is this
required?], setting type="text/stylesheet" instead of type="text/c
In article <001101c220b8$5338fc30$768c3841@c3>,
[EMAIL PROTECTED] (Bruce Karstedt) wrote:
> Quick question?
>
> Is their anything in Apache or PHP that would keep styles from working. Both
> external (CSS) and inline styles are ignored.
If it was the only the external stylesheet that wasn't wo
on 01/07/02 3:36 PM, Tom Rogers ([EMAIL PROTECTED]) wrote:
> Ok probably the easiest is just to add
> to the end of each url, if cookies are supported SID will be an empty string.
I want to avoid this, because it adds a level of complexity to the
construction of pages that I'm not comfortable w
Justin
> It's quite possible that the end solution will require a decent HTML
parser
> or state engine. Fun fun :)
Do you have any JS that will have to be "altered" because of what you're
trying to do. 'Cause if you have to write an HTML parser, you'd prob have to
write a JS parser too :) More
Hello,
Can anyone please clear my doubt...
Actually i am retrieving the entire record details from the database..I
want to display 1 row at a time..after clicking a button i want to display
the next record..after clicking the next button i want to display the 3
record and so on..How do i go ab
on the "next" link have some sort of counter that lets you know which record
to display.
If that counter isn't present, then display the first record
HTH
Martin
-Original Message-
From: Uma Shankari T. [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 01, 2002 4:52 PM
To: PHP
Subject: [PHP]
You saying there is a way for the scripts to know what kind of browser u r using?
---
Chris Kay
Technical Support - Techex Communications
Website: www.techex.com.au Email: [EMAIL PROTECTED]
Telephone: 1300 88 111 2 - Fax:
Hi Uma,
when u make a query, make it for two rows. than show the 1st one,
and per psot method send the id of the next row to the next
query.
$last_id = $_POST["id"];
$result = select id, yourcolumns
from table
...
limit $last_id, 2
$secondrow =
90 matches
Mail list logo