Hi,
I have a doubt about extending functions in PHP. I want to use C++ language
rather than C pure. I saw that dotnet module has cpp file. Is it possible ?
Thanks a lot,
Michel M. dos Santos
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: htt
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hey Jim,
- From the WINE Faq (http://www.winehq.org/).
"3.8. Do I need to have a DOS partition on my system to use Wine?
You do not need a licensed and installed copy of DOS or MS Windows to
install, configure and run Wine. However, Wine has to b
take a look at the database abstraction layer ADODB at php.weblog.com Even
if you are like me and never use more than just MySQL, it makes like a lot
easier.
=C=
* Cal Evans
* Stay Plugged Into Your Audience
* http://www.christianperformer.com
-Original Message-
From: Hunter, Jess [mail
Hello all
I am having some problem with arrays
THIS IS THE PHP CODE
$temp = file("file.txt");
if(!$temp)
{
echo "File could not be read by array !! ";
exit;
}
else
echo "Array was opened !!";
$x = count($temp);
echo "Array Count is: $x";
echo "$temp[0]";
//$P = str
and what problem is that?>
how about just using the example?
http://www.php.net/manual/en/function.file.php
$lines = file ('http://www.example.com/');
// Loop through our array, show html source as html
source; and line numbers too.
foreach ($lines as $line_num => $line) {
echo "Line #{$line
Hello,
I would ask you a question about date type
if I have a variable from date type ($newdate) such as 2003-02-17
how can I separate $newdate into 3 different variables? I want to create
such variables:
$day=17
$month=2
$year=2003
I searched a lot, but I didn't find how to do this.
I'll be very h
I'm considering making a dynamic application for Mozilla/Netscape using
PHP and XUL. Has anyone here done this? Anything I should be aware of?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$date_array=explode("-",$newdate);
$day = $date_array[2];
$month = $date_array[1];
$year = $date_array[0];
Or,
$timestamp - strtotime($newdate);
$today = getdate($timestamp);
$month = $today['month'];
$mday = $today['mday'];
$year = $today['year'];
"Alexander Tsonev" <[EMAIL PROTECTED]> wrote in
This might help:
http://www.tutorbuddy.com/software/phpcpp/phpcpp/
J
Michel M. Dos Santos wrote:
>
>
> Hi,
>
> I have a doubt about extending functions in PHP. I want to use C++
> language rather than C pure. I saw that dotnet module has cpp file. Is it
> possible ?
>
> Thanks a lot,
>
>
> From: "Alexander Tsonev" <[EMAIL PROTECTED]>
>
> Hello,
> I would ask you a question about date type
> if I have a variable from date type ($newdate) such as 2003-02-17
> how can I separate $newdate into 3 different variables? I want to create
> such variables:
> $day=17
> $month=2
> $year=2003
On Wed, 26 Feb 2003, Philip Hallstrom wrote:
|
|Use the w option of date() and loop through adding 86400 to $t until you
|get to a number between 1 and 5.
|
| w - day of the week, numeric, i.e. "0" (Sunday) to "6" (Saturday)
I may of gotten ahead of myself, but I tried it using if/else. Looks lik
Thought I would throw this out if anyone is interested. We have some
proprietary accounting software that uses MS-SLQ as it's backend. Not my
choice, trust me.
Anyhow, I hassled the guy who made the software long enough that he
created a solution until we can swith to MySQL. Basically, it runs on
New to PHP, I was wondering if PHP, running as a module under Apache 2,
had an automatically included script that would run prior to any/each
PHP script served by Apache?
Tks,
Dwayne
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
On 02/27/2003 04:27 PM, Joseph Bannon wrote:
Why don't you just use phpAdsNew?
Because I prefer to write it myself so I can learn
more.
You can learn more studying the solutions provided by those that already
attempted to implement the same problem. Just study phpAdsNew and you
will lea
> New to PHP, I was wondering if PHP, running as a module under Apache 2,
> had an automatically included script that would run prior to any/each
> PHP script served by Apache?
>
> Tks,
> Dwayne
Dwayne
Look into the auto_prepend_file directive that you can specify in php.ini -
this may suit your n
this code add a backslashes in all doubleqoutes in the html file.
sample:
before editing my.html file
after editing my.html file
any idea why and how can i avoid this?
> sorry here's the sample code:
>
> if(!$submit){
> ?>
>
> $filename="my.html";
> $fd=fopen($filename,"r+") or die("
Check stripslashes(), I think that will help you.
---Matt
-Original Message-
From: Michael P. Carel [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 27, 2003 4:53 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] problem in writing into an html text file
this code add a backslashes in all d
When using the COM functions in PHP what is the equivalent of
ASPs "set object=nothing"?
I am using the Crystal Report objects and I cannot seem to
destroy my Report object.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi guys ,
Seams like ini_set('session.use_trans_sid',0) does not work right on PHP
4.3.1 on Linux.
//--
PHP config is:
'./configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-xml'
'--enable-bcmath' '--enable-calendar' '--with-curl'
'--with-swf=/usr/local/flash' '--enabl
> When using the COM functions in PHP what is the equivalent of
> ASPs "set object=nothing"?
> I am using the Crystal Report objects and I cannot seem to
> destroy my Report object.
Have you tried setting it to NULL?
Rich
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
thanks it's working now
- Original Message -
From: "Matt Honeycutt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 28, 2003 7:23 AM
Subject: RE: [PHP] problem in writing into an html text file
> Check stripslashes(), I think that will help you.
>
> ---Matt
>
> -O
hey guys, just a quick question re: creating pdf files on the fly.
i was wondering if anyone knew if it is possible to fully justify text?
thanks in anticipation, john
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Don't know if this is appropriate or not but here we go.
I need help with a project. requires a PHP developer. The two programs
we're using are php and MySQL. Anyone interested or anyone who can help
guide me to a place to find help please reply to me directly or to the
list as you feel appr
Hi,
Origninal Post:
> I have an array with an html link as key and different $vars as val:
>
> $list = array (
> 'http://someplace.com/";>some place' => $vendor1_total,
> 'http://anotherplace.com/";>another place' => $vendor2__total,
> [snip] etc..
>
> some vals are numeric and some vals are "
Right, well there's a few issues here.
1.
You're asking if there's a way to parse a QXD file so retrieve the text from
it. I doubt this can be done. I had a quick google for it, to no luck. I
also bothered to open up a Quark 3.32 file in my text editor, to check out
the source. It looks prett
Begin forwarded message:
From: Pushpinder Singh Garcha <[EMAIL PROTECTED]>
Date: Thu Feb 27, 2003 7:57:38 PM US/Eastern
To: olinux <[EMAIL PROTECTED]>
Subject: Re: [PHP] Help with Arrays
Thanks
My question was that each line of the file should be stored as one
element of the array.
This is be
> What about using a MySQL database? Insert the picture into a field in
> a table, then use a php script to call the data. I've been working on
> something like this. Is it practical, or am I barking up the wrong
> tree?
Too much overhead, in my opinion. Same result if you just stored the
files
Try this code (tested):
<-- Begin Code -->
foreach ($list as $key => $value) {
// If elements value is a numeral add to numeric_array
if (is_numeric($value)) {
$numeric_array[$key] = $value;
// If value is not a numeral (presumably 'n/a') add to na_array
} e
I am having some problems with ob_*
My goals is basically this
Stuff goes here
More stuff here
The code below works until the showImage method is called, it does show the image
however, it does not output the 'Stuff goes here!' line.
any guidance greatfully recieved.
Code is below..
Kevin
Can anyone with Apache verify that you can pass arguments inside of a
virtual() call? Something like:
Virtual("script.pl?id=1")
And have $id available within script.pl.
I don't have access to an Apache server right now to test, so thank you
very much.
---John W. Holmes...
PHP Architect - A mo
On Thu, 27 Feb 2003 14:31:45 -0800 (PST), you wrote:
>Basically, it runs on the
>MS-SQL server and allows requests in XML format on a certain port.
That's actually pretty cool, from a tech standpoint, but why not
access the MS-SQL database directly? From Windows it's easy, you just
need the SQL
I really need somebody to help me with this I am totally lost on what
to do
I need a way to read the following text file and add to or delete from
or change the data.
I have been able to move it all into an array using this code
$groups= file("group");
for ($i=0; $i<$number_in_group; $i++){
$grou
That is why I suggested passing all that over SSL which would make it
very difficult to get the data even if you were able to get the
packets. If you are operating with data that you care about you
probably need SSL. There is not much point in creating some type of
applet combination that your us
Hi,
Friday, February 28, 2003, 12:09:30 PM, you wrote:
JWH> Can anyone with Apache verify that you can pass arguments inside of a
JWH> virtual() call? Something like:
JWH> Virtual("script.pl?id=1")
JWH> And have $id available within script.pl.
JWH> I don't have access to an Apache server right
Hi,
Friday, February 28, 2003, 1:16:56 PM, you wrote:
TR> Hi,
TR> Friday, February 28, 2003, 12:09:30 PM, you wrote:
JWH>> Can anyone with Apache verify that you can pass arguments inside of a
JWH>> virtual() call? Something like:
JWH>> Virtual("script.pl?id=1")
JWH>> And have $id available wit
You can't display an image like that in HTML. You need to make a second
PHP script that displays just the image, and call it with a tag.
Kevin Waterson wrote:
>I am having some problems with ob_*
>
>My goals is basically this
>
>Stuff goes here
>
>More stuff here
>
>The code below works until th
Hi,
Friday, February 28, 2003, 12:20:38 PM, you wrote:
RK> I really need somebody to help me with this I am totally lost on what
RK> to do
RK> I need a way to read the following text file and add to or delete from
RK> or change the data.
RK> I have been able to move it all into an array using th
In a message dated 2/27/2003 12:47:25 PM Pacific Standard Time,
[EMAIL PROTECTED] writes:
>First time poster here and a 1 week old PHP/Mysql programmer
>
>I have bought several books and scoured the net for any and all PHP/MySQL
>tutorials. Here is the problem I am running into:
>
>1. The docs tel
Hi,
Thanks to those who have helped me.
Jason Lange Wrote:
> Try this code (tested):
>
> <-- Begin Code -->
> foreach ($list as $key => $value) {
> // If elements value is a numeral add to numeric_array
> if (is_numeric($value)) {
> $numeric_array[$key] = $valu
Ok I created an engine, an extremely simple engine that parses a template
file and then according to whatever page and language it is on it calls that
template.
Now the problem is that, well let me give you an example:
I have a page called index.php which only has an include_once function in
it
Hey does anyone know if you can use PHP and ASP 3.0 or I.I.S on the same hard drive on XP pro?
I need to know for school, because I’m taking
classes for both languages.
ultimatefootballleague.com/index.php
[EMAIL PROTECTED]
I am trying to run a PHP CLI script from cron using PHP 4.3 and FreeBSD
5.0
This is what I have verified:
My clock is set right
I can run bash scripts from cron
I have tried running the script as root and as other users
If I run the PHP CLI script by had it works fine
I set cron to run the scri
I want to thank those who tried to help with my questions about using the GD
libraries.
I still have not gotten them to function using PHP.
I've put two screenhots of the phpinfo() page at:
www.gonefishingguideservice.com/php_page.htm
If you care to take a look at those images, you'll see that
Hi Everyone,
OK I have looked through the archives and all over the net. I apologise if
this has been seen before but here goes :
No matter what switches I use I get the same error when I "make" ./configure
goes fine. RedHat 8.1 beta PHP 4.3.1 the error is :
ext/mysql/libmysql/my_lib.lo(.text+0x3
Hi,
I've got to sort the $numeric_arry
This doesn't seem to work:
sort ($numeric_array, SORT_NUMERIC);
I think its sorting $key
asort ($numeric_array, SORT_NUMERIC);
sorts as a string
THANKS AGAIN IN ADVANCE,
Jim Long
JanetVal Wrote:
> Well, as long as you know exactly what you are looking fo
Hey guys I finally got my phpinfo
file to show on apache server
But when I try to do a hello world or browser check I get
a 500 error message
Can anyone help me out, and educate me what I’m
doing wrong.
This is my script
PHP
Test
php
if
(strst
Please don't send MS Word content in your email. It crashed Mozilla before
I was able to reply.
Karl James wrote:
Hey guys I finally got my phpinfo
file to show on apache server
But when I try to do a hello world or browser check
I g
Title: Message
Hey guys I finally got my phpinfo file to show on apache server
But when I try to do a hello world or browser check I
get a 500 error message
Can anyone help me out, and educate me what I’m doing
wrong.
This is my
script
PHP Test
php
if (strst
G'day Karl
> Hey guys I finally got my phpinfo file to show on apache server
> But when I try to do a hello world or browser check I get a 500 error
> message
FWIW, I've seen this error when I've had mac line endings instead of unix.
cheers
kim
--
PHP General Mailing List (http://www.php.
snip from manual for -p option:
|-
-p[password], --password[=...]
Password to use when connecting to server. If a password is not given on the
command line, you will be prompted for it. Note that if you use the short
form -p you can't have a space between the option and the password
so i have a function that creates objects (with member variables) and
pushes those objects onto the array. after adding all of the objects,
the function then returns the array...
i'm having trouble accessing the members of each object in the
array...i'm trying to do something like this:
class
Hi,
I'm running Apache 2.0 and PHP 4.2.2 on a RedHat 8.0 Machine. I'm unable
to pass variables through a URL like index.php?test=something. Can
anyone help here? I've looked through both my httpd.conf and php.ini
files and didn't see anything...
-Michael
--
PHP General Mailing List (http://www
Hey guys,
Im having problems getting my helloworld.php file to
Work on the apache server.
My phpinfo.php works perfect.
I know the code is write
The error message I get is
#
Internal Server Error
The server encountered an internal error or m
http://www.php.net/manual/en/security.registerglobals.php
Mike wrote:
Hi,
I'm running Apache 2.0 and PHP 4.2.2 on a RedHat 8.0 Machine. I'm unable
to pass variables through a URL like index.php?test=something. Can
anyone help here? I've looked through both my httpd.conf and php.ini
files and did
Hi,
Friday, February 28, 2003, 4:24:54 PM, you wrote:
AS> so i have a function that creates objects (with member variables) and
AS> pushes those objects onto the array. after adding all of the objects,
AS> the function then returns the array...
AS> i'm having trouble accessing the members of ea
Hi,
Thursday, February 27, 2003, 2:55:48 PM, you wrote:
JTJ> Thanks!
>> exec("mysqldump -c -q database -u user -ppassword", $sql);
JTJ> Why is there no space between the -p and password?
>>-ppassword
JTJ> Am I wrong?
JTJ> Thanks,
JTJ> John
Probably because a space is a valid char in password
Hello Tom,
Thursday, February 27, 2003, 7:39:52 PM, you wrote:
TR> Hi,
TR> Friday, February 28, 2003, 12:20:38 PM, you wrote:
RK>> I really need somebody to help me with this I am totally lost on what
RK>> to do
RK>> I need a way to read the following text file and add to or delete from
RK>> o
I'm looking for a webbased interface that will allow me to managae mysql
databases. However, phpmyadmin has been ruled out due to the fact it
requires the username and password to be stored in the config file and
that it doesn't have any security to protect the average joe from
stumbling across it.
> I'm looking for a webbased interface that will allow me to managae mysql
> databases. However, phpmyadmin has been ruled out due to the fact it
> requires the username and password to be stored in the config file
No it doesn't.
> and that it doesn't have any security to protect the average joe
Hi all,
I'm using JPGraph on a localhost for a website opened via a host redirect.
My problem is that nobody can see the graphs but me ('cause I'm on
localhost).
Any clues?
Thx.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi!
"Rasmus Lerdorf" <[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]
> On Tue, 18 Feb 2003, Greg Donald wrote:
> > On Tue, 18 Feb 2003, Bruce Miller wrote:
> >
> > >Will PHP allow multiple-thread execution?
> >
> > PHP4 does not have thread support.
>
> Well, except for pear/PECL
101 - 161 of 161 matches
Mail list logo