[PHP] Re: Is it possible to create a global namespace alias?

2010-10-05 Thread Matt Palermo
I'm assuming there is no way to make a global alias. Can anyone confirm/deny this? ""Matt Palermo"" wrote in message news:5e7b8989448b45dbbeeb6fb89b3f3...@rachet... Is it possible to create a global namespace alias in PHP or does the alias have to be defined

[PHP] Is it possible to create a global namespace alias?

2010-10-04 Thread Matt Palermo
Is it possible to create a global namespace alias in PHP or does the alias have to be defined in EVERY file that I use? Here is an example: file: main.php file: index.php The above code doesn’t work for me. The namespace alias defined in the main.php file isn’t accessible in the index

[PHP] Is it possible to create a global namespace alias?

2010-10-03 Thread Matt Palermo
Is it possible to create a global namespace alias in PHP or does the alias have to be defined in EVERY file that I use? Here is an example: file: main.php file: index.php The above code doesn’t work for me. The namespace alias defined in the main.php file isn’t accessible in the index

[PHP] Re: Execute command line as a different user

2008-07-01 Thread Matt Palermo
Is there something wrong with this command? Is there a different way to do it? Thanks, Matt ""Matt palermo"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] My PHP is running as a user with limited rights. I'd like to execute a command line as a diff

[PHP] Re: Execute command line as a different user

2008-07-01 Thread Matt Palermo
Okay, I'll have to look into that. I have very limited knowledge with shell scripts. You wouldn't have an example of one that can do what I need do you? Thanks, Matt "Shawn McKenzie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Matt palermo wro

[PHP] Execute command line as a different user

2008-07-01 Thread Matt palermo
My PHP is running as a user with limited rights. I'd like to execute a command line as a different user. I'm trying to delete a file and the PHP user doesn't have access to do this. I know the username and password for the admin user that has rights to delete a file. Is there a command I can

[PHP] FTP Copy

2006-09-19 Thread Matt Palermo
I've been looking on php.net, but can't find anything that covers this... Basically, I am using PHP FTP to connect to an FTP server and run some functions. I want to copy a directory on the FTP server to another directory on the FTP server. Since there isn't an ftp_copy() function, I have to

[PHP] Organizing a group project

2006-06-19 Thread Matt Palermo
with and learn from other developers as well. Thanks, Matt Palermo http://sweetphp.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Beta Testers Wanted

2006-02-22 Thread Matt Palermo
I have available at http://sweetphp.com and they have become very successful because of all your help. Thanks, Matt Palermo [EMAIL PROTECTED] http://sweetphp.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Custom Usort Function

2006-01-24 Thread Matt Palermo
Any ideas on how to accomplish this? ""Matt Palermo"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm try to sort a list of items using a usort function. Basically, I want > it to sort in this order: > > Numbers (0-9) > Letters

[PHP] Custom Usort Function

2006-01-23 Thread Matt Palermo
get these results? Please let me know. Thanks, Matt Palermo http://sweetphp.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: File Upload Max Size

2005-09-30 Thread Matt Palermo
Well, I would like to at least be able to upload a 10mb - 15mb file. I don't need it to upload files that are HUGE, just a reasonable size. "zzapper" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Fri, 30 Sep 2005 01:19:01 -0400, wrote: > >>Hello everyone. I'm basically bui

[PHP] File Upload Max Size

2005-09-29 Thread Matt Palermo
Hello everyone. I'm basically building a PHP FTP client app. This app connects to an FTP server and allows the user to edit/delete files/permissions, etc. I've gotten to the point where I have started to create a file upload feature. The problem I have is that PHP only allows a 2mb maximum

[PHP] Re: FTP Chmod problem

2005-09-29 Thread Matt Palermo
I'm using 5.0.something. "Al" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Matt Palermo wrote: >> Hello everyone. I have a script where I am using FTP functions to chmod >> files/folders. I'm running into a problem with the ftp_chmod

[PHP] Re: FTP Chmod problem

2005-09-05 Thread Matt Palermo
rote in message news:[EMAIL PROTECTED] > "Matt Palermo" <[EMAIL PROTECTED]> writes: > > >> ftp_chmod($connId, 0777, $folder); >> >> The function almost works, but when I check the permission of the folder >> after it's run, the folder has 410 for

[PHP] FTP Chmod problem

2005-09-04 Thread Matt Palermo
;.$file; ftp_site($connId, $chmodCmd); This properly changes the folder permissions to 777. Does anyone know why the ftp_chmod() function doesn't work correctly? As a side note, the ftp_chmod() function works correctly on a file, but not a directory. Any help is appreciated. Thanks, Matt Palermo

[PHP] Getting server information

2005-07-15 Thread Matt Palermo
t uses the fopen() function to access the PHP file, that when the remote PHP file gets executed it can log some information about the source server which is accessing it? If so, what kind of code would I need to place in the remote PHP file to obtain some of the information. Thanks, Matt Pa

[PHP] Copy Remote File to Local Server

2005-07-15 Thread Matt Palermo
server. Is there a way around something like this? Or perhaps could the script keep time of how long it has been running will reading/writing and then be able to continue writing to the partial file? Does anyone have any suggestions for this problem? Thanks, Matt Palermo http://sweetphp.com

[PHP] Re: empty() problem

2004-12-12 Thread Matt Palermo
How about: if($Game_Rating == "") $errors[] = "You didn't enter the Online Status for the Game."; This should work for you. -Matt "Ahmed Abdel-Aliem" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi Group Members > i have a problem with function empty() > i use it to check if

Re: [PHP] Close all open tags in HTML text

2004-12-10 Thread Matt Palermo
want to allow them to use HTML, but I want to close tags that were left open by them. This way it allows them to use HTML and it won't screw up the rest of the page. Thanks, Matt "Richard Lynch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Matt Pa

Re: [PHP] Close all open tags in HTML text

2004-12-09 Thread Matt Palermo
news:[EMAIL PROTECTED] > Matt Palermo wrote: >> I am allowing users to imput HTML code into a textarea. After they input >> this, I wany to output their HTML to the browser. In order for the >> document >> to be safe, I need to close all open HTML tags that have been l

[PHP] Close all open tags in HTML text

2004-12-08 Thread Matt Palermo
I am allowing users to imput HTML code into a textarea. After they input this, I wany to output their HTML to the browser. In order for the document to be safe, I need to close all open HTML tags that have been left open by the user, along with any open comments. Is there a way to take an HTM

[PHP] New Flash Chat Program

2004-07-30 Thread Matt Palermo
nformation here: http://sweetphp.com/nuke/modules.php?name=Script_Preview&script=6 As a thank you to all those who have helped me on here I am giving away 5 free copies of the program to the first 5 people who contact me about it. Thanks again for all your help guys. Great job! Matt

Re: [PHP] Online Users

2004-07-02 Thread Matt Palermo
Okay, I actually found out how to list the users, but you have the following line of code: define('SITE_ONLINE_EXPIRE', 900); What is the 900? Is that 900 seconds? Thanks, Matt http://sweetphp.com "Matt Palermo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROT

Re: [PHP] Online Users

2004-07-02 Thread Matt Palermo
in message news:[EMAIL PROTECTED] > On Fri, 2 Jul 2004 01:13:14 -0400, Matt Palermo <[EMAIL PROTECTED]> wrote: > > > > Is it possible to make a table of all logged in users session ids and then > > check to see if the session still exists every couple minutes? So every

Re: [PHP] Online Users

2004-07-01 Thread Matt Palermo
ors. > > This is just a hint. Some knowldge of php/any database > assumed , > > Revert back with any comment or problem. > > zareef ahmed > > > --- Curt Zirzow <[EMAIL PROTECTED]> wrote: > > * Thus wrote Matt Palermo: > > > they click the logout button

[PHP] Online Users

2004-07-01 Thread Matt Palermo
I am trying to keep a MySQL table of all currently online users for a system I'm making. It's pretty simple to add the username to the list when they login, but I don't know how to remove their username when they leave (unless they click the logout button). Basically I want to be able to keep a l

[PHP] Cron Job in vDeck

2004-06-03 Thread Matt Palermo
Hey guys. I was wondering if anyone knows how to go about creating a cron job using vDeck (that's what is installed on the server) that just accesses a PHP file and runs everything in the PHP file. Does anyone know how to go about doing something like this? Thanks, Matt http://sweetphp.com --

[PHP] Link Management Software

2004-05-29 Thread Matt Palermo
/modules.php?name=Script_Preview&script=4 It will be on sale for half price over the next week or two, but you can get a free copy by being one of the first 5 people to email me for it. Thanks again for all your help! Matt Palermo http://sweetphp.com -- PHP General Mailing List (http://www.php

Re: [PHP] Changing maximum upload file size

2004-05-23 Thread Matt Palermo
Does this allow you to work with larger files than the maximum specified in the php.ini or just smaller ones? Thanks, Matt Palermo http://sweetphp.com "Rachel Rodriguez" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > --- Matt Palermo <[EMAIL PROTECTE

[PHP] Changing maximum upload file size

2004-05-23 Thread Matt Palermo
Is there a way to change the maximum file upload size in a PHP script? Kind of like the way you can change the error reporting in a script, but I just want to adjust the max file upload size. Does anyone know if this can be done? Thanks, Matt Palermo http://sweetphp.com -- PHP General

[PHP] HTML vs. Plain Text Input

2004-05-07 Thread Matt Palermo
Hey, I was wondering if anyone knows of any easy ways to detect for HTML input. I have a textarea box that I want users to be able to input either plain text or HTML code. I will later display this input data, so if the user input plain text then I will replace newline characters (\r\n, \n, \r) w

Re: [PHP] MySQL Dump

2004-04-23 Thread Matt Palermo
Will this work on both a Windows and Unix server? "Michal Migurski" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Is there an easy way to do a mysql dump routine written in php? I > > basically want to write a function to backup a database and have it > > create all the neccess

[PHP] Re: Search MySQL and Match Whole Words

2004-04-22 Thread Matt Palermo
ws:[EMAIL PROTECTED] > why not just use WHERE word = "inputWord" and skip the whole LIKE thing for > an exact match? Is that what you mean? > > Respectfully, > Ligaya Turmelle > > "Matt Palermo" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PRO

[PHP] MySQL Dump

2004-04-22 Thread Matt Palermo
Is there an easy way to do a mysql dump routine written in php? I basically want to write a function to backup a database and have it create all the neccessary structures and data in the dump. I know phpMyAdmin will do this for me, but I want to write a function to do this incase the server doesn

[PHP] Search MySQL and Match Whole Words

2004-04-22 Thread Matt Palermo
I was wondering if anyone knows how to do whole word searches in mysql. I have a search textbox that users can enter in multiple words to search for in the database, but things like the mysql LIKE match any part of a word. Is there a way to search for whole word matches only? Please let me know i

Re: [PHP] Regular Expressions

2004-04-05 Thread Matt Palermo
What exactly does this do: /< (?<=p|br) [^>]+ >/x It may work, I just want to understand what it's looking for. Thanks, Matt "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote Matt Palermo ([EMAIL PROTECTED]): > &

[PHP] Regular Expressions

2004-04-04 Thread Matt Palermo
I have a page where I am stripping the html tags down. Basically, it will allow certain tags, but still strips out ALL attributs of the tag, so it works something like this: $allowed_tags = ""; // State which tags are allowed $info = strip_tags($info, $allowed_tags); // Strip all unwanted tags o

Re: [PHP] Keep HTML tags, but strip attributes

2004-04-03 Thread Matt Palermo
ochem Maas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Matt Palermo wrote: > > > I am building a system which allows users to post data. I want to allow > > them to use ONLY certain tags such as , , , , , , > > etc... I want to allow them to

Re: [PHP] Keep HTML tags, but strip attributes

2004-04-03 Thread Matt Palermo
is to work for any tag, no just . Any suggestions for this? Thanks, Matt "Jochem Maas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Matt Palermo wrote: > > > I am building a system which allows users to post data. I want to allow > >

[PHP] Keep HTML tags, but strip attributes

2004-04-03 Thread Matt Palermo
of a way this can be done? Thanks, Matt Palermo http://sweetphp.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Image Storage

2004-03-22 Thread Matt Palermo
I am creating a system to allow users to upload images to the site. Would it be better to store the images in a MySQL table, or having it save the images to a directory on the server? Anyone have any suggestions on this? Pros? Cons? Thanks, Matt http://sweetphp.com/ -- PHP General Mailing Lis

[PHP] Get MySQL table field names

2004-02-29 Thread Matt Palermo
How can I get the field names from a specified MySQL table? I don't need the data, I just want to get an array of the tables field names. Thanks, Matt http://sweetphp.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Make sure folder is writable

2004-02-24 Thread Matt Palermo
Is there a way to check a folder on the server to make sure a specified folder has write permissions? I'm writing an upload script, but I need to make sure the user gave the destination directory write permissions before I can copy the files to the new folder. Anyone got any ideas? Thanks, Matt

[PHP] Re: Recursive Select Box

2004-02-18 Thread Matt Palermo
No, i'm using a MySQL DB. "Justin Patrin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Matt Palermo wrote: > > > Hey everyone. I'm looking for assistance/suggestions/answers on how to > > build a select dropdown box from data that nee

[PHP] Recursive Select Box

2004-02-18 Thread Matt Palermo
Hey everyone. I'm looking for assistance/suggestions/answers on how to build a select dropdown box from data that needs to be pulled recursively from a MySQL database. Basically the situation is mainly for a dicussion thread system type of thing where I have categories nested inside categories, n

[PHP] Create a zip archive from a folder

2004-01-29 Thread Matt Palermo
Hello. Does anyone know how I can easily create a zip archive from a folder on my server? I have a library class that will do this for a tar file (I just give it the folder name and the archive name and it creates the tar file for me very easily). I was wondering if there is anything really easy

[PHP] Email Forwarders

2003-12-13 Thread Matt Palermo
I have a hosted website which uses CPanel. I can login to CPanel and create as many email forwarders as I want. Is there a way I can write a PHP script to manage these email forwarders? For example, somebody registers on my site and they want to be added to the for a certain email address (as an

[PHP] Sort Array by date

2003-12-04 Thread Matt Palermo
I have a bunch of dates in the form: MM-DD- in an array and I want to sort them and display them in descending order. I have tried the usort() function below and it's not working. Can anyone help me out here? $menu_item = array(); $menu_item[] = "12-04-2003"; $menu_item[] = "11-19-2003"; $me

[PHP] Communicating with remote server

2003-11-17 Thread Matt Palermo
I am writing a desktop application using PHP-GTK. I would like this program to be able to connect to a remote server, call some functions that I specify, and return the right information (most likely from a MySQL db). I have access to the server, so I can create any and all functions that I want,

[PHP] Get value between 2 strings

2003-11-16 Thread Matt Palermo
Hello. I was wondering if anyone knew of a function to get the value between 2 strings. For example, lets say I have the following line: $line = "I want the value between word ONE and word TWO. Please return it..."; Now, I want to get everything between "ONE" and "TWO". In this example it sho

Re: [PHP] MX lookup email verification on Windows

2003-11-07 Thread Matt Palermo
Is there any way to accomplish this without the use of exec() or system() functions? "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Saturday 08 November 2003 03:39, Matt Palermo wrote: > > Does anyone know of a way to perform an MX look

[PHP] MX lookup email verification on Windows

2003-11-07 Thread Matt Palermo
Does anyone know of a way to perform an MX lookup on a Windows server to perform an email verification? Any help on this would be great, since I can only find code for this that will work on *nix servers. Please let me know if you can help. Thanks, Matt -- PHP General Mailing List (http://www

[PHP] Re: Calendar Tool

2003-10-28 Thread Matt Palermo
Oops... The link to the site is: http://www.sweetphp.com/projects/TotalCalendar/ Sorry. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Calendar Tool

2003-10-28 Thread Matt Palermo
Hey everyone. I am the creater of a PHP script called TotalCalendar (http://sweetphp.com/TotalCalendar/) and I am looking for a little advice and suggestions about making a tool for it. I want to build an application that users can download and install on their local machines which connects to a

Re: [PHP] Using PHP with JAVA

2003-10-24 Thread Matt Palermo
f choice. There are several > > SOAP libraries available and they come with good docs. However if you > > are building an image gallery type application, you will be able to do > > mos of the work just by using java.net package has has been pointed out. > > > > all th

Re: [PHP] Using PHP with JAVA

2003-10-24 Thread Matt Palermo
se > Object Streams for your communications or RMI. Then there is the > XMLEncoder class that was made availble with 1.4 > > better stop before someone shoots me down this is a PHP list after all :-) > > > > Matt Palermo wrote: > > >I have been searching the web for ways to ex

[PHP] Using PHP with JAVA

2003-10-24 Thread Matt Palermo
I have been searching the web for ways to execute remote PHP files through the use of JAVA code, but I haven't had any luck. I have found many ways to call JAVA functions from a PHP script, but not the other way around. What I'm trying to accomplish is I want to build a JAVA application that will

[PHP] Sort an array of objects

2003-10-01 Thread Matt Palermo
I have an array of object for files on my site. The objects hold a file's name, size, extension, etc... I was wondering if anyone knows where I could find a relatively easy function for sorting the array of these objects by either name, size, etc... Please let me know if got any tips. Thanks a

[PHP] Initial Value for Input Box

2003-09-29 Thread Matt Palermo
I have a form that a user can fill out. In the text input field I allow them to insert HTML tags with their input data. They can then submit the form for processing. The problem is that later on when they go to edit their inputs (I initialize the text input with their previously submitted input)

[PHP] Beta Testers Needed - Free software opportunity

2003-09-08 Thread Matt Palermo
everyone who has helped me out. Matt Palermo [EMAIL PROTECTED] http://sweetphp.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Unzipping Files

2003-08-14 Thread Matt Palermo
Anyone know where I can find tutorials or examples on how to use the gunzip, gzip, and other commands using PHP to work with compressed files? I would really appreciate it if someone could send me some links or examples of how to use them. My goal would be to be able to extract .zip, .gz, and oth

RE: [PHP] Unzipping Files

2003-08-14 Thread Matt Palermo
I am doing this for a client, and he doesn't have the ZZIPlib installed, and would like to avoid it if possible. Any other ideas? Thanks, Matt -Original Message- From: Adam Alkins [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 8:24 PM To: Matt Palermo Cc: [EMAIL PROT

[PHP] Extracting Compressed Files

2003-08-14 Thread Matt Palermo
Does anyone know of easy ways to be able to extract all files/folders/subfolders from different types of compressed files (.zip, .tar.gz, etc.)? If anyone could help me out with this, I would really appreciate it. Thanks, Matt

RE: [PHP] Unzipping Files

2003-08-14 Thread Matt Palermo
very familiar with this subject. Matt -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 11:45 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Unzipping Files On Wednesday 06 August 2003 10:19, Matt Palermo wrote: > Yeah, I know someone mentioned u

RE: [PHP] Unzipping Files

2003-08-10 Thread Matt Palermo
PM To: Matt Palermo Cc: 'Adam Alkins'; [EMAIL PROTECTED] Subject: RE: [PHP] Unzipping Files >I am doing this for a client, and he doesn't have the ZZIPlib installed, >and would like to avoid it if possible. Any other ideas? It has been mentioned before: use exec, or the backt

RE: [PHP] Extracting Compressed Files

2003-08-08 Thread Matt Palermo
EMAIL PROTECTED] Sent: Monday, August 04, 2003 11:46 PM To: Matt Palermo Subject: Re: [PHP] Extracting Compressed Files Use exec to execute the command line programs that deal with these archives. Namely tar and gz and bzip2 and zip/unzip. For single files that are compressed you can use PHP to decom

[PHP] Right Click Hyperlink

2003-07-31 Thread Matt Palermo
Does anyone know if there is anything in PHP or any other language that would allow a specific action to occur if a visitor right-clicked on a link. For example, they could left click on it an go to a specified page, and they could also right-click it to go to a different page. Anyone know of

RE: [PHP] Using link to submit a form

2003-07-30 Thread Matt Palermo
//Just use this javascript function... echo " "; // Then output the submit link like this... echo " "; // You can have multiple submit links that send it // to different pages

RE: [PHP] Link acting as a submit button

2003-07-25 Thread Matt Palermo
Okay, I got it to work. I just put the "id" parameter in the submit button tag and it works fine now. Thanks for all your help guys... >= Original Message From [EMAIL PROTECTED] = >Why do you have a submit button and a link to submit the form. Dont u >want them to use the submit button

RE: [PHP] Link acting as a submit button

2003-07-25 Thread Matt Palermo
I found out that it works fine without the submit button that I had in there. When I take the submit button out, it works, if I put it back in there I get the error message again. Any ideas? Matt >= Original Message From [EMAIL PROTECTED] = >On Fri, 2003-07-25 at 05:30

RE: [PHP] Link acting as a submit button

2003-07-25 Thread Matt Palermo
into a link instead? Thanks, Matt >= Original Message From Comex <[EMAIL PROTECTED]> = ><[EMAIL PROTECTED]> >Matt Palermo: >> I just remembered (I'm not sure if it makes a difference) that I am >> using frames on this page. Does this matter at all?

RE: [PHP] Link acting as a submit button

2003-07-25 Thread Matt Palermo
I just remembered (I'm not sure if it makes a difference) that I am using frames on this page. Does this matter at all? Thanks. Matt >= Original Message From Matt Palermo <[EMAIL PROTECTED]> = >Fixing the javascript that you specified still gave me the same >err

RE: [PHP] Link acting as a submit button

2003-07-25 Thread Matt Palermo
>= Original Message From Curt Zirzow <[EMAIL PROTECTED]> = >* Thus wrote Matt Palermo ([EMAIL PROTECTED]): >> I am trying to create a submit button out of a hyperlink using the >> following >> code: >> >> (this is in a file called index.html) >

RE: [PHP] Link acting as a submit button

2003-07-24 Thread Matt Palermo
Fixing the javascript that you specified still gave me the same errors... Got any more suggestions? Thanks for your help, Matt -Original Message- From: Jim Lucas [mailto:[EMAIL PROTECTED] Sent: Thursday, July 24, 2003 6:40 PM To: Matt Palermo Subject: Re: [PHP] Link acting as a submit

[PHP] Link acting as a submit button

2003-07-24 Thread Matt Palermo
I am trying to create a submit button out of a hyperlink using the following code: (this is in a file called index.html) this page This works fine as an ht

RE: [PHP] replacing everything between 2 strings

2003-07-21 Thread Matt Palermo
2003 8:09 PM To: Matt Palermo; [EMAIL PROTECTED] Subject: RE: [PHP] replacing everything between 2 strings look into opendir and readdir with opendir you can open a handle to a directory and use readdir in a loop to look at every file (fopen or whatever to load each file) then parse your files. readd

[PHP] replacing everything between 2 strings

2003-07-21 Thread Matt Palermo
Is there a way to replace everything between 2 given strings if it exists? Say I have: $str = "replace anything and everything in here."; Now I want to replace everything between the word "replace" and "here.", so the new string could read something like this: $str = "replace NOTHING here.";

[PHP] Input Submi Help

2003-07-17 Thread Matt Palermo
I have a script that contains a form which goes to page1.php on the click of a submit button. Inside the form are lots of checkboxes and things to fill out that get passed to page1.php. I want to put another button in there that send all the same names and values of the checkboxes to page2.php.

[PHP] Problem adding value to session array

2003-07-17 Thread Matt Palermo
I have a session array that stores some values that I set. It holds all the inserted values, unless the value I want to insert has a space in it, then it only inserts the characters before the space into the array. It looks like this: // This works $sessionArray[1] = "nospace"; echo "result:

RE: [PHP] Insert leading zeros

2003-07-15 Thread Matt Palermo
Thanks a lot. It works like a charm! -Original Message- From: Curt Zirzow [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 8:45 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Insert leading zeros Matt Palermo <[EMAIL PROTECTED]> wrote: > I have a string of digits that l

[PHP] Insert leading zeros

2003-07-15 Thread Matt Palermo
I have a string of digits that looks like something like these: 0025, 1234, 0001, 1003, and so on. They are all 4 digits in length. Then when I increment one of them by 1, I want to still have 4 digits for the value (it should insert the leading zeros if needed). Is there any type of function t

[PHP] download hyperlink

2003-07-10 Thread Matt Palermo
Does anyone know how I can set a hyperlink to a file so that someone can download the file instead of viewing it in the browser? Please let me know. Thanks. Matt

[PHP] Get previous folder

2003-07-10 Thread Matt Palermo
Anyone know how I can stip off the end of a folder location, so that it will be a folder in the next level up? I want to turn something like this: /path/to/folder/MyFolder/ into somthing like this: /path/to/folder/ I just need to strip off the last folder and that is it. Can anyone help me

RE: [PHP] linking with home directory

2003-07-09 Thread Matt Palermo
IIS, or do you do it from a different machine? > >>> Matt Palermo <[EMAIL PROTECTED]> 07/09/03 10:52AM >>> >The XP and 2000 are two different machines. > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/

RE: [PHP] linking with home directory

2003-07-09 Thread Matt Palermo
I have done that, and it displays the correct location. I don't know what else to do. Is there maybe something in the php.ini file? >= Original Message From Mike Brum <[EMAIL PROTECTED]> = >First, I'd create a simple test to see what the value of > >$newDir = $HomeDir."themes/".$ThemeF

RE: [PHP] linking with home directory

2003-07-09 Thread Matt Palermo
The XP and 2000 are two different machines. >= Original Message From Matt Matijevich <[EMAIL PROTECTED]> = >[snip] >Like I said before, the style sheets load up fine on my Windows XP IIS >server, >but not the Windows 2000. In order to get it to work on the Windows >2000 IIS >server, I hav

[PHP] states

2003-07-01 Thread Matt Palermo
Does anyone know of any built in functions or options for the US states? I want to make a drop down menu and some other things which have the 50 states in it. Is there any shortcut for this with PHP, or do I need to do it all manually in HTML? Please let me know. Thanks. Matt

[PHP] return all non-tag characters

2003-06-21 Thread Matt Palermo
I want to be able to retrieve and return all character that are not located in html tags. For example: 1234567 or 1234567 I would just like it to be equal to 1234567, but I would need it to work with any tags and attributes. Is there a way to just throw out everything from the < to the > and

[PHP] working with forms

2003-06-18 Thread Matt Palermo
I have a forms page that a user will fill out. When it is submitted, it checks to see if any of the field entries entries are empty, and if so, it has a die() statement that has a link (javascript:history.back()) which sends the user back to the form page. However, when they go back to the for

[PHP] print all variables

2003-06-18 Thread Matt Palermo
Could anyone tell me how to print all the variables and values from a submitted form, so that I can check them? Thanks, Matt

[PHP] session question

2003-06-15 Thread Matt Palermo
When a session is started on my server, it gets a name in the "sessiondata" folder like: sess_8sjg4893m9d0j43847dk4o5l2 I was just wondering if all sessions on ANY server start with "sess_"? Is this a PHP-wide default, or can it be changed (not that I want to change it, I just want to know if

RE: [PHP] create a chmod'd file

2003-06-13 Thread Matt Palermo
What is the umask()? What is that used for? How do I set that up right? Matt -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 3:08 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] create a chmod'd file On Saturday 14 June 2003 03:01, Matt Pa

RE: [PHP] create a chmod'd file

2003-06-13 Thread Matt Palermo
How do I get the script to "own" the file? Are there special commands needed for this? Matt -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 3:08 PM To: Matt Palermo; [EMAIL PROTECTED] Subject: RE: [PHP] create a chmod'd file

Re: [PHP] create a chmod'd file

2003-06-13 Thread Matt Palermo
lt;[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 13, 2003 2:59 PM Subject: Re: [PHP] create a chmod'd file > On Saturday 14 June 2003 02:43, Matt Palermo wrote: > > I am using the fopen(), then using fwrite() to write text to it. After > > this I am trying

Re: [PHP] create a chmod'd file

2003-06-13 Thread Matt Palermo
nged later on. Matt - Original Message - From: "Alex Earl" <[EMAIL PROTECTED]> To: "Matt Palermo" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, June 13, 2003 2:37 PM Subject: Re: [PHP] create a chmod'd file > > I have a script that create

[PHP] create a chmod'd file

2003-06-13 Thread Matt Palermo
I have a script that creates a php file based on user input. I need this newly created file to have write permissions - chmod 777. How can I have the script create the file with these permissions already set? Is this possible? Thanks, Matt

Re: [PHP] slash trouble when editing text

2003-06-11 Thread Matt Palermo
Will the stripslashes() remove the slashes that are supposed to be in the file? Because often times there are slashes in the file that need to be there. Matt - Original Message - From: "CPT John W. Holmes" <[EMAIL PROTECTED]> To: "Matt Palermo" <[EMAIL P

[PHP] slash trouble when editing text

2003-06-11 Thread Matt Palermo
I wrote a small script that creates a link to all the .php and .txt files in a given directory. When one of these links is clicked, it brings up another window with the files contents inserted into a text area. From there the user can edit the text file then click a submit button to make the c

Re: [PHP] getting file contents

2003-06-11 Thread Matt Palermo
sday, June 11, 2003 12:27 PM Subject: Re: [PHP] getting file contents > On Wednesday 11 June 2003 23:54, Matt Palermo wrote: > > I have text a file which contains php code. I am using it as a template > > for some other pages. I want to take everything in that file and store

  1   2   >