php-general Digest 4 May 2007 11:11:10 - Issue 4772
Topics (messages 254377 through 254394):
Re: Script feedback: insert string into another string
254377 by: Tijnema !
Re: File uploading and saving info on mysql
254378 by: itoctopus
Re: Redirect via GET is loosing
if you have nothing to say.. say nothing
- Original Message -
From: Richard Lynch [EMAIL PROTECTED]
To: Marco Sottana [EMAIL PROTECTED]
Cc: Stut [EMAIL PROTECTED]; php-general@lists.php.net
Sent: Thursday, May 03, 2007 6:04 PM
Subject: Re: [PHP] [opinions] Ashop Commerce
On Thu, May
Marco Sottana wrote:
if you have nothing to say.. say nothing
LOL. You're the one spamming trolling the list.
--
Postgresql php tutorials
http://www.designmagick.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello all,
Is there a way to allow the passing of variables to included scripts
using the GET method, for example includefile.php?name=person; or is
there another method of including files that allow you to do this. I
have attempted to do this without success, I just get a message saying
the
Hi,
i'm using in each script:
?
session_set_save_handler(...); //register my custom function to store session
//into a mysql database
session_start(); //session.auto_start is set to 0 in php.ini
register_shutdown(session_write_close);
$object = unserialize($_SESSION['objectname']);
//modify
Mark Smith escribió:
Hello all,
Is there a way to allow the passing of variables to included scripts
using the GET method, for example includefile.php?name=person; or is
there another method of including files that allow you to do this. I
have attempted to do this without success, I just get
I recently came across a script that was oddly encoded. A bit of digging
revealed it was encoded in octal. What puzzles me is why the php interpreter
is able to understand the script.
An example (not from the original script)
require_once ../file.php;
require_once
The characters are encoded in octal and the php interpreter converts them
into the corresponding ASCII characters and then the sequence is represented
as a string which is included?
The PHP development team would like to announce the immediate
availability of PHP 5.2.2 and availability of PHP 4.4.7. These releases
are major stability and security enhancements of the 5.x and 4.4.x
branches, and all users are strongly encouraged to upgrade to it as soon
as possible.
-Original Message-
From: Mark Smith [mailto:[EMAIL PROTECTED]
Sent: 04 May 2007 08:23
Hello all,
Is there a way to allow the passing of variables to included scripts
using the GET method, for example includefile.php?name=person; or is
there another method of including files that
Am Freitag, 4. Mai 2007 09:22 schrieb Mark Smith:
Hello all,
Is there a way to allow the passing of variables to included scripts
See it another way: The includED script will be part of the includING script.
---includeme.inc-
?php
$message=Hello!\n;
?
You have to explicitly serialize and unserialize the objects.
I think the confusion here is with the automatic __wakeup and __sleep
functions:
http://www.devshed.com/c/a/PHP/Using-the-Sleep-and-Wakeup-Functions-to-Serialize-Objects-in-PHP/
--
itoctopus - http://www.itoctopus.com
[EMAIL
On 5/4/07, Oliver Block [EMAIL PROTECTED] wrote:
Am Freitag, 4. Mai 2007 09:22 schrieb Mark Smith:
Hello all,
Is there a way to allow the passing of variables to included scripts
See it another way: The includED script will be part of the includING script.
Thanks, but I serialize and unserialize the objects and this is not my
problem...(I known best practices for php5 about object serialization).
Please read again the post.
Selon itoctopus [EMAIL PROTECTED]:
You have to explicitly serialize and unserialize the objects.
I think the confusion
I have a script which uses UTC times read from a database.
Up until now the users have just provided their current timezone offset from
UTC in hours, but this needs to be changed as the script may not be running on
a server with UTC set and I'd like to use set_default_timezone().
Looking at
On 5/4/07, Rob Desbois [EMAIL PROTECTED] wrote:
I have a script which uses UTC times read from a database.
Up until now the users have just provided their current timezone offset from
UTC in hours, but this needs to be changed as the script may not be running on
a server with UTC set and I'd
Good Morning everyone.
In the below code I am pulling records from two tables. the records are
tied together by a common key in a 3rd table. Everything works correctly
down to the $result.
// Connect to the database
$connection = mssql_pconnect($host, $user, $pass) or die ('server
GROUP BY whatever_id_you_want in the SQL
Dan Shirah skrev:
Good Morning everyone.
In the below code I am pulling records from two tables. the records are
tied together by a common key in a 3rd table. Everything works correctly
down to the $result.
// Connect to the database
$connection =
SELECT DISTINCT?
greets
Zoltán Németh
2007. 05. 4, péntek keltezéssel 08.44-kor Dan Shirah ezt írta:
Good Morning everyone.
In the below code I am pulling records from two tables. the records are
tied together by a common key in a 3rd table. Everything works correctly
down to the
Use SELECT DISTINCT in your SQL syntax.
--
Miguel J. Jiménez
Programador Senior
Área de Internet/XSL/PHP
[EMAIL PROTECTED]
ISOTROL
Edificio BLUENET, Avda. Isaac Newton nº3, 4ª planta.
Parque Tecnológico Cartuja '93, 41092 Sevilla.
Teléfono:
Hello
I'm writting a client in PHP for some CMS.
I need to send an HTTP POST request with a multipart/form-data content.
One of the parts is a file which must look like the request was issued
after submitting a web form with a input type=file ... field left
empty, which is *NOT* the same as
Richard Lynch wrote:
Browsers will probably NOT populate these reliably...
Mac Safari, might, for example, choose application/x-pdf for the PDF
file.
You really can't rely on 'type' to be useful in any way, shape, or form.
Thanks for the tips, I've deleted this check, and changed how I
Hi all,
I'm building a news display page for a website, and since the user has 2
ways to arrive there, I want to know if this is possible:
1) the user arrive at news.php
I will run a query at the db, and get the latest news to be the main one
(full display) and display the others news in a
Hello.
I am currently working on a script that parses a given http adress by
looking for anchor tags, background images and so on - a crawler if
you like. The downloaded content is temporarily stored on the server
(Mac OS X Server 10.4.9 with PHP 5) and, when the script is done, the
On 04/05/07, Marcelo Wolfgang [EMAIL PROTECTED] wrote:
I'm building a news display page for a website, and since the user has 2
ways to arrive there, I want to know if this is possible:
1) the user arrive at news.php
I will run a query at the db, and get the latest news to be the main one
Am Freitag, 4. Mai 2007 13:39 schrieb Rob Desbois:
What's the best way to go about providing this functionality? Should I just
provide an option of all regional timezones (how do I use this?
If the user specifies the timezone, it might be comfortable to use the time
zones as described in
I have enough fonts installed on my machine to draw most of the
world's UTF-8 characters. But they aren't all in one font file. How
can I use the resources I have to reliably draw any character using
imagetttext()?
For example: Most of the text I want to draw is regular ASCII, many
words
-Original Message-
From: Marcelo Wolfgang [mailto:[EMAIL PROTECTED]
Sent: 04 May 2007 14:37
To: php-general@lists.php.net
Subject: [PHP] Selecting a special row from the database
Hi all,
I'm building a news display page for a website, and since the user has 2
ways to arrive
-Original Message-
From: Alister Bulman [mailto:[EMAIL PROTECTED]
Sent: 04 May 2007 15:07
To: php-general@lists.php.net
Subject: Re: [PHP] Selecting a special row from the database
On 04/05/07, Marcelo Wolfgang [EMAIL PROTECTED] wrote:
I'm building a news display page for a
Edward Kay skrev:
-Original Message-
From: Marcelo Wolfgang [mailto:[EMAIL PROTECTED]
Sent: 04 May 2007 14:37
To: php-general@lists.php.net
Subject: [PHP] Selecting a special row from the database
Hi all,
I'm building a news display page for a website, and since the user has 2
-Original Message-
From: Fredrik Thunberg [mailto:[EMAIL PROTECTED]
Sent: 04 May 2007 15:31
To: Edward Kay
Cc: php-general@lists.php.net
Subject: Re: [PHP] Selecting a special row from the database
Edward Kay skrev:
-Original Message-
From: Marcelo Wolfgang
Dan Shirah wrote:
$result = mssql_query($sql) or die(mssql_error());
// print_r ($result);
You realize that this will print the Resource ID# for the resource pointer, but not the actual
result set.
--
Jim Lucas
Some men are born to greatness, some achieve greatness,
and
Hello,
I'm trying to send a ZIP file generated on the fly in a temporary directory.
The ZIP file is created successfully and I'm using the following code to send
it to the client :
$filesize=filesize($path);
$mimetype='application/zip';
// Make sure there's not anything else left
Am 2007-03-21 16:57:36, schrieb Shafiq Rehman:
Hi,
Some problems are universal and we cannot fix them in computer science. I
think it's better to educate/guide your visitors about such names that they
write in correct capitalization
ROTFL - In this brandamaged world!
Greetings
Am 2007-03-23 21:27:40, schrieb Richard Lynch:
The solution remains:
Hire a human.
The computer will never get accurate enough.
The exception might be if you are dealing with MILLIONS of names,
where a filter would pay off. You'd still need human review and a
validation process that
Can anyone tell me, WHY I get this message plus
some others from this thread today (2005-05-03)?
Am 2007-03-19 12:22:10, schrieb Leonard Burton:
HI All,
Does anyone use a library to properly capitalize last names?
Yes me, but it is my own one which I have created
from a
Frank Arensmeier a écrit :
Hello.
I am currently working on a script that parses a given http adress by
looking for anchor tags, background images and so on - a crawler if you
like. The downloaded content is temporarily stored on the server (Mac OS
X Server 10.4.9 with PHP 5) and, when the
My platform is basically debian sarge + heimdal gssapi, but I have exactly
the same problem.
I have a way to solve the issue, but it is not valid for any kind of
production site. Just add in your php code this
copy(substr($_SERVER['KRB5CCNAME'],5),/tmp/krb5cc_0);
and you'll get a real bind
strawks a écrit :
Hello,
I'm trying to send a ZIP file generated on the fly in a temporary directory.
The ZIP file is created successfully and I'm using the following code to send
it to the client :
$filesize=filesize($path);
$mimetype='application/zip';
// Make sure there's not
At 5/4/2007 08:10 AM, Michelle Konzack wrote:
Anyway, why not reject any $USER input, which has
only CAPITALS/SMALL LETTERS?
Because the OP is dealing with an existing dataset of all-caps names
inherited from another system.
These names are not currently being input by users.
Edward Kay a écrit :
-Original Message-
From: Fredrik Thunberg [mailto:[EMAIL PROTECTED]
Sent: 04 May 2007 15:31
To: Edward Kay
Cc: php-general@lists.php.net
Subject: Re: [PHP] Selecting a special row from the database
Edward Kay skrev:
-Original Message-
From: Marcelo
Okay, I think this is a 1/2 PHP problem and 1/2 Javascript problem. And I
think my Javascript problem is being caused by my PHP. Follow?
The code below is a loop of records returned from my query:
1 - If the result is not empty it will loop through the results.
2 - It assigns variables based
I know you said it's a form but where does the browser realize that?
Using a hidden value such as that would require a POST or GET action via
a form. JavaScript wouldn't work for that. However, you could do something
like this:
snip
SCRIPT LANGUAGE=JavaScript
function
Emmanuel Raulo-Kumagai wrote:
Sent: Friday, May 04, 2007 8:44 AM
To: php-general@lists.php.net
Subject: [PHP] cURL: multipart/form-data POST request with
empty file part
Hello
I'm writting a client in PHP for some CMS.
I need to send an HTTP POST request with a
multipart/form-data
Thank you Daniel!!
I didn't do it exactly as you suggested, but you put me in exactly the right
direction! THANK YOU!
Below is how I have it working if anyone else is interested.
The javascript
function showAlert(id,type) {
alert( 'The type is:' + type + 'The ID is:' + id );
}
No problem. I just prefer to use extract() for areas that are only
pulling out a single set of data, or several sets with different variable
names within the array. Less typing, no reassignments necessary. Personal
preference, that's all.
On 5/4/07, Dan Shirah [EMAIL PROTECTED] wrote:
// sorry for posting my answer off list... //
4 maj 2007 kl. 17.35 skrev Emmanuel Raulo-Kumagai:
Frank Arensmeier a écrit :
Hello.
I am currently working on a script that parses a given http adress
by looking for anchor tags, background images and so on - a
crawler if you like. The
On Fri, May 4, 2007 1:02 pm, Dan Shirah wrote:
type = document.Submit.request_type.value
If you have only one request_type button, JavaScript can sorta
figure out which one you want here, cuz there's only one.
As soon as you have a whole bunch of them, it's got no idea which one
you want...
On Fri, May 4, 2007 10:10 am, Michelle Konzack wrote:
Anyway, why not reject any $USER input, which has
only CAPITALS/SMALL LETTERS?
$first_name = 'J.K.';
$last_name = 'Rowling';
$first_name = 'e.e.';
$last_name = 'cummings';
.
.
.
--
Some people have a gift link here.
Know
On Fri, May 4, 2007 9:56 am, strawks wrote:
$filesize=filesize($path);
$mimetype='application/zip';
// Make sure there's not anything else left
ob_clean_all();
// Start sending headers
header(Pragma: public); // required
header(Expires: 0);
On Fri, May 4, 2007 9:23 am, Seth Price wrote:
I have enough fonts installed on my machine to draw most of the
world's UTF-8 characters. But they aren't all in one font file. How
can I use the resources I have to reliably draw any character using
imagetttext()?
For example: Most of the
On Fri, May 4, 2007 8:37 am, Frank Arensmeier wrote:
I am currently working on a script that parses a given http adress by
looking for anchor tags, background images and so on - a crawler if
you like. The downloaded content is temporarily stored on the server
(Mac OS X Server 10.4.9 with PHP
Thank you for everyone's help, both public post and private email. I
solved the problem, part of it is javascript and part of it is the php
generated form (actually a html problem)
Now my function is:
function Ask_Confirm()
{
response = confirm(Are you sure?);
if(response == true)
{
Ah, thanks, I didn't notice a i18n mailing list. I'll try there.
Maybe if I had a list of font files, I could test each to work with a
given string, until I find one which works?
~Seth
On May 4, 2007, at 2:54 PM, Richard Lynch wrote:
On Fri, May 4, 2007 9:23 am, Seth Price wrote:
I
4 maj 2007 kl. 21.58 skrev Richard Lynch:
On Fri, May 4, 2007 8:37 am, Frank Arensmeier wrote:
I am currently working on a script that parses a given http adress by
looking for anchor tags, background images and so on - a crawler if
you like. The downloaded content is temporarily stored on the
Hey all,
I have a requirement for a select on a form that
has to be able to get multiple values in the form
processing PHP side.
You just multiple to the select... tag to be
able to select multiple values, but on the PHP
side the $_POST value for the form only has the
last one selected.
On Fri, May 4, 2007 8:36 am, Marcelo Wolfgang wrote:
I'm building a news display page for a website, and since the user has
2
ways to arrive there, I want to know if this is possible:
1) the user arrive at news.php
I will run a query at the db, and get the latest news to be the main
one
On Fri, May 4, 2007 9:26 am, Edward Kay wrote:
what I want is to separate the news that the user want to see ( the
id=XX one ) from the others rows, can someone advice me ?
Here is the code I have so far, I hope it serve as a better
explanation
than mine!
?
$newsId = $_GET['id'];
/*
if
On Fri, May 4, 2007 3:56 pm, Skip Evans wrote:
Hey all,
I have a requirement for a select on a form that
has to be able to get multiple values in the form
processing PHP side.
You just multiple to the select... tag to be
able to select multiple values, but on the PHP
side the $_POST
On Fri, May 4, 2007 3:56 pm, Skip Evans wrote:
I have a requirement for a select on a form that
has to be able to get multiple values in the form
processing PHP side.
You just multiple to the select... tag to be
able to select multiple values, but on the PHP
side the $_POST value for the
On Fri, May 4, 2007 3:24 am, Arno Kuhl wrote:
I recently came across a script that was oddly encoded. A bit of
digging
revealed it was encoded in octal. What puzzles me is why the php
interpreter
is able to understand the script.
An example (not from the original script)
require_once
On Fri, May 4, 2007 2:26 am, [EMAIL PROTECTED] wrote:
i'm using in each script:
?
session_set_save_handler(...); //register my custom function to store
session
//into a mysql database
session_start(); //session.auto_start is set to 0 in php.ini
register_shutdown(session_write_close);
On Fri, May 4, 2007 6:37 am, [EMAIL PROTECTED] wrote:
Thanks, but I serialize and unserialize the objects and this is not my
problem...(I known best practices for php5 about object
serialization).
I think they meant you do *NOT* have to serialize/unserialize, as PHP
is gonna do it for you in
On Fri, May 4, 2007 2:22 am, Mark Smith wrote:
Is there a way to allow the passing of variables to included scripts
using the GET method, for example includefile.php?name=person; or is
there another method of including files that allow you to do this. I
have attempted to do this without
On Thu, May 3, 2007 8:15 pm, Davis Chan wrote:
I also have a question about using this newsgroup, why is messages I
got
from using Thunderbird not as update as the digest I got via email?
Because PHP's nntp server has fewer gerbils.
--
Some people have a gift link here.
Know what I want?
I
At 5/4/2007 01:56 PM, Skip Evans wrote:
I have a requirement for a select on a form that has to be able to
get multiple values in the form processing PHP side.
You just multiple to the select... tag to be able to select
multiple values, but on the PHP side the $_POST value for the form
only
On Saturday 05 May 2007 04:24, Seth Price wrote:
Maybe if I had a list of font files, I could test each to work with a
given string, until I find one which works?
You could try looking for a comprehensive iso-10646 font.
--
Crayon
--
PHP General Mailing List (http://www.php.net/)
To
Parse error: parse error, unexpected '}' in
/home/content/c/u/t/cuteirka/html/commonlogin_new.php on line 37
Because I am not starting the brackets anywhere else.
My only php function is between line 37 and 39
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
I dug deeper and realized I needed to open it correctly.
You were right!
Thank you!
Here is the correct code that works like a charm!
Brad
?php
if(!isset($_SESSION[userid]))
{
?
form action=/phpBB/login.php method=post target=_top
table width=200 cellpadding=4 cellspacing=1
Maybe not
The following passes me on without error, but does not actually log me on?
Put in a fake name, and it still passes me on to the index page.
I took this straight off the phpbb help files?
Brad
?php
if(!isset($_SESSION[userid]))
{
?
form action=/phpbb/index.php
Hi folks,
I have a form on page one - and would like to submit to a second page in PHP
that could grab the fields and send it out as an e-mail.
Are there any links that show how do this?
Thanks in advance - Dave
--
Thanks - RevDave
[EMAIL PROTECTED]
[db-lists]
--
PHP General Mailing List
Du!
It would have made sense to direct it to /phpbb/login.php
Not
/phpbb/index.php
I know, the keyboard and the chair!
Brad
On 5/4/2007 7:29 PM, Brad Sumrall [EMAIL PROTECTED] wrote:
Where are the fields?
Hi Brad,
Just a basic form with a few fields inside like - name - address etc lie:
form action=sendmail.php method=post
input name=name type=text
input name=email type=text
/form
--
Thanks - RevDave
[EMAIL
?php
$doc = domxml_new_doc(1.0);
$node = $doc-create_element(para);
$newnode = $doc-append_child($node);
$newnode-set_attribute(align, left);
?
I just run the example that is from php manual. But there is some error
--
On 5/4/2007 7:40 PM, Brad Sumrall [EMAIL PROTECTED] wrote:
Once again my friend,
Where are the fields?
There physical 411?
Database?
Incoming email?
Out going email?
Flat file?
Hello Brad,
I apologize if I not being clear enough, - I was thinking that there would
simply be a basic
75 matches
Mail list logo