If you have any interest in yachting, boats, sailing or holidays afloat...
Visit www.yacht-search.net the new international boat yacht charter sales
system -
FREE OF CHARGE FOR ALL USERS... Free advertising or enquires using $1.5 Million USD
(£1M) of technology!
CREATING NEW MARKETS
Hello, I see all the ways to compile the tarball on a raq 3
for php after one installs freetype/gd and has mysql
well, what about the rpm?
Since I have mysql installed, after I get gd/freetype up
will the rpm know what to do to incorporate them? Or would I still
have to modify certain files?
Hi,
I'm looking for a way to extract data from a single variable.
I'll explain:
The variable contains somthing that look like: #@data1#@data2#@data3
What I would like to do is check the data between the #@'s so I can compare
data1, 2 and 3 with a another variable. The next this I would like to
?php
$str = '#@data1#@data2#@data3#@';
$count = preg_match_all('/\#\@([\w\d]+?)(?=\#\@)/',$str,$results);
var_dump($results);
?
Produces :
array(2) {
[0]=
array(3) {
[0]=
string(7) #@data1
[1]=
string(7) #@data2
[2]=
string(7) #@data3
}
[1]=
array(3) {
Hi,
As far as I understand header(Location: next-page.php); only works on
Apache. What can you do to redirect if you do not have Apache?
Tx
MH
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
Hi,
how can i set an error handling function in a class?
i have tried set_error_handler('myclass-myErrorHandler');
but it doesnt work.
Any help?
Regards,
Holger
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
Hi all
How can i get client IP address
thanks,
Narko
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Hello!
This is my first post, so bare with me. I'm trying to use PHP together with
some XML files to create an array of elements and values. This, looking at
the examples seemed fairly reasonable.
After recompiling Apache/PHP using --with-xml everything seems fine. I am
using Solaris 2.6,
On Monday 26 November 2001 23:37, Christopher William Wesley wrote:
On Mon, 26 Nov 2001, Greg Sidelinger wrote:
Can someone tell me how to store a class in a session var. I
want to
There are several things you need to do.
1) include the class definition before you do anything
2) start
As a Newbe to PHP, I need to print reports. I'd like to stay away from
PDF but will use it if necessary.
In general, what seems to be the best way to print reports??
It would be nice when they ask for a report it would brint in the report
window that allows them to select the printer,
Hi. This is HTML:
meta http-equiv='Refresh' Content='2; URL=foo.html'
Content=x in seconds
bye
On Tue, 27 Nov 2001, MindHunter wrote:
Hi,
As far as I understand header(Location: next-page.php); only works on
Apache. What can you do to redirect if you do not have Apache?
Tx
MH
$REMOTE_ADDR
PHP Manual, Predefined variables
On Tue, 27 Nov 2001, narko wrote:
Hi all
How can i get client IP address
thanks,
Narko
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
Hi,
i have test.php:
?
echo test;
?
to call this in the html, i use
SCRIPT LANGUAGE=Javascript SRC=test.php/script
this works fine for IE, but is there an alternative for Netscape to do this?
Tnx,
Bas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
Hi everybody,
I sent this to the php.windows-group but got no answer, so I'll try again
here :-)
Since I'm not used to working under Windows-OSes (never really knew why,
now I do..) it took me a while to get moving. I put together a small
project but now I'm really stuck. Not even reading the
i have test.php:
?
echo test;
?
to call this in the html, i use
SCRIPT LANGUAGE=Javascript SRC=test.php/script
this works fine for IE, but is there an alternative for Netscape to do
this?
PHP is a server side programming language and it does not execute in the
browser.
What you are
what type of reports ???
if you really want to print it using a common printer i suggest that you
go for PDF...
if your type of reports are server log reports you can use GD or ImageMagick
and display it using HTML
cheers,
Valter Santos
- Original Message -
From: Dan Koken [EMAIL
Hi all,
How can i start using templates?
Thanks,
Narko
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
As a Newbe to PHP, I need to print reports. I'd like to stay away from PDF
but will use it if necessary.
This really is becoming a faq. A search will come up with more information.
Short anwer:
You could write the report to the browser, use a new window if you have to.
PHP=serverside and
First choose one from the amount of the avaible packages for templates:
1)PHPLIB templates
2)Class FastTemplate
3)Smarty Templates(written by two, one of the from Zend)
4)Write your own
Regards,
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS
- Original Message
On Tue, 27 Nov 2001, Dan Koken wrote:
As a Newbe to PHP, I need to print reports.
One way to do it, I think is use XML/XSL. I have never done it before
though (I use PDF's myself, but would like to get away from it).. Could
anyone with some real-world experience with this elaborate, please?
On Tue, 27 Nov 2001, narko wrote:
How can i start using templates?
PHPLib or Smarty come to mind. Search Google.
--
Alexander Deruwe ([EMAIL PROTECTED])
AQS-CarControl
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Warning
Unable to process data:
multipart/related; type=multipart/alternative; boundary=_ABC1234567890DEF_
On Tue, 27 Nov 2001 03:11:42 EST
[EMAIL PROTECTED] mentioned:
Hello, I see all the ways to compile the tarball on a raq 3
for php after one installs freetype/gd and has mysql
well, what about the rpm?
Since I have mysql installed, after I get gd/freetype up
will the rpm know what to do to
What kind of reports? Your question is so general it can't be answered
except by saying ...
Send the report, to a new browser window if you wish, and then use the
browser's controls to print the sucker.Why re-invent what already exists?
Miles Thompson
At 03:00 AM 11/27/2001 -0800, Dan
Hi
I think if you want the user to type in a number, rather use a textbox, not a checkbox
;-))
Then call the textbox phone in the form you want the user to fill in, and when
submitted, the variable $phone will contain the number he typed in.
Then use:
$prefix = substr($phone, 0, 3);
if
There are so many reports.
The system I have is a manufacturing system, and currently contains some
400 programs.
Some examples of reports are:
Bill of Lading with bar codes
Production reports
Management and analysis
Labels for lab analysis with bar codes
Planning reports
Quality
Does anybody know how to call ldap_set_option in order to use server side
sorting?
using:
$sortval={'cn', 0,1};
$ctrl1 = array(oid = 1.2.840.113556.1.4.473, value =$sortval);
ldap_set_option($ds, LDAP_OPT_SERVER_CONTROLS, array($ctrl1));
reports success, but ldap_get_option() returns nothing
I'm not sure if the ereg supports the inline greedy modifier like:
.+? or .*?
so:
ereg(\?php.*?\?\, $html, $phpIncludes);
if not use preg_match() instead...
Christoph Starkmann [EMAIL PROTECTED] wrote in message
This is interesting. I did my testing in Opera 5.05 and it fails to display
the page correctly. I then opened Netscape 6.2 and it works fine. Must be a
problem with Opera. I also set Opera to identify itself as Netscape and it
still failed to load the page.
Thanks for the assistance.
Chip
On
Thanks, assert() is cool, but it still reports the filename and line
number of the included file with the function in which the error
occurred, not the script that called the functon with illegal arguments.
Or...???
Eg.:
index.php:
?
include_once(functions.php);
// foo() is declared here
I don't get what you are trying to do. Does test.php contain JavaScript
that you are trying to execute? If so, then test.php should be called
test.js, and should look something like this:
function (blah) {
var foo = blah;
document.write(foo);
}
If test.php is a PHP
$sql = INSERT INTO table_name(ip,browser,received)
VALUES('.mysql_escape_string($ip).','.mysql_escape_string($browser).',now()) ;
- Original Message -
From: chip [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, November 27, 2001 4:39 PM
Subject: Re: [PHP] Why
I do this a lot. If you want to use just the browser and server abilities
without introducing the complexities of PDF/XML/XSLT and such, it is not too
hard. I have done PDF, Standard Text and HTML to the browser and I have
printed directly to a printer from the server using PHP.
First, is the
So, is this a system that's being moved from workstations, a desktop
interface, to a web-based interface?
Do you want a web interface to select printers?
Do you want tight formatting control over the report? There are big
differences between a 20 pg mfg report, a bill of lading with bar
Thanks Dean;
I like your idea a lot.
They happen to be internet.
If you have example code on your solution it would save me some time.
Thanks again...
I'm gonna try it.
Dan...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Hi all,
I've stored on a db using blob fields, the content of some image file.
Ayones know how to write on these image on fly w/o using the filesystem? I
mean:
?
$sql=SELECT file_img FROM ..;
while($val=mysql_fetch_row($select)){
header(Content-type: image/jpeg);
$img=$val[0];
Well I guess it's like most applications. Every print job has it's own
special requirements.
For example the lab analysis report. When the manufacturing process
starts on a liquid process, they request certain samples. Samples
consist of lab analysis they should take and how often they
Oh yeah, about the lifetime of the cookie - with no valid expiry time it is
created as a session cookie - which is supposed to only live as long as the
browser does.
[opening a new independent browser window does not share the session, but
window.open() calls do, as do other 'browser created
Speaking of cookies, is there a way using session control
to modify the expiration date of a cookie? I would like to add
a check box in a login dialog that says remember me
Thanks
Urb
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
Hi Urb
Can you not just set the cookie again [using the updated expiry date].
If I remember correctly, this should work..
--
Shane
On Tuesday 27 Nov 2001 5:45 pm, Urb LeJeune wrote:
Speaking of cookies, is there a way using session control
to modify the expiration date of a cookie? I would
I am using Foxserv v2.0 beta 3.. anybody can tell me how to install PEAR?
php-general Digest 27 Nov 2001 18:23:42 - Issue 1019
Topics (messages 75748 through 75802):
Re: Selecting databases
75748 by: Martin Towell
75749 by: Craig Vincent
Why doesn't this work? HTTP_USER_AGENT
75750 by: chip
75751 by: Craig Vincent
75752
?
RPM is good if everything is installed by RPM.
Otherwise, RPM won't know that you have dependencies installed, and will
fail.
Thanks. But how do I know if an rpm can run on a raq 3 when I read it's
supported for redhat?
Sometimes I read For redhat 6.1 and then some say yes, you can install
Py wrote:
Hello,
I have an application wich I maintained on my servers (PHP, Apache, MySQL).
I have a client that is already using the application trought a secure link
directly from his web site.
But he would like to have my application update a database directly on his
server (Oracle)
On 27 November 2001 12:45, Urb LeJeune wrote:
Speaking of cookies, is there a way using session control
to modify the expiration date of a cookie? I would like to add
a check box in a login dialog that says remember me
The checkbox is a form field, and thusly passes it's value to the page
On 29 December 2001 13:35, Kris Wilkinson spaketh unto ye recipient:
setcookie (myCookie,Blah,time()+7201);
For some reason, you must specify the domain, and make sure you use *exact*
formatting on the time, including the GMT suffix.
I gave up on setcookie and started using this:
$date =
Hello,
A client requested a script to create a page to print out the list of clients
that are subscribed to a chosen service. This list will be printed and then
faxed to an outer source because that's how the second company that oursources
the service requests it.
The present script creates a
I agree with George.
I was in a somewhat similar situation recently in which a client, for whom I
was writing
an intranet application that I would not be hosting, asked if I could give
my application the
ability to export data for some archain application just in case they
decided they wanted to
Hey guys,
I cant figure out what functions and/or looping I need to use for what I
need to do. Im reading a directory and pushing all the file names in the
directory into an arrary.
I want to be able print out each element(file name) in the array into an
HTML table while limiting a certain
Steve Maroney [EMAIL PROTECTED] wrote:
Now $file_list[] has some number a file names. I want print 4 file names
into a row. Each file name has to be in its on cell.
table
tr tdFILE 0/td tdFILE 1/td tdFILE 2/td tdFILE 3/td
/tr
tr tdFILE 4/td tdFILE 5/td tdFILE 6/td tdFILE 7/td
/tr
try using $count=0; before the loop (while loop is fine)
then before the end of the loop $count++;
inside the loop if ($count % 4) {
that is where you want it to break and start running the other code
}
so you would have
$table = table;
$counter = 0;
while ($tableset =
How can I access the inner most info in this array?
Ie, Item and url
$var = array(
category = array(
subcategory = array(
Item = url
),
)
);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
Hi there,
does anybody know a link where the installation of gdlibrary is explained.
I was trying to install zlib which is mandatory for gd but there is nowhere
a install documentation!
Thanx for any help
cheers Andy
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
you can just kept adding []'s
$var[category][subcategory][Item] = url;
-Original Message-
From: Brian V Bonini [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 27, 2001 4:56 PM
To: PHP Lists
Subject: [PHP] Array Help
How can I access the inner most info in this array?
Ie, Item and
I am a newbie running 4.06 on PWS in Win 98. Any sample script about
sessions I can find just hangs in Personal Web Server. Session id gets
created in data file but nothing happens on the page.
Has anyone come across this? Have searched on Google and can't find any
reference.
Thanks in advance
Don't run PWS. Go to nusphere.com and get the complete package
of Apache, PHP, Perl, and MySQL works like a champ.
At 05:17 PM 11/27/01 -0500, MM wrote
I am a newbie running 4.06 on PWS in Win 98. Any sample script about
sessions I can find just hangs in Personal Web Server. Session id gets
If all you want to do is print, then a simple JavaScript code should do
the trick.
example:
//use php to send the report to a new browser
//in this case, report.php has the code to generate the reports.
a href=report.php?option=xy target=newXY Report/a
//in the new window (or at
Grimes,
I do this a lot. If you want to use just the browser and server abilities
without introducing the complexities of PDF/XML/XSLT and such, it is not too
hard. I have done PDF, Standard Text and HTML to the browser and I have
printed directly to a printer from the server using PHP.
Hey Guys,
I'm having a trouble I can't seem to solve and hoped maybe one of you might
take a look and see if you can help me.
(If you don't want to learn my approach just skip to the bottom to help me
with the final bit.. skip to hear)
What I want to do is open the text file testtext.txt
You're making this real hard on yourself ... and you didn't really look
at the file ... it's *tab* delimited, not spaces ... so this works just
ducky on the file you attached:
#!/usr/bin/php4 -q
?php
$contents = file(f.txt);
while(list(,$line) = each($contents)) {
I need to be able to have high security for the default web user such
that php can not write files. The level of security is such that I
can't open up directories in the web root for writing by the default www
user (php runs as this user).
Question #1: Is there a way to securly write files to
If I have a series of checkboxes like this:
input type=checkbox name=cb[] value=1 This is 1
input type=checkbox name=cb[] value=2 This is 2
input type=checkbox name=cb[] value=3 This is 3
input type=checkbox name=cb[] value=4 This is 4
how can I acess cb[] in Javascript other than using the
try : form_name[cb[]]
-Original Message-
From: Christian Dechery [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 28, 2001 11:53 AM
To: [EMAIL PROTECTED]
Subject: [PHP] how to acess php array var in Js?
If I have a series of checkboxes like this:
input type=checkbox name=cb[]
Is it possible to compile and make it work under linux
without any changes?
I mean is there a --with-apache2 or something?
--
-
Lars
When mailing me, remember there is no truth in my mail!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Warning
Unable to process data:
multipart/related; type=multipart/alternative; boundary=_ABC1234567890DEF_
There is no need to reinvent the wheel here. MySQL has a built in function
to do exactlywhat you want to do.
Check out LOAD DATA INFILE here: http://www.mysql.com/doc/L/O/LOAD_DATA.html
Fred
Yoed Anis [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hey Guys,
Hi Lars,
I can't get the 2 to compile together. I think there's been too many
changes in Apache 2.x.x for php 4.0.6 to work with it. A CVS version of PHP
might work though.
Anyway, if you want to give it a try, configure PHP like this:
./configure --with-apxs2=/path/to/apxs
Ok, this may well turn out to be a total newbie question. But it's got me
stumped.
I'm trying to create a small, simple news system for a personal website.
I've gotten sections to insert the news into the database. but I can't seem
to get it to update itself.
So far I have
?php
Nothing is being updated because $id is empty and in fact is not even set.
You need to pass the id via a hidden form variable in order to get the
results you expect.
In the future I suggest always debugging your scripts by echoing your
variables so that you can determine if they contain what you
Im new to PHP and am trying to upload images to the server and store the
file name into mySQL database.. but i dont have a clue how to do this...
all i know is i need to use Input Type=File other than that im lost.
# Function MakeUploadForm()
Also, I've found that if an SQL statement isn't doing what you're expecting
it to do, then echo it out and copy/paste it into the database querier
(mysql, sqlplus, isql, etc). I've found these quieriers give better error
messages than what you get back through PHP
-Original Message-
ok... ive tried this but no go:
-
function UploadImage(){
global $HTTP_POST_FILES;
global $image;
reset($HTTP_POST_FILES);
$pic_file = $HTTP_POST_FILES['image'];
copy ($pic_file['tmp_name'], ../images);
}
FORM ACTION=?php
try changing
Input Type=File Name=$image
to
Input Type=File Name=image
-Original Message-
From: Ryan Stephens [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 28, 2001 4:13 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Newbie Image uplaod question
ok... ive tried this but no go:
Sorry... i changed
Input Type=File Name=$image
to
Input Type=File Name=image
but still no luck. it returns Array as the file name and doesnt upload
the file.
Whats up??
Ryan
Ryan Stephens [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
ok... ive tried
Greetings !
How do I display the directory contents using PHP?
Regards,
DT
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
rf: http://www.php.net/manual/en/features.file-upload.php
$userfile - The temporary filename in which the uploaded file was stored on
the server machine.
$userfile_name - The original name or path of the file on the sender's
system.
$userfile_size - The size of the uploaded file in bytes.
does anyone know ?
pls help me, thanks...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Hi All-
Can anyone tell me if PHP's LDAP functions support server side sorting of
search results as defined in this RFC:
http://www.ietf.org/rfc/rfc2891.txt
Sorting results from LDAP searches in PHP is a pain because of the
structure
of the result array.
Alternatively if anyone has a nice
Deependra B. Tandukar [EMAIL PROTECTED] wrote:
How do I display the directory contents using PHP?
See readdir() in the online manual. I'm pretty sure it even has example
code you could paste in.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/
--
PHP
trongduc [EMAIL PROTECTED] wrote:
does anyone know ?
pls help me, thanks...
Very open-ended, do you have some details? What type of database? Is this
really PHP related? The short answer is to use a program to generate SQL
statements for all of the source db's tables and pipe the SQL
I haven't read the original message, so this is only a guess.
--with-apxs2
Mick
On Wed, 28 Nov 2001, Larz wrote:
Is it possible to compile and make it work under linux
without any changes?
I mean is there a --with-apache2 or something?
--
-
Lars
When mailing me, remember there
i have created a program that allows users to make custom sql queries to
a mysql db and display the output to the browser.
the program works as desired but what i would like to do is display the
data in a table.
as there can be up to 4 columns with up to 13 different titles, i cannot
hard code
Ñ°ÇóÒ»¸öºÃµÄÓòÃû¡¢¸ßËÙÎȶ¨µÄ¿Õ¼ä?
ÄǾÍÇëÄúÀ´ÕâÀï¿´¿´°É£º
http://www.now.net.cn ʱ´´ÍøÂ磡
¡î ÂÊÏÈÖ§³ÖJSP ¼°×îбê×¼JDBC Êý¾Ý¿â£¬ÍêÈ«½â×¼ÖÐÎļ°Êý¾Ý¿âÖÐÎÄÎÊÌâ
¡î ¶àÖÖ¶¯Ì¬½Å±¾°üÀ¨ ASP£¬PHP,CGI £¬PERL5.6 ,JSP,Servlet ,
»¹ÓпìËÙCGI £¬¿ìËÙPERL£¨fcgi)Ö§³Ö£¬ PHPÒ²´ø×îмÓËÙÒýÖ¿£¡
Hi,
I need to display hierarchies (hierarchical structures). I have a MYSQL
table with data like this:
Node,Parent
A,
B,A
C,A
D,B
E,B
F,D
G,A
It can go down to 10 levels.
I do not want display one level and then click to display the next, I want
to see the entire tree at once, say like this:
Could Anybody help me ?
I have the problem with installation of my PHP and Apache Web Server running on OS AIX
Version 4.3! and use RDBMS Oracle8i Enterprise Edition Release 8.1.7.0.0.
When I installed them, founded any error.
I use the downloaded sources are
Hi,
I originally posted this message to the php-db list, but I think that
although this seems originally an oracle related problem ... there must
be a PHP solution to it.
What I'm looking for is a way to detect and destroy or interrupt a
blocking function. Below, in the example in the
$filename = 'kunden/'.$name.'.png';
I see this all the time and I'm curious: what takes more
computing power (granted, either would be incredibly little
I'm sure, just curious which requires more work by PHP)?
this:
$filename = this . $varname . that;
or this:
$filename = this $varname
I use the latter style, because otherwise my syntax highlighting doesn't
kick in.
$filename = this $varname that; # $filename is in blue, the
rest is in green
$filename = this. $varname. that; # $filename and $varname are in
blue, the rest is in green
I've done it so much now
88 matches
Mail list logo