-Original Message-
From: Erwin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 12, 2002 11:02 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Displaying PDF file
Joseph Szobody wrote:
Thanks Erwin, that helps but I'm still not getting it to work.
Should I still use the
code snippet
if ($post == post) {
postBlog ($post,$input,$title);
}elseif ($post == edit){
updateBlog ($input,$edit_post); // BINGO!
}
/code snippet
Just looking at the code you posted to your site, there's only one thing
obvious to me: You want
You are absolutly correct.
Thx!
=P e p i e D e s i g n s
www.pepiedesigns.com
Providing Solutions That Increase Productivity
Web Developement. Database. Hosting. Multimedia.
On Thu, 12 Sep 2002, Chris Boget wrote:
The above process works, as far as replace the place holders, and
I am trying to get a script to work to retrieve data from a MS SQL database.
I also tried using a ODBC connection, but that didn't work either.
Here is the error I get;
Warning: MS SQL: Unable to connect to server: LocalServer in
C:\WEBS\CTTechCouncil\stocks\mssql.php on line 7
Hi,
I wrote a command line script which makes some administration things on my server.
The script is setuid (set uid to root).
I call the script simply through its name.
I've put a print getuid(). .get_current_user(); in the script to see under
which
user it is running.
When I su to
Yes, but how do you format the information that comes back out of the
whois? I'm doing this:
?
$whois = system(whois [EMAIL PROTECTED]);
print pre$whois/pre;
?
But all the information is shown as one big line, no breaks or anything.
How would I do this so it showed properly formatted
try with p /p and see if that works.
Adam
On Thu, 12 Sep 2002, Tom Ray wrote:
Yes, but how do you format the information that comes back out of the
whois? I'm doing this:
?
$whois = system(whois [EMAIL PROTECTED]);
print pre$whois/pre;
?
But all the information is
Hello,
maybe someone can help me.
i have specified the *.PFB and the *.AFM file. this all works
by setting the encoding to
pdf_set_font(the_typo_name,size,winansi,1);
i got the error :
Warning: Internal PDFlib warning: Can't reencode Symbol font
'TheSansBold-Caps' (using builtin) in
Nope still comes up with everything in one big line. I'm running through
different options right now..but I'm tired and my brain is starting to
hurt :)
Adam Williams wrote:
try with p /p and see if that works.
Adam
On Thu, 12 Sep 2002, Tom Ray wrote:
Yes, but how do you
try using nl2br() on it before you print it.
Adam
On Thu, 12 Sep 2002, Tom Ray wrote:
Nope still comes up with everything in one big line. I'm running through
different options right now..but I'm tired and my brain is starting to
hurt :)
Adam Williams wrote:
try
HI,
I am trying to use a script php with the command:
system(mkdir /home/hosting/test);
but the PERMISSION IS DENIED and I am the root on my server.
How I change the user to root?
Thanks
--
Atenciosamente
Breno Cardoso Perucchi
[EMAIL PROTECTED]
Consultor - Omega Tecnologia
Hi,
I've got a local test machine running WinXP Pro SP1 with PHP 4.2.2 and
Apache 1.3.26. What I'd like to do is change the include_path settings for
PHP in a .htaccess file (as I have several sites being tested on this
machine and do not wish to have to edit the php.ini in my Windows
you don't. php/apache run as the user nobody for security purposes.
Adam
On Thu, 12 Sep 2002, Breno Cardoso Perucchi wrote:
HI,
I am trying to use a script php with the command:
system(mkdir /home/hosting/test);
but the PERMISSION IS DENIED and I am the root on my
I know, but how I change to root user?
--
Atenciosamente
Breno Cardoso Perucchi
[EMAIL PROTECTED]
Consultor - Omega Tecnologia
http://www.omegatec.net/
Adam Williams [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
you don't. php/apache run as the user nobody
hi - i have a text file that i am using as a database. the format for
each line is such (2 lines shown):
Fashion|508|Text Text
Text.|http://qtbras.com/qtbrascat/images/508_big.jpg|http://qtbras.com/qtbrascat/images/508_thumb.jpg
Fashion|510|Text Text
Hi I'm runing a PHP Version 4.0.4pl1 on Solaris 8 X86 on apache, and I'm
trying to search an array
while(list($findId) = mysql_fetch_row($resultNextLast)){
$NextLast[] = $findId;
}
$currArrayPos = array_search($ImgId, $NextLast);
and this code results this error:
Fatal error: Call to
On Thu, 12 Sep 2002, Breno Cardoso Perucchi wrote:
system(mkdir /home/hosting/test);
but the PERMISSION IS DENIED and I am the root on my server.
How I change the user to root?
Dude, you don't change to the root user ... you'll get yourself owned that
way. Change the permissions on the
Hi I'm runing a PHP Version 4.0.4pl1 on Solaris 8 X86 on apache, and I'm
trying to search an array
From the manual: array_search (PHP 4 = 4.0.5)
send earlier to this list:
Re: [PHP] Array - Match
From: Bas Jobsen [EMAIL PROTECTED]
To: N. Pari Purna Chand [EMAIL PROTECTED],
[EMAIL
From: Tim Thorburn [mailto:[EMAIL PROTECTED]]
Yes, I had tried the forward slashes before and I just tried
to escape the
backslashes as you thought - sadly neither have worked :(
From the Apache site:
Since it is often difficult to manage files with names like .htaccess under windows,
BTW:
AccessFileName directive
Syntax: AccessFileName filename [filename] ...
Default: AccessFileName .htaccess
Context: server config, virtual host
Status: core
Compatibility: AccessFileName can accept more than one filename only in Apache 1.3 and
later
When returning a document to the client
I'm running PHP 4.1.2 and am looking for information on doing an HTTP post
action from PHP to another web server using SSL (and capturing the
response). I've searched the online docs to no avail. Can somone point me in
the right direction?
__
Lon Lentz
Applications
What I was looking for was finding out what was the index of thet
value, lets say I have a array with some values like (23, 56, 45, 47)
and i don't know where the walue I'm looking for is indexed in the array
and I want to find out what the indexnumber is, how would that be
possable
?
I've never done this, but I understand that curl is supposed to offer
support for SSL.
http://www.php.net/manual/en/ref.curl.php
The manual looks a bit weak in this regard, but maybe that will give you
a decent starting point. If someone else has an example, that would be
more useful.
Happy
Doing stuff with || is always a good way to stuff up. In the case of
your example it will always evaluate to true.
if ($A != $C || $B != $C) {
I think, but im fairly new
This would work if you did this:
If (!($A == $C || $B == $C)) {
In perl, I would do this:
unless ($c =~
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On September 12, 2002 09:47, Magnus Solvang wrote:
I'm used to the unless-statement in perl... How do I do this:
if string A or B are NOT in string C, then do something and quit.
In perl, I would do this:
unless ($c =~ /$a|$b/) {
blabla
Try using an unique number as the first field of the line.
You can then use that number to select the line (entry) and update it.
Kumar
drparker wrote:
hi - i have a text file that i am using as a database. the format for
each line is such (2 lines shown):
Fashion|508|Text Text
I'll second that - It's a truly professional solution.
[even has a full user manual]
Here are a couple articles you might want to checkk
out:
http://www.devarticles.com/content.php?articleId=126page=1
http://www.devshed.com/Server_Side/PHP/CommercialBreak/page1.html
olinux
--- Seán_Dillon
Does anyone know why the following script will not rebuild one of my
sendmail databases?
?
exec('/usr/sbin/makemap hash /etc/mail/virtusertable.db
/etc/mail/virtusertable');
exit;
?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Why would you convert them to PDF on the fly??? If you wanted to show
really hi-res images, yes PDF would result in *slightly* smaller files, in
*some cases*, but for standard web stuff, why not consider the humble
compressed JPG? Whatever format, the file is gonna be huge if they're
trying to
This message sounds as though I want a system that checks email, etc.
That is not what I'm after. What I'm trying to do is make a system
where users can mail each other, using a mysql database.
Leif K-Brooks wrote:
I'm designing a site, and I want to put mail with folders on it.
Fairly
I am trying to copy *.log files to a file called dir.data. Does anyone have a
suggestion on the php code to use? I am using Redhat 7.0. Using ls *.log dir.data
doesn't work.
Also does anyone know how to insert a text on about the 4 or 5 line of a file using
php? I can add text to the end of
hi there @php.net,
please, can you help me enabling the extensions in php?
i tried for hours to accomplish the right settings, but it seems, the
solution is out
of reach. you'll find a mini screenshot of my error message so you'll see
exactly
what i mean.
machine details: php v4.2.3, apache
Breno Cardoso Perucchi writes:
HI,
I am trying to use a script php with the command:
system(mkdir /home/hosting/test);
but the PERMISSION IS DENIED and I am the root on my server.
How I change the user to root?
If you /really/ want to use this, use a C wrapper that's setuid root.
llclmc writes:
I am trying to copy *.log files to a file called dir.data. Does anyone have a
suggestion on the php code to use? I am using Redhat 7.0. Using ls *.log dir.data
doesn't work.
Try: cat *.log dir.data
ls will just give filenames, cat will do the inside of the files.
Also
Doug Kozar writes:
Does anyone know why the following script will not rebuild one of my
sendmail databases?
?
exec('/usr/sbin/makemap hash /etc/mail/virtusertable.db
/etc/mail/virtusertable');
exit;
?
Check your httpd logs. I'd be willing to bet it's a permissions issue as
A working solution to the whois question
?
$whois = `whois [EMAIL PROTECTED]`;
print pre$whois/pre;
?
Notice those are back ticks, not single quotes. This will give youthe
information you need, and the pre tag puts it out in the proper format
for you.
yasin inat wrote:
Thanx friends
php-general Digest 13 Sep 2002 05:32:35 - Issue 1582
Topics (messages 116175 through 116232):
Re: local and global variables
116175 by: Neophyte
Re: whois query
116176 by: yasin inat
116202 by: Tom Ray
116203 by: Adam Williams
116205 by: Tom Ray
Hi,
I'm trying to convert a formated datetime string into a timestamp.
The string format is Y-m-d H:i:s. I use strtotime() to convert the
datetime string. However, the converted datetime seems lost its
time part. Is there any easy solution to make the converting?
Thanks in advance!
Alex
--
101 - 138 of 138 matches
Mail list logo