I am attempting to create an extension to php.. The only problem is, whenever
I run buildconf after creating a skeletion with
./ext_skel --extname=my_module
I receive the following output from buildconf
./buildconf
using default Zend directory
buildconf: checking installation...
buildconf: au
Do php extension need to be thread-safe? I am running php on apache2. I
would guess that since it's compiled in as a module, it would need to be
thread-safe correct?
Josh.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Is there any way to access the Function Stack from php?
I would really like it for debugging, ala java style or C debugging style,
where I could get a list of function like
>From afunction line 83
>From bfunction line 179
>From cfunction line 345
Error here..
If I could somehow access the fun
The only thing I do wish is that there was a way to force php into a typecast
mode... and possibly a setting to reqiure a definition for a variable.
Josh.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
h as undefined variables) to be a reasonable, although non
> ideal, compromise; php's still a great language to work with most respects
> though ...
>
> David Eisenhart
>
> "Joshua Moore-Oliva" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">
Try this function... it's one part of a php class I've been thinking about
making open-source. Give it any sql statement and a page (0 based for the
page) and a number of records for a page and you are set.
I've only tested this on postgresql.
function pageSql( $sql, $page, $recs_per_page ) {
There's really no other way to do it...
You can't serialize a connection or resultset since they are both resources...
If you really wanted you could turn a recordset into an array and store that
as a serialised object and pass it around... but
a) Depending on how much data a recordset returne
h.
On February 12, 2003 01:30 pm, Joshua Moore-Oliva wrote:
> Try this function... it's one part of a php class I've been thinking about
> making open-source. Give it any sql statement and a page (0 based for the
> page) and a number of records for a page and you are set.
>
You can use the curl libs to call an external script.
Josh.
On February 22, 2003 11:05 am, Steve Vernon wrote:
> Hiya Greg or anyone else!
> I realise that PHP does not have inherent thread support as yet. But is
> it possible to simulate threads?
>
> What I would like is for the user in a
any $_POST data is actually string data. Use these functions from a class of
mine I plan on making public when I have it thoroughly tested.
function isString( $var_name, $var ) {
/*Nothing else I can do in this case.. I don't think any other data type
can have a length of zero.
I believe that single quotes will display exactly what you type in, and double
quotes will actually process it.. e.g.
$foo = "hello";
echo '$foo';
You see $foo
echo "$foo";
You see hello
On February 25, 2003 09:42 pm, CF High wrote:
> Hey all.
>
> Got a problem with this sql statement -- php
plain html
On February 25, 2003 08:32 pm, Sunfire wrote:
> hi..
>
> i looked in the manual about file uploads and basically know how it works
> other than a little playing around with it but was wondering how you could
> make a browse for file button that opens a box on the users computer so
> t
What is someone spells their name Desilva?
On February 28, 2003 06:21 am, Justin French wrote:
> What about DeSilva And McSomething?
>
> Justin
>
> on 28/02/03 10:11 PM, Danny Shepherd ([EMAIL PROTECTED]) wrote:
> > Hi,
> >
> > Well it's hardly rocket science - a flick through the manual and I cam
Make a perl script that does what you want and use exec to pipe to it then :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
well, as a last resort if you can find the perl module that does that conver
the code to php...
it's probably just a bunch of regular expressions, and php has a perl compat
regular expressions interface..
Josh.
On February 28, 2003 07:01 am, Geoff Caplan wrote:
> Joshua,
>
> JMO> Make a perl s
Try looking at this page
http://www.php.net/manual/en/function.serialize.php
Josh.
On February 28, 2003 08:22 am, Michiel van Heusden wrote:
> I'm using this script to test passing arrays to a Session-variable.
>
> session_start();
>
> // method 1
> $_SESSION['array1'] = array("item1", "item2");
Where could I find a list of features that 5 is planning on having?
Josh.
On March 6, 2003 11:12 pm, Marco Tabini wrote:
> On Thu, 2003-03-06 at 23:09, Larry Brown wrote:
> > Someone mentioned a facet of version 5 to be expected that I am really
> > looking forward to. Does anyone know what the
On March 17, 2003 07:55 am, M Wells wrote:
> Hi All,
>
> I'm an Australian PHP developer and host most of my web sites on US
> servers. One in particular is primarily accessed by Australian visitors
> and I want to be able to reflect Australian Eastern Standard Times when
> writing / reporting reco
Switch to postgres! then you can do
SELECT stamp FROM table
WHERE stamp BETWEEN timestamp 'today' AND timestamp 'tomorrow';
On March 17, 2003 12:43 pm, Brad Harriger wrote:
> I have two variables, $StartDate and &EndDate that contain values read
> from MySQL Date fields. How can I determine i
You should put this on the postgres general list not here...
I've heard a lot of talk about this lately, though I haven't gotten around to
implementing it yet.. There is also a section in the online postgres docs on
how to do this.
And if you're fast someone just posted a question 2 minutes ag
YOu can check the HTTP_REFERRER... but really though, that's no security.
Anyone can use Curl to simulate a request that looks like it comes from your
domain.
All security measures needs to happen on the server, not from what the users
web browser gives you.
Josh.
On March 19, 2003 05:13 pm
Nono, I'm saying that you can never be 100% sure where someone came from,
since they are responsible for storing that data, and they can modify before
sending it back to you.
If you really want to make sure someone came from another page before the
current page, create a uniq ID and md5 it or s
date() returns a unix timestamp, which is in seconds. You are only adding one
second.
Try using mktime, and increment hte month argument there.
Josh.
On March 20, 2003 09:00 am, shaun wrote:
> Hi,
>
> could someone tell me why this:
>
> $month = date(m);
>echo "\$month: ".date(F,strtot
You could have also used sprintf, which can be called from C++ as well.
Josh.
On March 24, 2003 07:18 am, Marek Kilimajer wrote:
> number_format
>
> Adriaan Nel wrote:
> >Hi all,
> >
> >I'v got the following:
> >
> >round ($val1,4);
> >
> >echo "$val1";
> >
> >It works fine, but when $val which
I'm kind of confused right now... when I call preg_replace_callback with a
regular expression with brackets, sometimes I get an array back with multiple
elements like
array(3) {
[0]=>
string(19) "http://www.aol.com
"
[1]=>
string(0) ""
[2]=>
string(19) "http://www.aol.com
"
}
and I
You can always store the file and every so often regenerate it, and if the
regernation hasn't timed out jsut passtrhu the cache.
On June 2, 2003 02:38 am, Gerard Samuel wrote:
> Searching through the archives, most people are running away from
> caching php scripts.
> Im trying to do the opposite
This is really scaring me as file redirection is one of the basic things in
linux.. anyways
I have a php script that outputs to stdout using echo.. when I run it using
php parser.php
I can see the output no problem. However, when I attempted to redirect to a
file using
php parser.
That worked, thanks.
On June 25, 2003 07:16 pm, David Nicholson wrote:
> Hello,
>
>
> This is a reply to an e-mail that you wrote on Wed, 25 Jun 2003 at 23:48,
> lines prefixed by '>' were originally written by you.
>
> > php parser.php > temp
> > temp only contains
> > Content-type: text/html
28 matches
Mail list logo