im uploading images to my host but these images are in tiff format and i want them to be resized and saved in

$this-cart and ind parrent class __constructor the $cart is $this-cart=new cart(); ?

ok.. look into a program called Putty.
oh wait sorry… confused what you were asking

putty?
whats putty

putty is an ssh client
i didn't realize you were saying you were planning on using ssh through php to connect to svn
is that right?

yes that is right

is your svn repository on the server?

so I can access stuff on svn from right on the website
yes it is

and php is on the server?

I have clean urls so I have it setup so "/search/term". How can I get my form to submit (action=get) to /search/term instead of /search?q=term

you can do that anyway DARKGirl! argh

of course

then you won't need ssh

what?!

just use the command line directly (through php)

ehhh?????

you create the svn repository on the server, you then setup Apache with webDav that will allow you to view your SVN repository via say http://svn.mydomain.com

how familiar are you with svn commands?

how would I print everything in $dir ending in .$ip, then order them in filemtime() order?

not very. I am going to find a command list so I can pick and choose what I need. I am not in the mood to wade through long and difficult to understand manuals
all I need is the function list and how they are used

the manual is your friend… there's a few quick ref's out there though
anyways, you'll probably want to use shell_exec in php, which will return the results as a php string

hi. is there an array function like array_fill_keys() which only fills keys and not values?

so you could do something like $log = shell_exec('svn log -r 1:10');

or learn how to use svn the proper way

which would return the log for revisions 1 - 10 into a string called $log

no, but it isn't hard to code a function to do that

and then parse it as needed to do other things, but I agree, you should probably take the time to learn more about svn…
you don't want to mess up your repository
me too… which is why i moved to bazaar
plain file copy = complete repo backup
aka branch as well

wait wait you are typing too fast and I cant keep up

read faster :p

or scroll

nice, isn't the repo all maintained by Canonical though, enobrev?
ie - you can't install Bazar on your own server?

how would I print everything in $dir ending in .$ip, then order them in filemtime() order?

yes you can

oh right

I have it on my MEdia Temple grid server
Canonical has their own open source thing called launch pad

yep, I use it a lot :P

How do you like that grid server?

which is kind of like a source forge but based on bazaar
love it

it's not open-source, tohugh
php.net/foreach

it was bumpy at first, but nice now

s/tohugh/though

bazaar? yes it is

I meant launchpad,

open source
oh, no.. but you don't need launchpad
that's their thing

you said "own open source thing called launch pad" ^^
yeah, lovely thing it is

no.. like source forge.. as in a code repository for developers to collaborate
oh… sorry… you're right

hey all

words ordered strangely

:P

Does anyone know how to store the contents of a file to a variable?

i got a variable with // in it how can i make it echo it out with //

file_get_contents() blah569

AlexC_, can I show you what I've got already?

and everything

Thanks

str_replace()
yes

tell him to shove it back up there

ok thanks AlexC_

oshi
wwrong box :/

oshi… my new favorite word

:P

How can I use action=GET to get clean URL. /search/term not /search?q=term

taken out of context that sounds really wrong…

AlexC_, http://icache.ihack.co.uk/test.phps

suppose it would

AlexC_, that does everything I want but it doesn't sort them in order

mod_rewrite and #apache

AlexC_ but i need to seek the //'s

why?

is it file_get_contents($file); ?

cause im reading a file
that requires them

php.net/file_get_contents
?

I did, but I didn't find what I was looking for

its a gameserver config
and it needs to have them im making an edit form

never use but use php

AlexC I have all of the rewrites in place I just can't figure out how to submit the form so that the URL of the search result page is /search/term

rocks

no, it does not

it absolutely does

AlexC_, erm…ok

also, look into uasort()
or sort()

you'll have to use javacsript

I have, I'm just not sure how to implament it

GET's will only post vars with ?&

O_o no he wont

ok thanks

oh I see he wants to click Submit and it goes to /values/of/the/form ?

right.. that's what i figure he was saying

AlexC_, basically I want to order $filename in filemtime() order

ok, im back

you'll have to put them into an array first, order them - then loop it again

AlexC_, OK. I'm not too sure how to put them into an array..

oh, James__ wait - scandir() maybe?
it wont have the filter you can do, but you can do what within the foreach loop - with scandir() you can set the order

AlexC_, could you give me a quick example? sorry..

ah hold on, you can only set decending or accending,

but it still puts them into an array for you
then usort
no?

yes you could,

AlexC_, I'm unsure how to put them into an array

scandir

scandir() does that for you

php.net/scandir

am i right in thinking that if i use a persistent connection to a postgres database, that the connection can be used by many incoming requests at once?

thats why im usig a test repository

hmm
AlexC_, this is a working example of what I've got currently - http://icache.ihack.co.uk/?my

ok good. svn is good to know though… won't hurt ya to read into it

you'll need to go to the homepage and enter a url to see anything

not sure what you mean, James__

not much there James

enobrev, AlexC_ go to http://icache.ihack.co.uk
enter http://www.google.com, then go to it

i see

does anyone happen to know a php 4 implementation of sha2

enobrev, AlexC_ understand now?

no S:

not at all

I have a webpage with a login system, when i log in with two users on a windows system the first user i logged into somehow becomes the new one, the sessions somehow become the same or something. You people know this issue? Everything worked on linux. :/

lol :P

You People?!

ah well, I'll just get somebody to do it for me..

good luck James… i'd say look into scandir and usort in the manual
linux vs windows as the browser or the server?

The server i think.
The server.
I porting the project on windows.

ok.. server
and your old session it overwriting your new session?

WOW!
webdav looks like it is exactly what I need
and you are saying webdav will work with svn, eh?

most likely
it's all kinds of fun t oset up too

hows i install it?

the other way around.

that one's for #apache DG

ah ok

i log in with user, void. Then i open a new browser window, and log in with font. When i browse with void he becomes font.

well… that's normal font

whoa, big channel

what do you mean normal?

the session carries for the whole browser session (windows, tabs, etc)
at least in my exp.

so this is not an error?

to enable zlib support, do i just point the configuration to the zlib.h?

i don't believe so

I'm checking now

i wish it were, but in my experience.. with any site… a session will hold the same for all tabs and windows

yep, that's the correct behavour

(where'd you check, AlexC?)

Firefox

ah ,tested.. thinking you were looking at docs or something.. i wanted to see

oh no, I just logged in to something as one user - then opened a new window, logged in as another - refreshed the first browser window and I was logged in a second user
so, that is what happebns

http://www.php.net/zlib

s/happebns/happens

well when the project was on a bsd machine, no such behaviour happened.

enobrev, already read that

maybe it's the apache config?

but that would be the zlib.h file right?

I don't think you can configure that, it's a browser "issue" - maybe you tried it with different browsers,

not actually sure.. are you referring to the install?

yeah

I'm on Linux and I tried it with Firefox - that is what happens

it looks like subversion is a form of webdav

i want to enable it, so i have to reconfigure the source with zlib support. it wants me to point towards zlib, so im just trying to figure out which file of zlib

webdav is a Apache module to allow access to svn (and other things) via Apache

so, all I have to do is create the UI for the people that want to work with svn?
why should I install it if php can access the svn repository as well?

please, please, please - read about SVN and how it works!

Alex is right, you'll have to set up apache to use webdav and point to your repository
good question DG

all users do _not_ work on the same working copy, then have to checkout a SVN repository and then commit changes, that then updates the main repository

depends on the what and why of what you're doing.

what you are attempt to do is remove the "working copy" part of SVN, and like I said earlier - if you do that, you may as well not use SVN

What's a good resource for learning svn?

i believe you're right about zlib.h, but I don't know for sure
the manual is very good

oh no its not
i tried to read it

http://svnbook.red-bean.com/

nothing but a bunch of technical mumbo jumbo

you seem a bit impatient for it DG

then maybe you should take up knitting

doesnt tell you explicit instructions on how to set it up and get started right away

enobrev, well thank you

it does

or learn some technical mumbothe jumbo will come later

sure thing.. gl

How to get all the values in select /listbox on submiting form

all selected values?

i will prolly go the php route and execute script commands with it

there is a lot to learn about SVN, you can mess a lot of things up with a repository if you don't know how to use SVN - that is why there is no "do this, this this, then this and bingo! there you go"

and make my own UI

all values not only selected

http://www.onlamp.com/pub/a/apache/2002/12/19/svn2.html

IE doesn't overwrite the sessions, FF does. This is indeed browser dependant.

the form will only post selectedvalues
good luck

and I already know about checking in and checking out data

why make a web-based interface for SVN? it makes no sense, like I've said many many times - _LEARN_ SVN

I belive you're right (haven't tested)

(sigh) for the last time
for what I am using it for, YES IT DOES

How to get more than one selected values in list box

and what are you using it for?

one could argue that making a ui for svn would be a good way to learn svn

There is a UI for svn

doesn't seem to fit DG's needs

not in the way DARKGirl whats to, DARKGirl wants everyone to use the same working copy that they will access via the web
that, is taking away the point of SVN

i understand this Alex
and so be it

I want people in my team, whom are in differnt parts of the world to be able to check in and check out data from the repository from the WEB SITE
i will use php to run all the shell commands that are needed to do this

that is bonkers

you are just like whats his face

as explained before, that's what the svn client is for.. whether command line or ui.. but if you want to make your own, by all means

and so, I am done talking to you

good.

yes I want to create a UI
it would look better

I give up, go and create this pointless web UI for SVN that will make everyones life harder who uses it because you are pretty much breaking the concept of SVN by doing it - good luck with that,

gl dg.. let me know how it goes

thanks :-)
now all I need to do is find the complete svn functionset
and I can get started

I can already tell you how it will go ^^

#svn
so cynical

http://websvn.tigris.org/

because it simply "wont work"

but you won't have to use it

that looks nice, mrmowgli

doesn't mean I can't try and advise people from creating something that quite simply wont work

i feel your pain
lol

mad isn't it :P

earlier she was telling me about her 'calendar' table.

Just so we are clear on this, I have used web front ends before for subversion, and they are fine if you are dealing with one file at a time, but for a team project it's a real PIA

she's a troll i reckon
he, sorry

it

well… as long as teh php code you help them with works…

it asks for help, then you give it help, and it says it will do things ITS way.. then an horu later comes back after failing.

I am reporting you to the admins for harassment

hahaha

i've got logs of the channel you ignorant troll.

that is funny

i reckon you're close to a ban, DARKGirl
if you dont watch it
you sit in here talking shit all day & night
lol

anyone ever seen a stereoscopic image?

lol

thank christ for that.
hahaha

Ugh, sickening.

: )–\–
: )–|–
: )–/–

\o/
o// o/

O_o

Some people made a "community creation" site, using PHP, and managed to attract the worst web designers on the planet.

: )—-
: )–|–
: )—-

did your face get damaged in an accident? your eyes appear to be detached from your mouth.

– –

lol

since when have your eyes be attached to your mouth?

well.. i had an accident.

lol ^^

standard fare is to have a background image represent the sidebar, text, etc, and then fix all the divs in using CSS.

hah

text area*

http://anythinggaming.com/images/gm_construct0022.jpg
if anyone likes stereoscopy
it's a really neat effect

I'm working on a Uploader library for my framework, I can do it easily for 1 file at a time - but I'm not sure how to handle multiple file uploads at once. I mean, how would I handle the errors that may occur?

I'm a big fan of flash's file uploading ability

I can't just throw an exception if there is an error for one image, becuase the others would not be uploaded,

trigger_error

mm I'd rather it not be flash (don't like it for anything but video/audio playback)

well.. for file uploads, i'd consider the exception
multiple file, progress bar, etc

but what if I want to upload 4 files, and the 2nd one has an error?
that would mean the other 2 would not get uploaded?

complain to the user

trigger error and tell the user which one didn't upload
the others should still be able to
unless you're referring to a transmission error?

well I mean any error that could occur when uploading, or it can't move it to the directory specified etc

throwing an exception won't necessarily kill the other files being uploaded.. just catch it and tell the user what went wrong after everything's done
if you're using 3 instances of your Uploader class (guessing you're using a class?), the exception shouldn't do anything to the other files

ahh the way I was thinking was not using a foreach loop in the controller's code, but doing that internally within the class
ah, that gave me an idea - I could try and move each uploaded and check for errors etc, if there is an error I will throw an exception, then in the controllers code maybe I could do $uploader-get_errors()

sounds good to me

then that I shall do :P

hello..

anyone else here ever made a type system for php web hosting or at least don't think it's a retarded thing to do for a dynamic language?
hello Libra

I have array .. it's array('a','','c','f');

referring to something a bit more advanced

how can i delete '' null?

array_merge, i think… (checking)

merge?
hum..

i know, but i think it kills empty values.. if not merge one of the others meant for something else

foreach( $array as $key=$val ) { if ( empty( $val ) ) { unset( $array[ $key ] ) }

may have been sort
or, i suppose the proper way is to loop through as Alex said

oh.. okay AlexC_

sup zombies

im uploading images to my host, but these images are in tiff format, and i want them to be resized and saved in jpeg format, i have been looking at a script which uses djpeg, is there a dtiff function or do i have to do something different?

? Thanks

logik-bomb, you can use strip_tags if its just a single tag or you can use regex

I want to extract data from some websites

preg_replace is what you will need to do then

thanks schnoodles

you're going to want to look into gd or imagemagick or pnm

is it hard to have imagemagick on your host?
because i want the images to be uploaded resized and converted, and have a watermark put over the top of them

in my experience a lot of shared hosts will have one of hte above
imagemagick used to be really prevalent, but i haven't used it in some time
as for getting a host to install it on a shared server… it's possible, but not probable

can i upload it onto my own webspace?

any way i can use unsigned 32 bit ints?

hm… not really sure… check to see if your host has it installed first

is there any easy way to check? problem is it might work on my host now but the site has to be transferred to another host

Jo-W: no

well, when picking a new host, check that they have it (a lot , maybe most, do)
as for checking, it's a command line app

damn i need 32 bits not 31

what would be the simplest way to do this?

so ssh into your server and type…
(looking it up, been a while)
mogrify
if you get a help menu, you're golden
http://www.imagemagick.org/script/command-line-tools.php

ive a whole big list of options

then it's there

ah i c
so i dont need to do anything other than find a good example of it online and try incorporate it into my site
so i dont need to do anything other than find a good example of it online and try incorporate it into my site

*
To prove that you're not a bot, enter this code
Anti-Spam Image

Leave a Comment

You must be logged in to post a comment.


Blog Tags:

Similar posts: