On Mon, 2004-02-09 at 00:32, adwinwijaya wrote:
Hello php-general,
I wonder is there any class/function in php to convert from dates
(dd/mm/ hh:mm:ss) to Julian date ?
(I also wonder why there is no Julian date function in php function
libraries ... i think it is nice to have
Tested on winXP/Apache 2.0.48 (cgi)
php 4.3.3
var_dump( __FILE__ );
gives - C:\Program Files\Apache Group\Apache2\htdocs\index.php
php 4.3.4
var_dump( __FILE__);
gives - c:\program files\apache group\apache2\htdocs\index.php
php 4.3.5RC2
var_dump( __FILE__ );
gives - C:\Program Files\Apache
hello,
talking about php5, i'm missing read-only attributes/variables for
classes/objects. i.e. this would be very useful for implementing the new
DOM Level 3 Interfaces as given in http://www.w3.org/TR/2003
CR-DOM-Level-3-Core-20031107/idl-definitions.html .
And I don't think of any reason for
Hi there,
there is following scenario:
- One php file saved with .pdf extension
- .htaccess tells php to parse this file
- ?ID=x provides the database id for individual files
That whole thing workes perfectly as long as you access it via browser
and URL.
Now I need to save those files, or send
On 06/02/2004 at 14:09 [EMAIL PROTECTED] wrote:
Can someone explain what this all means then
http://forge.novell.com/modules/xfmod/project/?php
Are they supporting php or are they planning to take over something that is
impossible ?
I'm guessing that they're tailoring PHP to their (Novell's)
On Monday 09 February 2004 16:23, merlin wrote:
there is following scenario:
- One php file saved with .pdf extension
- .htaccess tells php to parse this file
- ?ID=x provides the database id for individual files
That whole thing workes perfectly as long as you access it via browser
and
Hi,
On 9 Feb 2004, at 8:26, Vivian Steller wrote:
hello,
talking about php5, i'm missing read-only attributes/variables for
classes/objects. i.e. this would be very useful for implementing the
new
DOM Level 3 Interfaces as given in http://www.w3.org/TR/2003
On 06/02/2004 at 11:55 Mrs. Geeta Thanu wrote:
This is in addition to my previous mail.
I feel the PHP script and the C program should be in one machine
and apache in another.
When a user click the link the php script should upload a form get the
input and show the result.
So apache should support
Jan Lehnardt wrote:
[...]
* Constants.
The Zend Engine 2.0 introduces per-class constants.
Example:
?php
class Foo {
const constant = 'constant';
}
echo 'Foo::constant = ' . Foo::constant . \n;
?
Old code that has no user-defined classes or functions
named 'const' will run
Hi all
I have the following problem:
I want to allow users to update a number of records either one by one, or all
together. Currently I have put each record in a separate form on a page and each form
can be updated separately, but I don't know how to allow simultaneous update of all
forms
Vivian Steller writes:
hello,
talking about php5, i'm missing read-only attributes/variables for
classes/objects. i.e. this would be very useful for implementing the new
DOM Level 3 Interfaces as given in http://www.w3.org/TR/2003
CR-DOM-Level-3-Core-20031107/idl-definitions.html .
...
If
make it one form and name the form elements using [], they will become
arrays. example:
form
input type=text name=name[1] value=.
input type=text name=surname[1] value=.
input type=text name=name[2] value=.
input type=text name=surname[2] value=.
the numbers (1 and 2) are ids of
is there a date picker object or control that i can use on an HTML page,
instead of making lots of dropdown lists for the various date fields?
thanx in advance
angelo
Disclaimer
This e-mail transmission contains confidential
I would like to read first 224 bytes from a file A1, write them to another
(Bfile, and then coming back to file A1 read bytes from 225 to the end of
(Bfile.
(BCould somebody help me with this? Please.
(B
(BAnna
(B
(B[EMAIL PROTECTED]
Hi,
Monday, February 9, 2004, 10:42:24 PM, you wrote:
AZ is there a date picker object or control that i can use on an HTML page,
AZ instead of making lots of dropdown lists for the various date fields?
AZ thanx in advance
AZ angelo
AZ
Hi,
PHP 5 stable is not on the horizon yet. Someone have any idea how to
emulate (or to be more precise, simulate), this feature in PHP 4 (I
could do it if PHP4 would support macros and goto, but there are no
such).
Thanks in advance for any suggestion(s).
Hi All,
Just would like to know if you can call DLL from PHP the same way you do in ASP? If so
then can any one pass me some example or links.
Cheers..
Hello,
Is anyone using flash in conjunction with amfphp on a production site? I am
really interested in trying it out and have been to the amfphp site, now am
just looking for some more examples of what it can do.
Thanks,
Eddie
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
I'm using php 4.3.4 as a loadable module for Apache2
on a Redhat box.
It works for the most part except that for about every
5th page that is
requested, the server hangs. It always finishes the
process and the
page but it hangs for like 5 minutes. Is this a known
error? Does
anyone know how to
Paul,
the warning that John refers to does occur - whether you see it
depends on the error reporting level, PHP will create the array for you
if you have not already initialized it but a warning will be generated
in such cases. - errors that may not display on one machine might be
visible
I assume you would just register the COM object on the server and call
it with PHP's COM functions (like in ASP). Check out the COM functions
in the manual:
http://www.php.net/manual/en/ref.com.php
Radwan Aladdin wrote:
Hi All,
Just would like to know if you can call DLL from PHP the same
Radwan Aladdin wrote:
Just would like to know if you can call DLL from PHP the same way you do in ASP? If so then can any one pass me some example or links.
If COM, http://php.net/com but if vanilla then you're looking at
wrapping it in an extension.
--
Stuart
--
PHP General Mailing List
I mean register the DLL and treat it like a COM object. :)
-Ben
Ben Ramsey wrote:
I assume you would just register the COM object on the server and call
it with PHP's COM functions (like in ASP). Check out the COM functions
in the manual:
http://www.php.net/manual/en/ref.com.php
Radwan
On Mon, 2004-02-09 at 07:21, Anna Yamaguchi wrote:
I would like to read first 224 bytes from a file A1, write them to another
file, and then coming back to file A1 read bytes from 225 to the end of
file.
Could somebody help me with this? Please.
This is the traditional method:
// Open input
Well first off you really should be posting to the Apache newsgroup,
this is for PHP coding questions etc.
However, if you have poorly written code it could cause Apache to hang.
I would ask yourself a few questions, does it only happen on one
particular website apache is running or on every
Jochem Maas wrote:
Paul,
the warning that John refers to does occur - whether you see it
depends on the error reporting level, PHP will create the array for you
if you have not already initialized it but a warning will be generated
in such cases. ...
error_reporting = E_ALL
...
Right... But the principal is still the same. Excel handles those types
of fields in a uniform way, regardless of whether you do the entry
yourself or if you just import a csv file.
-- jon
-Original Message-
From: Marek Kilimajer [mailto:[EMAIL PROTECTED]
Sent: Friday, February
What is the way to generate XML from MySql database using PHP?
Is DOMXML the only way? I dont have it installed on my server, can i still
get XML output?
I know the workaround like i query the database and echo a XML, but i am
looking for alternatives.
Thanks
--
PHP General Mailing List
What is the way to generate XML from MySql database using PHP?
Is DOMXML the only way? I dont have it installed on my server, can i
still get XML output?
I know the workaround like i query the database and echo a XML, but i am
looking for alternatives.
echo, printf, etc. XML is nothing more (or
Sajid wrote:
What is the way to generate XML from MySql database using PHP?
Is DOMXML the only way? I dont have it installed on my server, can i still
get XML output?
I know the workaround like i query the database and echo a XML, but i am
looking for alternatives.
Do it this way. It's easy and
Thanks
Stuart [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Scott Fletcher wrote:
How on earth can bugs.php.net get infected??? I'm not even familiar
with
PHP bug #12494 'cause I never filed it or comment on it.
I think somebody should look into bugs.php.net
Hi everyone. Since my last post of outputing to excel, I have converted my output to
XML, quite happy with myself. It looks perfect. Perfect on my set that is. I have win
xp with office xp. Excel with office xp recognizes XML. Office 2000, which the rest of
my company is using, doesn't. Does
[snip]
Right... But the principal is still the same. Excel handles those types
of fields in a uniform way, regardless of whether you do the entry
yourself or if you just import a csv file.
[/snip]
Actually that is not correct. We have prefaced the data with the single
quote in the output process
It may wind up being a user-learning issue.
I dump things to pipe delimited file (whether in *nix land or winDoze)
and that way the users can open it in Excel. The ones who have to open
the files I just go to their desks the first time and show them how to
open the file, delimit it on the | and
According to the PHP manual, the mnoGoSearch extension is not available
on the Windows platform. I had considered installing mnoGoSearch on our
Windows box running PHP (even though I will have to pay for the Windows
version of mnoGoSearch). However, now that I've seen this in the
manual, I
hello,
i am a new user of php (and i speak french - but try to write english as well as
possible) and
i have a project consists to implement a web interface (with php) to connect a
database (interbase) on
plattform windows.
So where is the best link to download some documentation about php
On Feb 9, 2004, at 12:22 PM, Dominique ANOKRE wrote:
So where is the best link to download some documentation about php
with interbase.
The best place to get documentation about PHP is the PHP website at
http://www.php.net
For InterBase functions, you should check out this page:
Hi all,
I have to replicate the file encryption of a desktop bound
application. This means using triple DES, but I can't find
anything on the web or in the maunual (other than single
DES).
Does anyone know if it is doable to implement this using php,
or if I should just tell the client that it
php-general Digest 9 Feb 2004 17:32:27 - Issue 2580
Topics (messages 177183 through 177220):
Re: julian date
177183 by: Adam Bregenzer
Minor Heads Up
177184 by: Gerard Samuel
Re: read-only variables
177185 by: Vivian Steller
177193 by: Alex Farran
file
I know this is way off topic, but I figured some or most have hit upon
this problem, or may very well in the future. I have been looking for
and not really found a reference online or a hardcopy book that will
tell me how to write a PALM or winDoze pocket PC application that when I
sync it to the
craig wrote:
Hi all,
I have to replicate the file encryption of a desktop bound
application. This means using triple DES, but I can't find
anything on the web or in the maunual (other than single
DES).
Does anyone know if it is doable to implement this using php,
or if I should just tell the
On Mon, 2004-02-09 at 12:36, craig wrote:
Hi all,
I have to replicate the file encryption of a desktop bound
application. This means using triple DES, but I can't find
anything on the web or in the maunual (other than single
DES).
The mcrypt[1] module will do triple DES as well as stronger
Create native xls files, there are at least two classes that can help
you, here is one:
http://www.bettina-attack.de/jonny/view.php/projects/php_writeexcel/
Jake McHenry wrote:
Hi everyone. Since my last post of outputing to excel, I have converted my output to XML, quite happy with myself. It
Thanks, I wasn't looking for 3DES.
That should do the trick for me.
Craig
-Original Message-
From: Adam Bregenzer [mailto:[EMAIL PROTECTED]
Sent: February 9, 2004 10:36 AM
To: craig
Cc: Php
Subject: Re: [PHP] triple DES encryption
On Mon, 2004-02-09 at 12:36, craig wrote:
Hi
A recent thread on the WebDesign-L raised the question of whether search
engines can detect (and penalize sites for) PHP redirects of the form:
header(Location: http://www.whatever.com/;);
I don't see how that could be the case, since the redirect occurs on the
server before any HTML is output
Given a set of session id's, is it possible to query whether a given session
exists. I am not talking about the current user session, instead I am
referring to any and all possible user sessions currently in play. For
example:
if (session_exists($sessionId)) doSomething();
I've been looking very
From: Lowell Allen [EMAIL PROTECTED]
A recent thread on the WebDesign-L raised the question of whether search
engines can detect (and penalize sites for) PHP redirects of the form:
header(Location: http://www.whatever.com/;);
I don't see how that could be the case, since the redirect occurs
On Mon, Feb 09, 2004 at 02:31:16PM -0500, Lowell Allen wrote:
A recent thread on the WebDesign-L raised the question of whether search
engines can detect (and penalize sites for) PHP redirects of the form:
header(Location: http://www.whatever.com/;);
I don't see how that could be the case,
On Mon, Feb 09, 2004 at 02:48:07PM -0500, John W. Holmes wrote:
snip
As for whether a redirect is penalized or not, I doubt it. It'd be in the
best interest of the search engine to follow the link just like it's going
to follow any link on a page and index the content. Now, whether the indexed
From: Marco A. Ortiz [EMAIL PROTECTED]
I want to ask you, how I must setup my PHP.INI file, to send e-mail from
my
Web Site if my SMTP server requires authentication. Otherwise, I want to
know if exits some kind of public SMTP sever that I could use.
If your SMTP server requires
Hi,
I'm having trouble with the code below. Basically, I'm trying to set up
$message to inherit one of two forms depending on if there is a $_GET
request. The script works IF there is a $_GET request. It fails if there
isn't (i.e. parse error).
Is there a way to get $message to refer to
I don't know of a function, but you could possibly read the directory where
the SID files are stored. I use sessions a lot; however, I've not tried to
accomplish this. I don't know if by default you can read the SID directory
from a script or if this is blocked for security reasons or not. If
- Original Message -
From: Marek Kilimajer [EMAIL PROTECTED]
To: Jake McHenry [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, February 09, 2004 12:42 PM
Subject: Re: [PHP] XML and Excel
Create native xls files, there are at least two classes that can help
you, here is one:
Yeah thats pretty much what I have concluded. I was absolutely sure there
would be a way to check if a session was still active, but I guess not :-(.
Thanks though
Christian
Larry Brown [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I don't know of a function, but you could possibly
On Mon, Feb 09, 2004 at 02:31:16PM -0500, Lowell Allen wrote:
A recent thread on the WebDesign-L raised the question of whether search
engines can detect (and penalize sites for) PHP redirects of the form:
header(Location: http://www.whatever.com/;);
I don't see how that could be the
I am trying to force a file download using headers. The problem is not
forcing the download. That is working fine, but if the user wants to click
on another download while the first one is still downloading it won't let
the user do it.
Here is the code that I'm using, adapted from
Hi,
I've been playing around quite some while with the new exceptions in PHP5 and must say that this new feature by it self is .. well, exceptional.
However .. since internal PHP function do not make use of them, it's pretty hard to produce exception proof software. Because earlier or later,
Christian Calloway [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Yeah thats pretty much what I have concluded. I was absolutely sure there
would be a way to check if a session was still active, but I guess not
:-(.
Thanks though
It depends on your definition of 'active.' If you
Yeah, my solution so far has been to check the last modified time of the
session file and then go from there. If the modified time is then time
permitted, then that file is removed and the user's session is rendered null
and void. What I am doing is allowing a variable X number of user's to
I would appreciate any help you can give me about a problem I am having
with PHP's CURL functions.
I want to use CURL to download news from Wall Street Journal Online.
When you visit the WSJ home page, you're forwarded to an authentication
page to enter your name and password, and then
Hi,
I have a table where a users details are entered for the products he bought,
the only part that is repeated is the order_id,
I basically need to only get the order per person, and paginate for all the
customers
eg:
if user tom bought 3 items in the database it would be entered as:
order_id
Hello,
On 02/09/2004 05:29 PM, Richard Miller wrote:
I would appreciate any help you can give me about a problem I am having
with PHP's CURL functions.
I want to use CURL to download news from Wall Street Journal Online.
When you visit the WSJ home page, you're forwarded to an authentication
Hi,
Sorry for the slightly off-topic post, but I've just had a client ask me to
create a manual for the site management tool I wrote for them last
fall. Since I've never had to do one before I'm a bit lost on what would
be a reasonable amount to charge and whether or not I should put any
Try this:
SELECT COUNT(*), order_number FROM . $prefix . _purchases GROUP BY
order_number
as your query.
Shaunak
- Original Message -
From: Ryan A [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 09, 2004 8:36 PM
Subject: [PHP] php with mysql COUNT, DISTINCT syntax,
Hey,
Thanks for replying.
Nope, that didnt work, but i modified my search terms on google and kept on
trying with different search terms and got the solution here:
http://dbforums.com/arch/230/2002/11/623223
Cheers,
-Ryan
On 2/10/2004 3:14:21 AM, Shaunak Kashyap ([EMAIL PROTECTED])
wrote:
Try
Hi there
I have 2 scripts:
?php
/*
test1.php
*/
function called_from_file(){
print __FILE__
}
?
///
?php
/*
test2.php
*/
include(test1.php);
called_from_file();
?
/
I get the output
test1.php
On Mon, 2004-02-09 at 14:31, Lowell Allen wrote:
A recent thread on the WebDesign-L raised the question of whether search
engines can detect (and penalize sites for) PHP redirects of the form:
header(Location: http://www.whatever.com/;);
I don't see how that could be the case, since the
On Mon, 2004-02-09 at 23:17, Samuel Ventura wrote:
what I need is to detect the name of the script
from which I called the function, (test2.php) in this
case.
For this application, it is not practical to pass an
aditional parameter to the function specifying the
caller, i need
On Mon, 2004-02-09 at 15:58, Markus Fischer wrote:
But doing this now for every internal function call I don't want to
lead my program into an unwanted state isn't very appealing.
snip
I'm seeking for a more perfect programming model for application
demanding that uncontrolled factors are
function called_from_file(){
$backtrace = debug_backtrace();
print $backtrace[0]['file'];
}
check: http://www.php.net/manual/en/function.debug-backtrace.php
Samuel Ventura wrote:
Hi there
I have 2 scripts:
?php
/*
test1.php
*/
function
php-general Digest 10 Feb 2004 05:38:19 - Issue 2581
Topics (messages 177221 through 177251):
OT - Pocket PC/PALM Application making/syncing?
177221 by: Robert Sossomon
Re: triple DES encryption
177222 by: Miguel J. Jiménez
177223 by: Adam Bregenzer
177225
Hi All,
I've created 3 sample scripts, pls see below.
My problem is that page3.php can't display the value $username and
$password
Or is it because it the variables were not importe to that page, that's
why
$username and $password has no value? If it is, how can I import it?
Thank you
-
On Tue, 2004-02-10 at 00:43, Ronald Ramos wrote:
Hi All,
I've created 3 sample scripts, pls see below.
My problem is that page3.php can't display the value $username and
$password
Or is it because it the variables were not importe to that page, that's
why
$username and $password has no
HI,
I have a problem.
I dont know how to create tables for this in PHPMYADMIN, the situation is
like this:
I have to display lot of items on the screen.
There are three Datagrids on the screen (I am using Flash for this so if i
get the database structure right, i will be able to take care of
Dear all,
The script was working perfectly, but all of the sudden since last week
stopped working, gives Zero Sized Reply. The site is
http://coremag.net/corex/feedback/feedback.htm
Can anybody tell me what is the problem. Below is the page I get when
submit the form:
ERROR
The requested URL
75 matches
Mail list logo