hey-
I'm writing my band's website mostly in PHP. My original idea was to use a
switch statement to compensate for all the different functions i would need
to use, for example a function to stream songs, download songs, display
links, display shows, etc...
I wanted to have all these functions on
"Chris Cocuzzo" <[EMAIL PROTECTED]> wrote:
> I wanted to have all these functions on one master page called index.php,
> and then have one of the functions within my switch statement be used for
> display each individual page. So this function would include each separate
> php file, and then basic
i wrote a little subroutine to make a directory full of
images into thumbnails...
it'll make thumbnail images of a specified height and width
and properly resize the original image to preserve the
height to width ratio.
the syntax of make_thumbs() is this:
make_thumbs($imagedir, $thumbsdir, $siz
i'm geting this error while compiling php
any ideas?
> Making all in TSRM
> /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
> -I../main -DMOD_SSL=208104 -DEAPI -DEAPI_MM -DUSE_EXPAT -DSUPPORT_UTF8
> -DXML_BYTE_ORDER=12 -g -O2 -c TSRM.c
> /bin/sh ../libtool --silent --mo
Chris Cocuzzo wrote:
>hey-
>
>I'm writing my band's website mostly in PHP. My original idea was to use a
>switch statement to compensate for all the different functions i would need
>to use, for example a function to stream songs, download songs, display
>links, display shows, etc...
>
>I wanted
Hey Everyone.
This isn't a request for code or help, just thoughts and ideas.
I've recently been asked to bring along some code examples for a job
interview I will be heading to this week. This was the exact request "The
sample does not have to be within any particular language, but something
th
Hey guys,
I come for advice once again. Say i have a file dbconnect.inc which
connects to my database. Now if this file is located in a directory
accessible for to the web is there anyway that if someone types in that file
i can detect it being accessed, instead of included, and redirect them
What's the job position? And the company style? The sample you should
leave depends on the requirements and type of experience needed, and the
company area of work (ie, development of e-commerce sites)
For example if it is a programmer/webdesigner for a company that does a
lot of community we
>In a nutshell, you've just described the 'fusebox' method. Originated
>under Cold Fusion, there are
>movements to port this style to PHP and ASP, and probably other platforms.
>
>It's not bad, but personally, I think it's a bit weak in some cases -
>we've taken it a step further in house,
>b
How do I put my password into an external file?
I have dozens of webpages with the line
mysql_connect (localhost, username, password);
What if I have to change my password? Rather then change dozens of scripts,
I want to put this line into an external file and call it with "include".
The
For the most part, anything that is reusable and modular they like. They
also love people who know a buncha languages and would use the best one that
fit the current project so bring a variety.
-Original Message-
From: JCampbell [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 09, 2001 3:0
I would say get a function or several functions that are indictatiave of
your style and solve a fairly complex problem in an elegant way. I
don't think thousands of lines of code will be necessary.
Michael
JCampbell wrote:
>Hey Everyone.
>
>This isn't a request for code or help, just though
You could also bring with you someone else's code :-).
Frankly speaking, if I interview programming candidates, I define a couple
of practical problems to see what kind of background they have, how to solve
it, the thinking process is as important as the final result. If someone
gives a stock ans
>I come for advice once again. Say i have a file dbconnect.inc which
>connects to my database. Now if this file is located in a directory
>accessible for to the web is there anyway that if someone types in that file
>i can detect it being accessed, instead of included, and redirect them
>elsew
Thanks for all of your help on this. My host admin have informed me that
php is installed only for the web, and not as a cgi, so that's what was
going wrong (it wasn't down to my own naievity afterall.)
So, it's time to learn perl (or bash).
Thanks again for all your comments and help.
Jam
I've started experimenting with XML, by having my blogging script output the news to
XML [http://php.techno-weenie.com/supasite/xml/supa.xml]. I've tried transforming it
with an XSL stylesheet [http://php.techno-weenie.com/supasite/test.xsl] to get this
output [http://php.techno-weenie.com/sup
You can still run php... I put my cron scripts in a directory on the web
server, just makes sure they are all safe to run multiple times in case
someone finds it
then make a script that for each entry in that directory invokes the script.
mines in python so you just
import urllib
and then for
Hi Noah,
if you make the include file a .php file, then the browser will parse the
code as a blank page whether or not they choose to look at the file, or
try to fopen(etc) it. Problem solved ;) At least I think that's
safe-ish...
James.
"Noah Spitzer-Williams" <[EMAIL PROTECTED]>
> Thanks for all of your help on this. My host admin have
> informed me that
> php is installed only for the web, and not as a cgi, so that's what was
> going wrong (it wasn't down to my own naievity afterall.)
>
> So, it's time to learn perl (or bash).
If you have disk sp
Have the script dump the envoirnment vars to a file and compare the
variables from a user vs include because some of those variables apache gets
from a browser, off the top of my head REMOTE_ADDR should work, that wont be
set when you include. So just die() if its set. - Russ
-Original Mes
put tags around the file you include, and it
will parse it as PHP =>
I'm doing this now. I have a bunch of files in a subdir
of the published directory, that contain functions and
definitions to do these things, and I include them at
the beginning of each file. But, you do need
tags around th
Someone yesterday also suggested putting them in a
web-accessible location, but having lynx come by and run
them.
That seemed pretty cool =>
Good luck,
Ben
Quoting "Chadwick, Russell" <[EMAIL PROTECTED]>:
>
> You can still run php... I put my cron scripts
> in a directory on the web
> server,
Ok, heres one for y'all
I have the user entering a free formed string (such as a search engine
query).. and i want to parse that string into an array of string elements...
If the user enters elements within double quotes, that would appear as one
entity.. for each word outside of containing q
on 7/9/01 6:00 PM, JCampbell at [EMAIL PROTECTED] wrote:
> Hey Everyone.
>
> This isn't a request for code or help, just thoughts and ideas.
>
> I've recently been asked to bring along some code examples for a job
> interview I will be heading to this week. This was the exact request "The
> sam
hi!
Is there a way to 'include' a perl script in a php page??
example..
I have a php page that executes another php script (poll).. to make that I
used the command.. Is there a command or something that
makes that php page execute a perl script (.cgi) ??
thanks!
--
PHP General Mailing List
if you just want to run the script
system("/path/to/whatever");
if you want its output
fopen ("/cgi-bin/whatever.cgi");
if you want the perl script to set variables or anything you'll have to
write something that reads the output from fopen and assigns them. Or if
you trust this server (dont d
Hi All,
I am creating a page which a user enters an e-mail message in, then the
message is stored in a field of a database. I need to parse some
information from that message first, like the To line and such. Anyone got
any snippet of code for doing this ? Thanks
JG
--
PHP General Mailin
Try this:
first test to see if the query contain quotes, if it
does, go to a seperate routine that splits the string
into an array, first however, you must make sure there
is a space before the query and one after the query (
you add these) *then* split the string into an array,
explode on the qu
ok, so it may be weak, but that's not really my question. If you think it's
not so good, what steps have you taken beyond just the basic fusebox code
architecture, and what OTHER methods would you think of using if you were in
my situation.
I figured it would make sense to have all functions on o
How about DVDs? Unfortunatly, sitting at work right now, i'm not able to
pick up a stack of dvd's and look for a unique number.. Do they have ISBN?
is there a central repository to search for pertinant info (and parse it)?
just wondering,
Aaron
- Original Message -
From: "Chris Lott" <[EMA
I just found out :P
I used command and it worked! :)
Ajuco <[EMAIL PROTECTED]> escreveu nas notícias de
mensagem:[EMAIL PROTECTED]
> hi!
>
> Is there a way to 'include' a perl script in a php page??
> example..
> I have a php page that executes another php script (poll).. to make that I
> used t
I have a form that requires a user to enter various information (name,
address, phone number, etc...). When they submit this form, the next PHP
page checks to make sure that the required fields were filled in. What I
would like to do is check to see if the required fields are all filled in
and i
Why just not use seperate fields that you fill from individual form
elements?
- Original Message -
From: "James Greene" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 09, 2001 7:35 PM
Subject: [PHP] Parsing a message
> Hi All,
> I am creating a page which a user enter
Hi,
I'm doing a polling side and I'm wandering what way I should save the
result, should I save each record in MySQL or should I save only the
total value in a text file each time I get vote? So, can anyone of you
experts advice me what way I should go? The traffic is only 100-500 hits
per day.
To prevent locking issues and general db clogging. Any table that stores
votes or hits or anything that may do several transactions / second...
INSERT the data into a temporary table, and then put in a cron job which
will UPDATE your actual table with a count of whats in your temp table.
So for
On Thu, 1 Jan 1970 09:30, [EMAIL PROTECTED] wrote:
> >I come for advice once again. Say i have a file dbconnect.inc
> > which connects to my database. Now if this file is located in a
> > directory accessible for to the web is there anyway that if someone
> > types in that file i can detect i
Hello all,
I am writing an app using PHP that sets two cookies - a username and
password cookie to control a user's session. These cookies are set
every time a page is loaded and expire after a period of time (half an
hour at the moment). Some pages that are displayed contain sensitive
info
the way i would do this is to have the form validation on the same page as
the form
and when user input has been validated the require another script (keeps
global variables)
you could try something like this
user_input must = ok ";
}
?>
hope this helps
nicko
At 05:10 9/
Hi all,
Is there a simple way to encrypt session variables. If so, is there a method
to 'decode' the encrypted session variable when required?.
Thanks in advance,
Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
$session_id + 1 before passing it, and then
$session_id - 1 before using it on the next screen
... thats the security through obscurity way :)
you could put the session_id in a mysql db and then select
password(session_id)
that would return something really obscure
and then select session_id w
i have attached the below script to stop the html being parsed
is there another way around this?
At 11:01 10/07/01 +1000, Nick O'Reilly wrote:
>the way i would do this is to have the form validation on the same page as
>the form
>and when user input has been validated the require another scrip
Make an MD5 hash using the session variable. Make it again (with the same
seed) before using it, if the hashes don't match, it's been messed with.
You can store the hash in a MySQL DB, pass it on the URL, write it out to a
local file, all kinds of things...
-Original Message-
From: Brad
Dear all,
If i want to use id field in Oracle database, how can i do?
For example, in MySQL
create table test (
id int not null auto-increment primary key,
ten char(10));
So that, when i insert a new row into MySQL database, id increases by 1.
But in Oracle i couldn't use as that.
Somebody could
Is there a published spec of the format of the session data string?
It would greatly simplify one of my applications if I could share data
between PHP and Perl using sessions. Since I use MySQL to store session
information, it would be trivial for me to make a call to a Perl script
with a ses
> Is there a published spec of the format of the session data string?
>
> It would greatly simplify one of my applications if I could share data
> between PHP and Perl using sessions. Since I use MySQL to store session
> information, it would be trivial for me to make a call to a Perl script
> wi
Tyrone,
> Make an MD5 hash using the session variable. Make it again (with the same
> seed) before using it, if the hashes don't match, it's been messed with.
I'm sorry, I'm not sure what an MD5 hash is. Could you elaborate and/or
point me towards some documentation.
Thanks,
Brad
--
PHP Ge
I thought of this, but have the following reservations:
1. It seems cleaner to implement this on the Perl side since it will be
a fairly uncommon requirement.
2. I don't like to mess with working applications (other
session-enabled PHP apps on the server).
3. I have as yet been unsuccessful
Hi,
I want to develop one payment site, where people will pay their tax. The
payment is made through the payment gateway. But database entries are on
local machine. From these database entries I am generating reports which
need to encrypt and send it through mail or keep for download (which on
> 2. I don't like to mess with working applications (other
> session-enabled PHP apps on the server).
Well, you can set it on a per-directory basis in your httpd.conf file.
> 4. WDDX as a session serializer is likely significantly less tested
> than the native serializer, and this is not the t
Hi,
It's not really very trivial. But since I don't PHP
sessions that much I might be incorrect, however if
you're not wanting to use WDDX, you'll probably have
to dawn some light on the raw sessions.
Shifting control across processes is fairly simple, in
the UNIX environment, and executing anot
On Monday 09 July 2001 06:11 pm, Noah Spitzer-Williams wrote:
> Hey guys,
>
> I come for advice once again. Say i have a file dbconnect.inc which
> connects to my database. Now if this file is located in a directory
> accessible for to the web is there anyway that if someone types in that
> fi
> > I come for advice once again. Say i have a file dbconnect.inc which
> > connects to my database. Now if this file is located in a directory
> > accessible for to the web is there anyway that if someone types in that
> > file i can detect it being accessed, instead of included, and redirect
I usually have a directory called html where all my php files are and
secure where any secure stuff (like db connects) reside. Then, all I do
is include the file
require('../secure/secure.inc');
Obviously html maps to a web server path but secure doesn't.
Mark
John Weaver wrote:
>On Mond
On Tuesday 10 July 2001 12:02 am, Rasmus Lerdorf wrote:
> > > I come for advice once again. Say i have a file dbconnect.inc which
> > > connects to my database. Now if this file is located in a directory
> > > accessible for to the web is there anyway that if someone types in that
> > > file i
on 7/10/01 12:30 AM, John Weaver at [EMAIL PROTECTED] wrote:
>
> Sorry, I should have been more clear. If you write modular code, your
> included file will be nothing but a group of functions. Call a file with
> nothing but functions in it and you get; . I can't
> see the security problem you
Hmmm, I was wondering about security of PHP also. Does anyone know the
general issues of security within PHP documents? My thought is that PHP
cannot be seen when you view a source anyway, so isn't it secure enough
(besides the basic firewall and system security)?
-Original Message-
From:
Is there a way using PHP to easily strip white space out of an html page as
it's being sent to the client. That is to say, the page that we as
developers work on is nicely formatted, indented, etc. but when it's sent
out to the client, PHP will remove all the extra white space both to
obfuscate t
Hi,
I take that you simply want to remove ALL whitespaces
from a data block (variable).
you could simply use str_replace(" ", "", $var);
--- Kurt Lieber <[EMAIL PROTECTED]> wrote:
> Is there a way using PHP to easily strip white space
> out of an html page as
> it's being sent to the client.
on 7/10/01 1:01 AM, Navid A. Yar at [EMAIL PROTECTED] wrote:
> Hmmm, I was wondering about security of PHP also. Does anyone know the
> general issues of security within PHP documents? My thought is that PHP
> cannot be seen when you view a source anyway, so isn't it secure enough
> (besides the
You can't do that...deleting ALL spaces will screw up your content...
Try str_replace("\n","",$var) to strip newlines, then a
preg_replace("/\s+/"," ",$var) to strip all multiple spaces down to
one...
Haven't tested this syntax, but should be about right...
jack
-Original Message-
From:
nope -- I want to completely suppress any extraneous white space characters
(tabs, spaces, etc.) in the HTML as it's being delivered to the client. So,
where your source file might look like:
Hello World!
The client will receive the HTML as:
Hell
What am I missing hear all I what to do is see if the domaname is
in the database and if it does print the error message if does not then
just move on without doing anything
$db = MYSQL_CONNECT($roothostname,$rootusername, $rootpassword) OR DIE("Unable to
connect to database");
mysql_select_db(
um...I believe your query will return results if there is a match, but your
error message will only display if there is no match. !$result will only be
true if there are no records returned on your query, meaning that the domain
name doesn't exist. From your error message, I'd say that's not wha
On 09-Jul-01 Steve Edberg wrote:
> Here's one way:
>
>
> $dir = opendir('.');
> unset($FileList);
>
> while ($file=readdir($dir)) {
>
> if($file!= '.' && $file != '..')
> {
> $FileList[] = $file;
> }
>
> }
>
> sort $FileList;
> reset($FileList);
>
> while(list(, $F)
On Tue, 10 Jul 2001 14:37, Richard Kurth wrote:
> What am I missing hear all I what to do is see if the domaname is
> in the database and if it does print the error message if does not then
> just move on without doing anything
>
>
> $db = MYSQL_CONNECT($roothostname,$rootusername, $rootpassword)
Hi all,
i want to have a submit button on a page that has a php function (on the
same page) as the action.
ie.
so when the 'Use functionA' button is pressed, the function 'functionA() '
is called (using php variables already defined before the form.)
Thanks
Brad
--
PHP General Mail
Well, you can simply look for a closing bracket (>) followed by only white
space characters (space, tab, return) followed by an open bracket (<) and,
if there's a match, strip out the white space in between them. That would
turn:
into just
You'd have to check for a bit more, such as an
If you do this then those who will want to eventually convert their projects
over to XML or XHTML format will have a hard time doing so, because the
double quotes around the values of the attributes are required. Also, it's
not good code practice. Just something for future reference...
-Origi
hi:
i hope access CORBA client implemented with MICO in php,is there any
existed extension for mico or for other corba implementation?
Thanks for any hints,ideas.
hubl
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
This sounds like that could be done in PHP - but it would be an AWFUL lot
of work and
fiddle to get right.
I personally wouldn't even consider it unless you had way to hook in
to the final output of PHP.
Possibilities ( not all of them sane ):
* Modify PHP. Add an INI var for turning the fea
From: "Maxim Maletsky" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, July 10, 2001 1:05 AM
Subject: RE: [PHP] stripping white space?
> I think it IS a good practice
> if you only practicing HTML to be outputted by PHP.
Why, if you know that it's illegal XHTML a
"Jack" <[EMAIL PROTECTED]> wrote in message
020801c108af$36dc70c0$[EMAIL PROTECTED]">news:020801c108af$36dc70c0$[EMAIL PROTECTED]...
Hi all
I am new to php class, basically never use class before. Now I try to use a
credit card class from Zend, the class name is credit_card.pkg. How do I
create th
I get undefined func on pdf_new but on all the other pdf functions they work, but i
first need the pdf_new then i tried cpdf, all works, but i can't seem to get text onto
a page...HELP ME
- James "ReDucTor" Mitchell
On Tue, 10 Jul 2001 15:40, ReDucTor wrote:
> I get undefined func on pdf_new but on all the other pdf functions they
> work, but i first need the pdf_new then i tried cpdf, all works, but i
> can't seem to get text onto a page...HELP ME - James "ReDucTor"
> Mitchell
That function wasn't introduce
Shit i only have 4.0 ):
- Original Message -
From: David Robley <[EMAIL PROTECTED]>
To: ReDucTor <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, July 10, 2001 4:18 PM
Subject: Re: [PHP] PDF Problems
> On Tue, 10 Jul 2001 15:40, ReDucTor wrote:
> > I get undefined func on pdf_new
Hi Brian,
>* Persuade someone at Zend to modify PHP so that a filter function can
> be specified which all output text is passed through - would have the
> same restrictions as the "header" function
You can already achieve this by using the built-in output buffering
function. Read
Fatal error: PDFlib error: Beta expired - retrieve new version from
www.pdflib.com in c:\phpdev3\www\pdf\test.php on line 2
hahahahha
- Original Message -
From: ReDucTor <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 10, 2001 4:22 PM
Subject: Re: [PHP] PDF Problems
> Shi
Hi all,
I hope I haven't missed it if it exists...i've looked through the
docs...i'm trying to find something that does the same trick shown at
php.net for getting the table, array_flip()'ing it, then using strtr to
translate things like What about others like &146; etc...it'd be
really useful
I guess this is just one of those things where everyone's opinions runs in
different directions, yet everyone is entitled to their own. I myself try to
respect the standard because of the browser war years which made everyone
uncomfortable. Now most browsers are trying to merge into a single stand
On Tuesday 10 July 1979 12:55 am, [EMAIL PROTECTED] wrote:
> on 7/10/01 1:01 AM, Navid A. Yar at [EMAIL PROTECTED] wrote:
> > Hmmm, I was wondering about security of PHP also. Does anyone know the
> > general issues of security within PHP documents? My thought is that PHP
> > cannot be seen when y
On Tuesday 10 July 1979 12:39 am, [EMAIL PROTECTED] wrote:
> on 7/10/01 12:30 AM, John Weaver at [EMAIL PROTECTED] wrote:
> > Sorry, I should have been more clear. If you write modular code, your
> > included file will be nothing but a group of functions. Call a file with
> > nothing but functio
hmmdo again as:
//elias!
"Brad Wright" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all,
> i want to have a submit button on a page that has a php function (on the
> same page) as the action.
>
> ie.
>
>
>
>
>
>
> so when the 'Us
101 - 182 of 182 matches
Mail list logo