>
> and for this i need to splitt the title retrieved from db to two
> strings ..
>
$array = explode( "/r/n", $stringToSplit );
print $array[0]; //first part
print $array[1]; //second part
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Chris, not sure if this is related to my question aka mysql_pconnect
>
> are u using mysql_pconnect or plain mysql_connect to connect to the
> database? This is the behaviour I'm getting, but with
> apache1.3.27/php4.3.2/mysql4.013
>
that was my first question to the guy who originally developed
OS: Win 2k
Web Server: Apache 1.3.27
PHP: 4.1.2
MySQL: 3.23.39
really can't tell if this is a coding issue, a software issue, or just a
random bug somewhere...
basically we have a fairly large intranet, serving up several thousand
pages/hits everyday to mainly mac/pc users. somewhere, in all this
you should be able to ... in word ... open up the html page from word
itself, and then save it as a word doc... thinking in my head, soemthing
along the lines of...
$file="bios.html"
$word=new COM("Word.Application") or die("Cannot start word for you");
$word->visible =0 ;
$word->Documents->Open($
so i have something like this...
$xlsFile = $_FILES['fileupload']['tmp_name']; //the file we're reading is
the one we just uploaded
$conn= new COM("ADODB.Connection") or die( "did not connect" );
$conn->Open("Driver={Microsoft Excel Driver
(*.xls)};DBQ=$xlsFile;ExtendedProperties=Excel 8.0;");
Can you not run your external programs in a batch file? Or will that
also run under "cmd /c" ?
chris kranz
fatcuban.com
-Original Message-
From: Dave Marr [mailto:[EMAIL PROTECTED]
Sent: 24 March 2003 18:15
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Unable to Fork error using
.
Just an idea...
chris kranz
fatcuban.com
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 24 March 2003 21:30
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Can't get domxml working
Hi everyone!
I've been trying to include php_domxml.dll for quite
ly
running php.exe for this one script, you might also consider making a
custom php.ini file and putting it in with the php.exe folder. Although
if you use php on your webserver on the same machine, this wouldn't be
worth doing...
chris kranz
fatcuban.com
-Original Message-
From: Mi
I've used COM objects to write to Excel spreadsheets and had no-end of
problems. But never tried reading from it, well, did minimal reading to
find the next blank cell, so I guess it would be much the same. It's
pretty simple stuff using the COM object to access it tho.
chris kranz
fa
$path_to_file = "http://www.yourwebsite.com/pdf/this_file.pdf;
If( file_exists( $path_to_file ) )
{
//do stuff
}
chris kranz
fatcuban.com
-Original Message-
From: Herhuth, Ron [mailto:[EMAIL PROTECTED]
Sent: 11 March 2003 16:43
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] te
Something like...
$array_length = count( $myArray );
$myArray[$array_length + 1] = $new_data;
This what your after? I think there might be a function for this tho,
but I'm a bit thick :p
chris kranz
fatcuban.com
-Original Message-
From: Matt Babineau [mailto:[EMAIL PROTECTED]
Or...
Extension_dir = c:\php\extensions
I think as default they've unpacked there?
Not meaning to split hairs :p
chris kranz
fatcuban.com
-Original Message-
From: J.Veenhuijsen [mailto:[EMAIL PROTECTED]
Sent: 03 March 2003 08:05
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Re: ph
#x27;t make too much
difference to your scripting. It can still be dynamic as you like...
There may be some way of putting the array into the POST_VARS and then
getting JS to read it out of there, but that's just an idea, and I dunno
if that'd be supported at all.
chris kranz
fatcuban.com
PHP won't do this, and
you quickly get a flooded machine with no memory or CPU power :p
chris kranz
fatcuban.com
-Original Message-
From: Michael Power [mailto:[EMAIL PROTECTED]
Sent: 28 February 2003 11:58
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Re: destroying COM objects
&g
empting to write a null string, which
apparently gives an erro :)
Thanks for the help anyway ;)
chris kranz
fatcuban.com
-Original Message-
From: Sven Schnitzke [mailto:[EMAIL PROTECTED]
Sent: 26 February 2003 09:30
To: 'Chris Kranz'
Subject: AW: [PHP-WIN] file write issues...
very good resources in there.
chris kranz
fatcuban.com
-Original Message-
From: Jeremy Whitlock [mailto:[EMAIL PROTECTED]
Sent: 25 February 2003 17:13
To: PHP
Subject: [PHP-WIN] File Upload Help Needed
PHP List,
I'm new to PHP and I'd like to create a Fil
ave... This will only upload txt
or html files... But it will display the file properties even if the
file is denied. Also has a file size limit of about 10k. This is a cut
down script of something straight of my website, and that runs on both a
win xp box, and a linux box. Only difference is $home_d
ailes". dunno why. tried changing it to fputs,
and also added the touch line in there incase it was having trouble
creating the file... which it's not, coz the file gets created fine.
any help please? :)
chris kranz
<http://www.fatcuban.com/> fatcuban.com
http://www.php.net/manual/en/features.file-upload.php
Surprisingly enough, straight from the manual ;)
chris kranz
fatcuban.com
-Original Message-
From: Jeremy Whitlock [mailto:[EMAIL PROTECTED]
Sent: 25 February 2003 17:13
To: PHP
Subject: [PHP-WIN] File Upload Help Needed
PHP
Also check the max upload size, and the max post size in your php.ini
files. These will also effect what and how much you can upload.
Not sure how to check the filesizes before you upload. That's something
I'd find useful...
chris kranz
fatcuban.com
-Original Message-
You also need the file php4ts.dll in either the apache directory, the
windows root, or in the path directive...
chris kranz
fatcuban.com
-Original Message-
From: Luis Ferro [mailto:[EMAIL PROTECTED]]
Sent: 18 February 2003 15:07
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Problems
ver record your currently on, and it should be fairly straight
forward...
Hope this helps anyway...
chris kranz
fatcuban.com
-Original Message-
From: Matt Babineau [mailto:[EMAIL PROTECTED]]
Sent: 17 February 2003 15:03
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] < Previous and Next >
Ah, missed this when I first looked at your problem.
If you can't change register_globals in the php.ini file, try using
$_GET[mod]
instead of $mod
chris kranz
fatcuban.com
-Original Message-
From: wisi [mailto:[EMAIL PROTECTED]]
Sent: 10 February 2003 03:57
To: [EMAIL PROT
This may just be me, and I could be wrong, but I've had problems with
relative paths and such using windows boxes before. Windows had always
been an ass to me on this.
You may need to try specifying the directory absolutely.
Are you getting any error messages?
chris kranz
fatcuba
server once a month to try some
scripting, then maybe PWS is better, as you don't have to run it as a
service all the time, but if your gonna be doing stuff all the time,
again, IIS is a better bet.
Hope this helps...
chris kranz
fatcuban.com
-Original Message-
From: m1nt ch3w
Checkout the stripslashes() and addslashes() functions. Very cool for
stuff like this, and very easy :)
chris kranz
fatcuban.com
-Original Message-
From: Per Lundberg [mailto:[EMAIL PROTECTED]]
Sent: 12 February 2003 09:00
To: Bobo Wieland
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN
scripts
on my live server, that's just asking for trouble, especially if you
make a mistake... (thinks back to his recursive directory delete
function)
Hehe :)
chris kranz
fatcuban.com
-Original Message-
From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED]]
Sent: 11 February 2003 15:
tell you what the code would be?
chris kranz
fatcuban.com
-Original Message-
From: George Pitcher [mailto:[EMAIL PROTECTED]]
Sent: 11 February 2003 11:59
To: Svensson, B.A.T. (HKG); [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] reading lines from a file
Yes, I suppose I do.
I want to be ab
Sorry... I think I'm going blind :p
chris kranz
fatcuban.com
-Original Message-
From: news [mailto:[EMAIL PROTECTED]]
Sent: 10 February 2003 16:49
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] I get a "File Download" dialogue box
I am trying to configure run PHP4 on Apach
Need a bit more info to say for sure...
But check that PHP is setup properly on the web server, follow the
install instructions...
What server you running? Have you followed the config instructions
fully?
chris kranz
fatcuban.com
-Original Message-
From: news [mailto:[EMAIL PROTECTED
are
loaded every time the script is run.
I've tried several different methods of closing it, that's why this code
is a little longer than the examples around...
Code:
...
$ex->Application->ActiveWorkbook->Close("False");
$wkb->Release();
$ex->Quit();
$ex->
Sup:
http://gallery.menalto.com/modules.php?op=modload&name=GalleryFAQ&file=i
ndex&myfaq=yes&id_cat=3&categories=3+-+Gallery+Graphics+Toolkits&parent_
id=0
chris kranz
fatcuban.com
-Original Message-
From: Afan Pasalic [mailto:[EMAIL PROTECTED]]
Sent: Thursday
ybe I was dreaming, but I seem to remember it clearly, that's why I
used NetPBM instead at the time...
chris kranz
fatcuban.com
-Original Message-
From: Afan Pasalic [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 12:19 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sub
Hehe!!!
It's one of those classic terms that spans across many languages and
dates back quite a long time. Whenever I pickup a programming book,
somewhere in there, you'll find the infamous foo and bar...
chris kranz
fatcuban.com
-Original Message-
From: Mikey [mailto:[EMAIL
Also check that your browsing to the files across http://localhost and
not file://c:/www/blah.php
chris kranz
fatcuban.com
-Original Message-
From: Veselina Jecheva [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 21, 2003 9:11 AM
To: Patrick Chemali; [EMAIL PROTECTED]
Subject: Re
move_uploaded_file("d:\\temp\\" . $_FILES['userfile']['tmp_name'],
"d:\\blah.txt");
see if that creates a file called blah.txt
if it does, then you gonna have to name your file, rather than just tell
it d:\
chris kranz
fatcuban.com
-Original Message
copies to
as an absolute directory. Windows doesn't handle relative file copies
too well. It's caught me out on that a few times. TBH, not sure on all
the syntax, as I do things very differently... a lot simpler to be
honest...
Good luck...
chris kranz
fatcuban.com
-Original Message--
For starters.
$username = $_POST['username'];
in your form, you declare name, not username
is this code you've given from the page login.php? is it simply
submitting to itself?
chris kranz
<http://www.fatcuban.com/> fatcuban.com
-Original Message-
From: Ad
Make sure you have global variables set on in your php.ini
If you can't change this, then try doing $_POST['variable name'] to get
the form fields...
Unless your submitting your form using GET ofcourse, then use $_GET
chris kranz
fatcuban.com
-Original Message-
Fr
Make sure your browsing to the file thru your webserver...
http://localhost/test.php
and not locally...
file://c:/www/test.php
for instance... other than this, I've had this problem, but it was
configuration errors in httpd.conf. double check everything in here...
chris kranz
fatcuba
surely if headers had already been sent, it would give an error telling
you so. In my files, the page is displayed properly, in full, with no
errors... but cookies are missing from the server and being sent.
chris kranz
fatcuban.com
-Original Message-
From: Neil Smith [mailto:[EMAIL
I've had the same problem myself. Seems to happen with a default install
of IIS 5 etc. etc.
I've changed the php.ini so it should create and save the cookies, but
it just ignores them.
Sorry, no solution, I just made workarounds :(
chris kranz
fatcuban.com
-Original Message
search, you could have a script to
index and categorise each page first. Pull out text and stick in in the
database with relations to what colour it is for instance. Would make
your actual search script run a lot faster that's for sure...
chris kranz
fatcuban.com
-Original Message-
From
Line numbers...
Colours are nice, but I like it simple. And line numbers are about as
nice as I like :)
I pretty much stick to dreamweaver MX, but I disable most of the crap in
it. Just plain line numbers, and some colouring :)
Suites me just fine!!!
chris kranz
fatcuban.com
-Original
44 matches
Mail list logo