-Original Message-
From: Instruct ICC [mailto:[EMAIL PROTECTED]
Sent: Monday, November 05, 2007 3:34 PM
To: php-general@lists.php.net
Subject: RE: [PHP] More info on timeout problem
> Sounds much like what I'm trying to do. I have had to give up, for the
> time being, on using PHP to upl
> -Original Message-
> From: Bill Guion [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 14, 2007 12:35 PM
> To: PHP-General
> Subject: Re: [PHP] Getting mysql_query results into an array
>
> At 6:22 PM -0600 2/13/07, Richard Lynch wrote:
>
> >
> >The most efficient way is "Don't do
> -Original Message-
> From: Larry Garfield [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 19, 2006 10:26 AM
> To: php-general@lists.php.net
> Subject: Re: [PHP] How php works?
>
> On Tuesday 19 December 2006 02:12, Robert Cummings wrote:
>
> > > Is that why the PHP License is non-GP
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Friday, December 08, 2006 3:39 PM
> To: php-general@lists.php.net
> Subject: [PHP] php and DB2
>
> hi to all,
> my IT director got an idea to replace mysql with DB2. more
> "power/flexibility/stability/securit
> -Original Message-
> From: James Tu [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 28, 2006 5:03 PM
> To: PHP General List
> Subject: Re: [PHP] backing up a database
>
> Thanks Brad:
>
> I'm just surprised that when people mention mysqldump, most of the
> time they don't talk about
> -Original Message-
> From: Glenn Richmond [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 12, 2006 4:45 AM
> To: php-general@lists.php.net
> Subject: [PHP] PHP causing seg fault
>
> Hi guys,
>
> I'm attempting to run a SugarCRM variant that uses SOAP to access
> information from the
> -Original Message-
> From: Brad Fuller [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 10, 2006 12:55 PM
> To: php-general@lists.php.net
> Subject: RE: [PHP] Disable all caching
>
> > I have a php (ver 4.x) script that is being cached.
> > I have placed:
> >
> > but the page is still
> -Original Message-
> From: Richard Lynch [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 03, 2006 2:10 PM
> To: Wesley Acheson
> Cc: [EMAIL PROTECTED]; php-general@lists.php.net
> Subject: Re: [PHP] RE:[PHP] Client Computer Registration
>
> On Tue, October 3, 2006 2:33 am, Wesley Ache
> -Original Message-
> From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 27, 2006 2:11 PM
> To: php-general@lists.php.net
> Subject: Re: [PHP] Calculations
>
> When my level of free time matches my level of curiousity, I'll have
to
> research it further. For now, I'
> -Original Message-
> From: Michael Satterwhite [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 21, 2006 12:11 PM
> To: Kristen G. Thorson
> Subject: Re: [PHP] Stream download problem
>
> Kristen G. Thorson wrote:
> >>-Original Message-
> &g
> -Original Message-
> From: Michael Satterwhite [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 20, 2006 8:32 PM
> To: PHP Users
> Subject: [PHP] Stream download problem
>
> I have a site that generates a file to be streamed down. The relevant
> code is:
>
> -Original Message-
> From: Chris Shiflett [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 16, 2006 9:11 AM
> To: tedd
> Cc: [EMAIL PROTECTED]; Barry; php-general@lists.php.net
> Subject: Re: [PHP] Re: File Download Headers
>
> tedd wrote:
> > Barry says you can use these three:
> >
> > he
> -Original Message-
> From: Jay Blanchard [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 19, 2006 10:34 AM
> To: php-general@lists.php.net
> Subject: [PHP] PHP & JavaScript
>
>
> Suddenly JavaScript doesn't care for the object and throws an error
> (take the brackets out and it works
-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]
Sent: Monday, April 10, 2006 4:44 PM
To: php-general@lists.php.net
Subject: [PHP] String is not zero-terminated
In order to attempt to figure out why my script segfaults PHP (5.0.4,
5.1.2, 5.1.3RC3) I've been compiling --wit
-Original Message-
From: Bagus Nugroho [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 09, 2006 5:48 PM
To: php-general
Subject: [PHP] Limitation on PEAR : Spreadsheet_Excel_Writer
Hello Everyone,
I'm succesfully generate report from mysql table using PEAR :
Spreadsheet_Excel_Writer,
Jeremy Schreckhise wrote:
I have an Openlink Single Tier Driver on an XP pro machine with windows
installed on drive f: because I have a dual boot with Red Hat. Database
is Progress 8.3c on a SCO Unixware 7.1.4 Dell Server. I can connect to
all progress databases and pull data utilizing a Sy
Jeff McKeon wrote:
I've got a server with RedHat ES3 running. It has PHP 4.3.2 installed
but for an application I want to install I need a min of 4.3.9. This
server also runs apache2.0.
I can't find RPMs for RH ES3 so I downloaded the source for PHP4.4.1
figuring I would just compile mysel
Peppy wrote:
This info is for the server where the script does not work:
Apache/1.3.33 (Unix) PHP/4.3.10
FreeBSD cliffb55.iserver.net 4.7-RELEASE-p28 FreeBSD 4.7-RELEASE-p28 #42: Tu i386
This info is for the server where the script works:
Apache/2.0.40 (Red Hat Linux) PHP Version 4.3.2
Lin
Shaun wrote:
Hi M,
Thanks for your help, the code works fine except if there is a line break in
the html, for example
this works
test
But this doesnt
test
Any ideas?
See the last user contributed note from *csaba at alum dot mit dot edu
*at http://us3.php.net/manual/en/reference.p
I am a regex retard.
I am trying to pull keywords out of this crazy bbcode-like file, but
only for bbcode-like code NOT enclosed in HTML comments. I currently
have managed to create this regex:
'/(?)/U'
Which matches
[!keyword::crazy bbcode!]
and not
That's a step in the right directio
Jay Blanchard wrote:
But I sure would like to see the URL once he has clicked it. Have you tried
changing to $_GET['page']? Again, all of this is just for gigglesbut
there is likely to be a clue.
On privacy policies in IE (can he try another browser?) what is his setting?
I'm still
n.g. wrote:
save below as testcookie.php, request it from your browser twice, what
do you get at 2nd time?
On 11/22/05, Kristen G. Thorson <[EMAIL PROTECTED]> wrote:
Anyone have any suggestions? I'm still stuck.
thanks,
kgt
Kristen G. Thorson wrote:
I'm havi
Jay Blanchard wrote:
[snip]
Not sure what you mean. I sent him to this script:
Test cookie.';
} else if( $_REQUEST['page'] == '1' ) {
if( isset( $_COOKIE['VATtest'] ) ) {
echo $_COOKIE['VATtest'];
} else {
echo 'Cookie NOT set.';
}
}
?>
Which is all I had in entirety. Is this not a "basi
Jay Blanchard wrote:
[snip]
Anyone have any suggestions? I'm still stuck.
[/snip]
Can you send him another test where a basic cookie gets set and then
checked?
.
Not sure what you mean. I sent him to this script:
Test cookie.';
} else if( $_REQUEST['page'] == '1' ) {
if( isset( $_COO
Anyone have any suggestions? I'm still stuck.
thanks,
kgt
Kristen G. Thorson wrote:
I'm having problems with a customer who can't login to a wholesaler
application. To ensure the problem was that the cookie was not being
set, I sent him to this script:
if( !isset(
I'm having problems with a customer who can't login to a wholesaler
application. To ensure the problem was that the cookie was not being
set, I sent him to this script:
if( !isset( $_REQUEST['page'] ) ) {
setcookie('VATtest','Cookie has been set.',time()+5, "/");
echo 'Test cookie.';
} e
/05, *Kristen G. Thorson* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
cybermalandro cybermalandro wrote:
>I am connecting to a PROGRESS DB through the MERANT ODBC driver,
When I have
>the 4th parameter SQL_CUR_USE_ODBC as shown, my queries return
n
cybermalandro cybermalandro wrote:
I am connecting to a PROGRESS DB through the MERANT ODBC driver, When I have
the 4th parameter SQL_CUR_USE_ODBC as shown, my queries return nothing but
if I have the 4th parameter as lower case it returns my query results but
with a PHP error complainning
*Noti
Read up on mysql date types and functions. You can convert a unix
timestamp to a mysql date with the FROM_UNIXTIME() function. If you
want to store as unix timestamp, store it in an int field. To use mysql
date functions on it, use the FROM_UNIXTIME() function. If you want to
store dates in
Dan Trainor wrote:
Hello once more, all -
I was wondering if it's at all possible to redirect a user to a remote
site, while passing HTTP AUTH credentials somehow.
I've been tinkering around with making a secure login gateway, and the
first server that they log in to would negotiate the login
LOL. They could have opened up their browser window and performed the
following:
http://www.google.com/search?hl=en&q=php+send+email+after+form+submit&btnG=Google+Search
But I think they were trying to suggest that you
1. do the same, or
2. ask a more specific question.
kgt
Ravi Gogna wr
Or use sockets...
http://us3.php.net/manual/en/function.fsockopen.php
Just don't send any HTTP headers.
kgt
[EMAIL PROTECTED] wrote:
BTW: I made a mistake last time. Apparently with CLI there are headers. You can use
"php -q" to suppress headers when using PHP via CLI. Odd. Not sure I
kalinga wrote:
On 8/4/05, Kristen G. Thorson <[EMAIL PROTECTED]> wrote:
kalinga wrote:
if you are quering a external host, the bad network conditions may
cause delay in results.
if your server is connected to a heavily loaded hub/ cheap switch, or
the target hosts DNS serve
Jack Jackson wrote:
Kristen G. Thorson wrote:
You said "If the user makes changes, those changes get error checked
but do not become part of the sql query." Where in your code is it
failing to become part of the query? Put a check at each level and
see where *exactly* it fails t
kalinga wrote:
if you are quering a external host, the bad network conditions may
cause delay in results.
if your server is connected to a heavily loaded hub/ cheap switch, or
the target hosts DNS servers are poorly configured/ slow in responce
it adds further delay to your result.
try dig/ n
I can say from personal experience that gethostbyaddr() and
gethostbyname() can seem almost randomly slow, depending on machine, OS,
software, who knows. I'm not smart enough to figure out the reason why
it can vary so much on machines with nearly the same configuration, but
I can tell you tha
7;s all coming from the same page - index.php!!
What am I missing. . . ?
Jack Jackson wrote:
Hi Kristen, there's a misunderstanding:
Kristen G. Thorson wrote:
The code below isn't much help to debug. Do some checking to figure
out how far into your IF statement you're getting.
Try
INSERT INTO Orders (SELECT '678',Cust_ID,Item_No,No_ordered FROM
Last_Order WHERE Cust_ID = '678')
kgt
-k. wrote:
Just for the sake of example let's say i keep track of all of a customers
previous orders in a
table like this:
Last_Order
--
Cust_ID
Item_No
No_ordered
When a c
See
http://us3.php.net/manual/en/language.operators.php
http://us3.php.net/manual/en/language.operators.bitwise.php
You want this:
function calc_distance($curX,$curY,$newX,$newY) {
// calculate distance to new location
$distX = abs($curX - $newX);
$distY = abs($curY - $newY);
if ($distX <
The code below isn't much help to debug. Do some checking to figure out
how far into your IF statement you're getting. Is the query running?
Is it the query you expect? (Step #1 when inserting or creating dynamic
queries that aren't working: print them out to make sure they are what
you thi
Example:
I was working on a HORRIBLE piece of code for a cart app. The original
programmer had a line like this:
$result = mysql_query( "SELECT * FROM user_logins WHERE
cookie='".$cookie."'" );
Where $cookie is a session id stored in a cookie (what else? ;). The
problem was, he had some
Jack,
Read below:
Jack Jackson wrote:
Hi,
Now that the drop down is working properly (thanks!!), I am trying to
validate, and having LOTS of trouble. After being ceaselessly derided
last night on an irc channel for my dimwitedness, I am still not any
closer.
The code which works is this
I'm not 100% sure where you're saying you're stuck, but I think you're
trying to do with one query what you will probably find is best to do
with several. Hopefully the following will help some:
//first get all the questions
$sql = "select * from questions";
$result = mysql_query( $sql );
//
Is there a particular reason you need *PHP* in the database? If not,
then use a placeholder system of some sort ( like #var# ) and str_replace():
while( $row=mysql_fetch_row($result) ) {
echo str_replace( '#var#', $that_var, $row['entry'] );
}
kgt
Nathaniel Hall wrote:
I am working
Philip Hallstrom wrote:
$diff = number_format(((substr($timeend,0,9)) +
(substr($timeend,-10)) - (substr($timestart,0,9)) -
(substr($timestart,-10))),4);
This just looks wrong to me... at the very least shouldn't it be:
(x + x) - (x + x)
(x + y) - (w + z) = (x + y) + (-w - z) = x + y - w
The following script:
http://www.imakenews.com/progresspsdn/e_rss.aspx',
'http://rssnewsapps.ziffdavis.com/eweekdeveloper.xml',
'http://itpapers.zdnet.com/xml/RSS-239.xml',
'http://rssnewsapps.ziffdavis.com/eweeklinux.xml' );
foreach( $url_
MySQL authentication is user+host+password. Make sure user
brucer_webmaster has host 69.90.88.155.
kgt
Bruce Gilbert wrote:
I am having trouble connecting to MySQL server through a PHP script
and I am not sure why.
the error I receive is:
Warning: mysql_pconnect(): Access denied for us
In the extension manager for the site/directory where this is not
working, make sure the check box "Verify file exists" is not checked. I
think I ran into a similar problem with a different extension and had
the same issue.
kgt
Grosz, Steve (IPG IT) wrote:
Tjoekbezoer,
I can tell you
Philip Hallstrom wrote:
of leap years between the two dates. Leap years occur every 4 years,
and 17 / 4 = 4.25, so there were 4 leap years between 7/6/88 and
7/6/05 and
Just to nitpick... :-)
http://en.wikipedia.org/wiki/Leap_year
The Gregorian calendar adds an extra day to February, maki
Ryan A wrote:
Hi,
I'm confused, this should give me the age as 17 instead of 16...but it does
not...any ideas why?
Thanks,
Ryan
Subtracting the timestamps gives you 536457600 seconds, which is
correct, but ( $dif_s / 60 / 60 / 24 ) gives you the actual number of
days between these t
Richard Lynch wrote:
On Wed, June 29, 2005 3:30 pm, Shane Little said:
I'm bin2hex'ing images from an upload script and inserting into a mysql
blob field. The php script that re-packs the hex data back to binary,
does the createimagefromstring() and streams the image to the browser is
gen
Have you seen:
http://us2.php.net/manual/en/function.recode-string.php
kgt
Dotan Cohen wrote:
I thought that this was another old STFA but marc and google are quiet.
I as parsing a bunch of submitted works and some of them have
non-latin characters. I know that I once saw in the user-subm
This is really a question for an Oracle list, but I happen to know of
the following page which has been helpful to me in the past:
https://gdsg.ngdc.noaa.gov/tiki/tiki-index.php?page=SqlNotes
kgt
Shane Presley wrote:
Hello,
I've recompiled PHP to use Oracle, and been able to run a quick
I ran into a similar problem trying to get ODBC working with a Progress
database. I managed to solve it by setting the environment variables in
the httpd startup script.
Not much help, I know, but a suggestion. ;)
good luck
kgt
Shane Presley wrote:
Hello,
I'm having trouble compiling a
"Undefined service gds_db/tcp."
Sounds to me like it's not finding the port in services. I don't know
what default port Firebird is listening on, but you should have an entry
like
gds_db/tcp 1234/tcp
in c:\windows\system32\drivers\etc\services. You'll have to find out
exactly whic
Hopefully I understand your question correctly.
You have this SQL:
$media_query = 'SELECT media_id,media_name FROM media GROUP BY media_name';
And
"For every media_id which is associated with $cartoon in the table
media_art, check the box; for all others leave them unchecked."
The problem i
Most web browsers I know of don't print anything specified as background
by default. I imagine that functionality extends to CSS-defined
background colors and images. I doubt there's a way to change that
preference other than setting it manually. If changing the print
settings on your machin
That's much clearer than your original question was.
Try
www.phpclasses.org
Good luck.
Denyl Meneses Guillén wrote:
I do not want to open a ZIP , I want create a ZIP fron TXT .
- Original Message -
From: "Jay Blanchard" <[EMAIL PROTECTED]>
To: "Denyl Meneses Guillén" <[EMAIL PR
Try using a temporary table. It should be pretty fast. You'd do
something like
1. Select from table1 according to search criteria
2. Insert data from #1 into temp_table1
3. Random selection from temp_table1
kgt
Brian Dunning wrote:
I am using a routine to find 50 random records in a l
Jack Jackson wrote:
Hi, all,
This might look like a mysql problem but I assure you it's my botching
the PHP which is the problem!
I'm building a part of a page with info from three tables: art, media
and media_art. Media_art is the intersection table. For every entry in
art there can be one
Jim Moseby wrote:
Hi,
I need to build up a search module for a shop. If I make a
basic search (product title for example) it is ok.
$query = "SELECT product_id FROM products WHERE title LIKE
'%$title%'";
But i need an advance search for more than one field (title,
description, price, wei
Following is a snippet of code that I am trying to debug. Most of the
time, the variable $sn (set on the last line), correctly contains the
variable $this_customer_num. On some occasions, however, it does not
contain $this_customer_num. I cannot figure out what may be happening
that this val
I haven't used mysqli, so I'm not as familiar with errors related to
that library, but you said you downloaded "the latest package of MySQL,"
which is hopefully 4.1.12. This version shouldn't cause this error with
mysqli. In my experience, this error has always been a case of PHP
compiled aga
I don't understand what you're trying to do. Do you want two separate
list boxes, one for product types and one for makers? If so, use two
queries. Use the same block of code you have for product types to
populate the makers box. If that's not what you're looking for, you
need to describe w
Dan Rossi wrote:
On 05/05/2005, at 5:57 AM, Kristen G. Thorson wrote:
especially since this wasn't to be our final approach. I'd be
interested if you find out more information on the subject.
What did you decide on ?
LOL. That part got beyond me. I don't understand how al
Dan Rossi wrote:
On 05/05/2005, at 1:47 AM, Kristen G. Thorson wrote:
Dan,
I have done this before, but it was only a proof-of concept excercise
for me, so my procedure may not work for you. My test was against an
Amazon web service and generating a PDF from the XML returned to me.
Thi
66 matches
Mail list logo